html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

#app {
    height: 100%;
}

.loading-container {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background-color: #263238;
    color: white;
    font-family: ui-monospace, "Courier New", monospace;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.loading-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.loading-board {
    position: relative;
    width: 200px;
    height: 120px;
    border: 1px solid white;
    background-color: black;
    overflow: hidden;
}

.loading-board::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    border-left: 2px dashed rgba(255, 255, 255, 0.3);
}

.loading-paddle {
    position: absolute;
    width: 6px;
    height: 32px;
    background-color: white;
}

.loading-paddle.left {
    left: 8px;
    top: 15px;
}

.loading-paddle.right {
    right: 8px;
    top: 70px;
}

.loading-ball {
    position: absolute;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: white;
    animation: ball 1s linear infinite alternate;
}

@keyframes ball {
    from { transform: translate(14px, 26px); }
    to { transform: translate(174px, 81px); }
}

.loading-bar {
    width: 202px;
    height: 4px;
    background-color: rgba(255, 255, 255, 0.2);
}

.loading-bar::after {
    content: "";
    display: block;
    width: var(--blazor-load-percentage, 0%);
    height: 100%;
    background-color: #64b5f6;
    transition: width 0.2s;
}

.loading-text {
    margin: 0;
    font-size: 0.75rem;
    opacity: 0.6;
}

.loading-text::after {
    content: var(--blazor-load-percentage-text, "");
}
