/* Match the existing One More Rail playable website's loading surface. */
html, body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #0b0f12;
    color: #dce7ec;
}

/* The native Compose/WebAssembly surface takes over when initialized. */
body {
    font-family: system-ui, sans-serif;
}


/* Mirrors ConnectionScreen's dark-theme first frame while Compose/Wasm initializes.
   This is an overlay, not a separate spinner or second startup stage. */
.omr-bootstrap,
.omr-bootstrap * {
    box-sizing: border-box;
}

.omr-bootstrap {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    overflow: auto;
    padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
             env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: #0b0f12;
    color: #e6edf3;
    pointer-events: none;
}

.omr-bootstrap__content {
    width: 100%;
    max-width: 430px;
    margin: auto;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.omr-bootstrap__mark {
    display: block;
    width: 92px;
    height: 92px;
    flex-shrink: 0;
}

.omr-bootstrap__title {
    margin: 0;
    font-size: 30px;
    line-height: 37px;
    font-weight: 700;
}

.omr-bootstrap__tagline {
    margin: 0 0 36px;
    color: #a4b3c0;
    font-size: 14px;
    line-height: 21px;
}

.omr-bootstrap__card {
    width: 100%;
    padding: 24px;
    border: 1px solid #31434f;
    border-radius: 16px;
    background: #182630;
    text-align: left;
}

.omr-bootstrap__status-row {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 23px;
    font-size: 16px;
    line-height: 23px;
}

.omr-bootstrap__status-row strong {
    font-weight: 600;
}

.omr-bootstrap__card p {
    margin: 12px 0 0;
    color: #a4b3c0;
    font-size: 14px;
    line-height: 21px;
}

.omr-bootstrap__spinner {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: 2px solid rgba(98, 214, 232, 0.24);
    border-top-color: #62d6e8;
    border-radius: 50%;
    animation: omr-bootstrap-spin 900ms linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
    .omr-bootstrap__spinner { animation: none; }
}

/* Accessible fallback for visitors and crawlers without JavaScript/Wasm. */
.omr-noscript {
    max-width: 560px;
    margin: 10vh auto;
    padding: 24px;
    line-height: 1.6;
}
.omr-noscript a { color: #62d6e8; }
