html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    background: #000;
}

body {
    overscroll-behavior: none;
}

#screen-wrap {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#screen {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

#status {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    color: #ddd;
    background: #000;
    font: 16px/1.4 system-ui, sans-serif;
    text-align: center;
    pointer-events: none;
}

#status.hidden {
    display: none;
}

/* Native Tastatur-Bridge: Position/Farben/Schrift kommen vom Java-Server.
   Der Browser stellt nur Cursor, IME, Mobile-Keyboard und lokale Eingabe bereit. */
.bust-native-input {
    position: absolute;
    z-index: 20;
    box-sizing: border-box;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 12px;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
    caret-color: currentColor;
    appearance: none;
    -webkit-appearance: none;
}

.bust-native-input::selection {
    background: rgba(255, 255, 255, 0.22);
}
