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

/* Keyboard bar — local echo input */
#keyboard-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: rgba(30, 30, 30, 0.95);
    display: none;
    align-items: center;
    padding: 4px 8px;
    gap: 8px;
    z-index: 200;
    backdrop-filter: blur(8px);
}
#keyboard-bar.visible {
    display: flex;
}
#keyboard-bar input {
    flex: 1;
    height: 36px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 16px;
    padding: 0 12px;
    outline: none;
}
#keyboard-bar input:focus {
    border-color: #4a9eff;
}
#keyboard-bar button {
    height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    padding: 0 14px;
}
#keyboard-send {
    background: #4a9eff;
    color: #fff;
}
#keyboard-close {
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 18px;
    padding: 0 10px;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

#container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

#display {
    width: 100%;
    flex: 1;
    min-height: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

#mse-video {
    width: 100%;
    flex: 1;
    min-height: 0;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

#overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    pointer-events: none;
    transition: opacity 0.3s;
}

#overlay.hidden {
    opacity: 0;
}

#status {
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 4px;
}

#status.connected {
    color: #4caf50;
}

#status.error {
    color: #f44336;
}

#stats {
    color: #aaa;
    font-family: monospace;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.6);
    padding: 4px 12px;
    border-radius: 4px;
}

