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

body {
    overscroll-behavior: none;
    font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

#screen-wrap {
    position: fixed;
    inset: 0;
    overflow: hidden;
    background: #05080c;
}

#screen {
    position: absolute;
    inset: 0;
    display: block;
    background: #05080c;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    outline: none;
}

#status {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    background: #05080c;
    transition: opacity 160ms ease;
}

#status.hidden {
    opacity: 0;
    pointer-events: none;
}

.status-card {
    min-width: min(330px, calc(100vw - 48px));
    padding: 28px 30px;
    box-sizing: border-box;
    border: 1px solid rgba(108, 226, 255, 0.18);
    border-radius: 18px;
    background: rgba(10, 17, 25, 0.94);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
    text-align: center;
}

.status-logo {
    margin-bottom: 16px;
    color: #eafcff;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.status-spinner {
    width: 26px;
    height: 26px;
    margin: 0 auto 16px;
    border: 2px solid rgba(130, 231, 255, 0.18);
    border-top-color: #82e7ff;
    border-radius: 50%;
    animation: bust-spin 0.9s linear infinite;
}

#status[data-mode="error"] .status-spinner,
#status[data-mode="offline"] .status-spinner {
    animation: none;
    border-color: rgba(130, 231, 255, 0.38);
}

#status-text {
    color: #a9bdc8;
    font-size: 14px;
    line-height: 1.45;
}

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

.bust-native-input {
    position: fixed;
    z-index: 30;
    box-sizing: border-box;
    margin: 0;
    padding: 0 10px;
    border: 0;
    border-radius: 10px;
    outline: 1px solid rgba(130, 231, 255, 0.45);
    font-family: Arial, Helvetica, sans-serif;
    caret-color: currentColor;
    appearance: none;
    -webkit-appearance: none;
}

textarea.bust-native-input {
    padding: 10px 12px;
    resize: none;
}
