/* ============================================================================
   oss-loading.css — tela de carregamento dos jogos OSS embarcados em iframe
   (initOssIframeGame, js/arcade-games.js). Papel recortado, sombra dura
   deslocada, nada de blur difuso (ver DESIGN.md / css/design-system.css).
   ============================================================================ */

.oss-loading {
    position: absolute;
    left: 0;
    width: 100%;
    z-index: 4; /* abaixo de .game-header (5) e dos botoes flutuantes (6):
                   a saida continua clicavel durante o carregamento */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--night-2, #150F33);
    opacity: 1;
    transition: opacity .26s var(--ease-out, ease);
}
.oss-loading.oss-loading-saindo { opacity: 0; pointer-events: none; }

.oss-loading-card {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    background: var(--paper, #FFF6E9);
    border: 3px solid var(--ink, #1B1235);
    border-radius: var(--r-lg, 24px);
    box-shadow: var(--sh-md, 0 5px 0 rgba(27, 18, 53, .38));
    padding: 22px 20px 24px;
}

.oss-loading-capa-wrap {
    width: 112px;
    height: 112px;
    border-radius: var(--r-md, 18px);
    border: 3px solid var(--ink, #1B1235);
    background: var(--paper-2, #FFE9CE);
    box-shadow: 0 3px 0 var(--ink, #1B1235);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.oss-loading-capa { width: 100%; height: 100%; object-fit: cover; display: block; }
.oss-loading-icone { display: none; font-size: 52px; line-height: 1; }
.oss-loading-capa-wrap.sem-capa .oss-loading-icone { display: block; }

.oss-loading-titulo {
    font-family: var(--font-display, 'Baloo 2', 'Nunito', sans-serif);
    font-weight: 900;
    font-size: 20px;
    color: var(--ink, #1B1235);
    line-height: 1.15;
}

.oss-loading-dots { display: flex; gap: 8px; }
.oss-loading-dots i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: block;
    border: 2px solid var(--ink, #1B1235);
    background: var(--mango, #FF8A3D);
    animation: ossLoadingBounce 1s ease-in-out infinite;
}
.oss-loading-dots i:nth-child(2) { background: var(--bubble, #FF5E9C); animation-delay: .15s; }
.oss-loading-dots i:nth-child(3) { background: var(--teal, #2FD4C6); animation-delay: .3s; }
@keyframes ossLoadingBounce {
    0%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
}

.oss-loading-msg {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-soft, #3B2A6B);
}

.oss-loading-voltar {
    margin-top: 2px;
    min-height: 48px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 900;
    color: var(--ink, #1B1235);
    background: var(--paper, #FFF6E9);
    border: 3px solid var(--ink, #1B1235);
    border-radius: var(--r-md, 18px);
    box-shadow: 0 4px 0 var(--ink, #1B1235);
    cursor: pointer;
}
.oss-loading-voltar:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink, #1B1235); }

@media (prefers-reduced-motion: reduce) {
    .oss-loading-dots i { animation: none; }
}
