/* /Components/Gioco/RunetrisGioco.razor.rz.scp.css */
/* Runetris: colori del tema del sito (variabili MudBlazor). Il tabellone è disegnato dal canvas, qui cornice, pannello e comandi. */
.runetris[b-jf2m1l6sey] {
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    user-select: none;
    -webkit-user-select: none;
}

.runetris-area[b-jf2m1l6sey] {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: center;
}

/* Tabellone come una card del sito: bordo nel colore primario e ombra morbida */
.runetris-cornice[b-jf2m1l6sey] {
    padding: 4px;
    border-radius: 12px;
    border: 2px solid var(--mud-palette-primary);
    background: var(--mud-palette-surface);
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
    line-height: 0;
}

.runetris-tabellone[b-jf2m1l6sey] {
    display: block;
    border-radius: 8px;
    touch-action: none;
}

.runetris-pannello[b-jf2m1l6sey] {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 134px;
}

.runetris-box[b-jf2m1l6sey] {
    background: var(--mud-palette-surface);
    border: 1px solid var(--mud-palette-lines-default);
    border-left: 3px solid var(--mud-palette-primary);
    border-radius: 8px;
    padding: 8px 10px;
    color: var(--mud-palette-text-primary);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .08);
}

.runetris-box strong[b-jf2m1l6sey] {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--mud-palette-text-primary);
    font-variant-numeric: tabular-nums;
}

.runetris-box-prossima[b-jf2m1l6sey] {
    align-items: center;
}

.runetris-etichetta[b-jf2m1l6sey] {
    font-size: .72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--mud-palette-primary);
}

/* Pulsanti a schermo: sempre visibili su schermi touch, nascosti con mouse e tastiera */
.runetris-comandi[b-jf2m1l6sey] {
    display: none;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 420px;
}

.runetris-comandi[b-jf2m1l6sey]  .mud-button-root {
    flex: 1 1 0;
    min-width: 0;
    height: 52px;
    padding: 0;
    border-radius: 12px;
    touch-action: none;
}

.runetris-comandi[b-jf2m1l6sey]  .mud-icon-root {
    font-size: 1.9rem;
}

.runetris-comandi[b-jf2m1l6sey]  .mud-button-root:active {
    transform: translateY(1px);
    filter: brightness(.92);
}

.runetris-aiuto[b-jf2m1l6sey] {
    margin: 0;
    font-size: .8rem;
    color: var(--mud-palette-text-secondary);
    text-align: center;
    max-width: 520px;
}

@media (pointer: coarse) {
    .runetris-comandi[b-jf2m1l6sey] {
        display: flex;
    }
}

/* Schermi stretti (classe impostata dal JavaScript): pannello compatto sopra il tabellone */
.runetris-stretto .runetris-area[b-jf2m1l6sey] {
    flex-direction: column-reverse;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.runetris-stretto .runetris-pannello[b-jf2m1l6sey] {
    flex-direction: row;
    width: 100%;
    max-width: 420px;
    gap: 6px;
}

.runetris-stretto .runetris-box[b-jf2m1l6sey] {
    flex: 1 1 0;
    min-width: 0;
    padding: 4px 4px;
    align-items: center;
    border-left-width: 1px;
    border-top: 3px solid var(--mud-palette-primary);
}

.runetris-stretto .runetris-box-prossima[b-jf2m1l6sey] {
    flex: 0 0 auto;
}

.runetris-stretto .runetris-box strong[b-jf2m1l6sey] {
    font-size: 1rem;
}

.runetris-stretto .runetris-etichetta[b-jf2m1l6sey] {
    font-size: .62rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
#components-reconnect-modal[b-2h79acywj3] {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1400;
    overflow: hidden;
    background-color: transparent;
    border: none;
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
}

    #components-reconnect-modal[b-2h79acywj3]::backdrop {
        background: rgba(10, 16, 28, 0.5);
    }

    #components-reconnect-modal.components-reconnect-show[b-2h79acywj3],
    #components-reconnect-modal[open][b-2h79acywj3],
    #components-reconnect-modal.components-reconnect-failed[b-2h79acywj3],
    #components-reconnect-modal.components-reconnect-repeated-attempt[b-2h79acywj3],
    #components-reconnect-modal.components-reconnect-paused[b-2h79acywj3],
    #components-reconnect-modal.components-reconnect-resume-failed[b-2h79acywj3],
    #components-reconnect-modal.components-pause[b-2h79acywj3],
    #components-reconnect-modal.components-resume-failed[b-2h79acywj3] {
        display: flex;
        align-items: center;
        justify-content: center;
    }

.components-reconnect-backdrop[b-2h79acywj3] {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: radial-gradient(90% 60% at 80% 0%, color-mix(in srgb, var(--mud-palette-primary, #594AE2) 12%, transparent), transparent 60%), radial-gradient(80% 55% at 0% 100%, color-mix(in srgb, var(--mud-palette-info, #2196f3) 16%, transparent), transparent 62%), rgba(8, 12, 20, 0.5);
}

.components-reconnect-surface[b-2h79acywj3] {
    width: min(480px, 100%);
    border-radius: var(--mud-default-borderradius, 12px);
    border: 1px solid color-mix(in srgb, var(--mud-palette-lines-default, #e0e0e0) 70%, transparent);
    background: var(--mud-palette-surface, #fff);
    box-shadow: var(--mud-elevation-24, 0 16px 30px rgba(0, 0, 0, 0.28));
    color: var(--mud-palette-text-primary, #1f2937);
    padding: 20px 20px 18px;
}

.components-reconnect-header[b-2h79acywj3] {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .components-reconnect-header h2[b-2h79acywj3] {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 600;
        line-height: 1.3;
    }

.components-reconnect-status-dot[b-2h79acywj3] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--mud-palette-warning, #f59e0b);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--mud-palette-warning, #f59e0b) 25%, transparent);
}

.components-reconnect-supporting[b-2h79acywj3],
.components-reconnect-message[b-2h79acywj3] {
    margin: 0;
    line-height: 1.45;
    font-size: 0.95rem;
}

.components-reconnect-supporting[b-2h79acywj3] {
    color: var(--mud-palette-text-secondary, #52607a);
    margin-bottom: 14px;
}

.components-reconnect-message[b-2h79acywj3] {
    font-weight: 500;
}

.components-reconnect-danger[b-2h79acywj3] {
    color: var(--mud-palette-error, #b00020);
}

.components-reconnect-actions[b-2h79acywj3] {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.components-reconnect-first-attempt-visible[b-2h79acywj3],
.components-reconnect-repeated-attempt-visible[b-2h79acywj3],
.components-reconnect-failed-visible[b-2h79acywj3],
.components-pause-visible[b-2h79acywj3],
.components-resume-failed-visible[b-2h79acywj3] {
    display: none;
}

dialog[open].components-reconnect-show .components-reconnect-first-attempt-visible[b-2h79acywj3] {
    display: block;
}

dialog[open].components-reconnect-show .components-rejoin-loader[b-2h79acywj3] {
    display: inline-flex;
}

dialog[open].components-reconnect-failed .components-reconnect-failed-visible[b-2h79acywj3] {
    display: block;
}

dialog[open].components-reconnect-failed #components-reconnect-button[b-2h79acywj3] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-reconnect-repeated-attempt-visible[b-2h79acywj3] {
    display: block;
}

dialog[open].components-reconnect-repeated-attempt .components-rejoin-loader[b-2h79acywj3] {
    display: inline-flex;
}

dialog[open].components-reconnect-paused .components-pause-visible[b-2h79acywj3],
dialog[open].components-pause .components-pause-visible[b-2h79acywj3] {
    display: block;
}

dialog[open].components-reconnect-paused #components-resume-button[b-2h79acywj3],
dialog[open].components-pause #components-resume-button[b-2h79acywj3],
dialog[open].components-reconnect-resume-failed #components-resume-button[b-2h79acywj3],
dialog[open].components-resume-failed #components-resume-button[b-2h79acywj3] {
    display: block;
}

dialog[open].components-reconnect-resume-failed .components-resume-failed-visible[b-2h79acywj3],
dialog[open].components-resume-failed .components-resume-failed-visible[b-2h79acywj3] {
    display: block;
}

.components-rejoin-loader[b-2h79acywj3] {
    display: none;
    margin-bottom: 10px;
    gap: 8px;
}

    .components-rejoin-loader div[b-2h79acywj3] {
        width: 9px;
        height: 9px;
        border-radius: 50%;
        background-color: var(--mud-palette-primary, #594AE2);
        animation: reconnect-pulse-b-2h79acywj3 1.2s infinite ease-in-out both;
    }

        .components-rejoin-loader div:nth-child(1)[b-2h79acywj3] {
            animation-delay: -0.24s;
        }

        .components-rejoin-loader div:nth-child(2)[b-2h79acywj3] {
            animation-delay: -0.12s;
        }

@keyframes reconnect-pulse-b-2h79acywj3 {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

#components-reconnect-button[b-2h79acywj3],
#components-resume-button[b-2h79acywj3] {
    display: none;
    min-width: 92px;
    cursor: pointer;
    padding: 8px 16px;
    border: 1px solid transparent;
    border-radius: 999px;
    background-color: var(--mud-palette-primary, #594AE2);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    transition: filter 140ms ease, transform 140ms ease;
}

    #components-reconnect-button:hover[b-2h79acywj3],
    #components-resume-button:hover[b-2h79acywj3] {
        filter: brightness(0.95);
    }

    #components-reconnect-button:active[b-2h79acywj3],
    #components-resume-button:active[b-2h79acywj3] {
        transform: translateY(1px);
    }

@media (max-width: 600px) {
    .components-reconnect-backdrop[b-2h79acywj3] {
        padding: 14px;
    }

    .components-reconnect-surface[b-2h79acywj3] {
        padding: 16px;
    }
}
