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

body {
    background: #1a1a1a;
    color: #e0e0e0;
    font-family: system-ui, -apple-system, sans-serif;
    height: 100vh;
    overflow: hidden;
}

.hidden {
    display: none !important;
}

/* ── Warning overlay ──────────────────────────────────────────────────────── */

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 100;
}

.warning-dialog {
    background: #1e1e1e;
    border: 1px solid #555;
    border-radius: 8px;
    padding: 1.5rem 2rem 1.75rem;
    width: 100%;
    max-width: 100%;
    text-align: center;
}

.warning-dialog h2 {
    margin-bottom: 0.75rem;
    font-size: 1.4rem;
    color: #f59e0b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.warning-dialog p {
    margin-bottom: 0.5rem;
    line-height: 1.55;
    color: #aaa;
    font-size: 1rem;
}

.warning-dialog p.highlight {
    color: #e0e0e0;
    font-weight: 600;
}

.warning-dialog code {
    background: #333;
    color: #7dd3fc;
    padding: 0.1em 0.4em;
    border-radius: 3px;
    font-size: 0.85em;
    font-family: ui-monospace, monospace;
}

.warning-dialog hr {
    border: none;
    border-top: 1px solid #444;
    margin: 0.75rem 0;
}

.warning-dialog button {
    margin-top: 1rem;
    padding: 0.5rem 1.75rem;
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
}

.warning-dialog button:hover {
    background: #2563eb;
}

/* ── noVNC screen container ───────────────────────────────────────────────── */

.novnc-screen {
    width: 100vw;
    height: 100vh;
    background: #000;
}

/* noVNC injects a canvas — make it fill the container */
.novnc-screen canvas {
    display: block;
    width: 100%;
    height: 100%;
}
