/* /Components/Layout/MainLayout.razor.rz.scp.css */
.desktop-bg[b-xbz21cofr7] {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    position: relative;
    overflow: hidden;
}

.app-window[b-xbz21cofr7] {
    width: min(1120px, 100%);
    min-height: min(860px, calc(100dvh - 2.5rem));
    /* No frame: the page background is the table. */
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.outside-horror-layer[b-xbz21cofr7] {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.outside-horror-layer .spook[b-xbz21cofr7],
.outside-horror-layer .bat[b-xbz21cofr7],
.outside-horror-layer .eyes[b-xbz21cofr7] {
    position: absolute;
    opacity: 0;
}

body.theme-horror .outside-horror-layer[b-xbz21cofr7]::before,
body.theme-horror .outside-horror-layer[b-xbz21cofr7]::after {
    content: "";
    position: absolute;
    inset: auto -10% 3% -10%;
    height: 120px;
    border-radius: 100px;
    background: radial-gradient(ellipse at center, rgba(150, 150, 150, 0.18), rgba(0, 0, 0, 0));
    animation: fogWave 6s ease-in-out infinite;
}

body.theme-horror .outside-horror-layer[b-xbz21cofr7]::after {
    inset: auto -12% 16% -12%;
    animation-duration: 8s;
    animation-delay: 0.5s;
}

body.theme-horror .outside-horror-layer .spook[b-xbz21cofr7],
body.theme-horror .outside-horror-layer .bat[b-xbz21cofr7],
body.theme-horror .outside-horror-layer .eyes[b-xbz21cofr7] {
    opacity: 1;
}

body.theme-horror .outside-horror-layer .spook[b-xbz21cofr7] {
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    filter: drop-shadow(0 0 12px rgba(185, 185, 185, 0.56));
    animation: ghostFloat 5.5s ease-in-out infinite;
}

body.theme-horror .outside-horror-layer .spook-a[b-xbz21cofr7] {
    top: 10%;
    left: 3%;
}

body.theme-horror .outside-horror-layer .spook-b[b-xbz21cofr7] {
    top: 8%;
    right: 4%;
    animation-delay: 1.4s;
}

body.theme-horror .outside-horror-layer .spook-c[b-xbz21cofr7] {
    bottom: 18%;
    right: 2%;
    animation-delay: 2.1s;
}

body.theme-horror .outside-horror-layer .bat[b-xbz21cofr7] {
    font-size: 1.35rem;
    color: #23050d;
    animation: batSwoop 7s linear infinite;
}

body.theme-horror .outside-horror-layer .bat-a[b-xbz21cofr7] {
    top: 12%;
    left: -5%;
}

body.theme-horror .outside-horror-layer .bat-b[b-xbz21cofr7] {
    top: 23%;
    left: -8%;
    animation-delay: 2.2s;
}

body.theme-horror .outside-horror-layer .eyes[b-xbz21cofr7] {
    color: #d0d0d0;
    font-size: 0.95rem;
    letter-spacing: 0.2rem;
    text-shadow: 0 0 8px rgba(205, 205, 205, 0.92);
    animation: eyesBlink 3.2s ease-in-out infinite;
}

body.theme-horror .outside-horror-layer .eyes-a[b-xbz21cofr7] {
    bottom: 10%;
    left: 6%;
}

body.theme-horror .outside-horror-layer .eyes-b[b-xbz21cofr7] {
    bottom: 14%;
    right: 8%;
    animation-delay: 1.1s;
}

.window-content[b-xbz21cofr7] {
    min-height: 100%;
}

.site-footer[b-xbz21cofr7] {
    width: min(1120px, 100%);
    text-align: center;
    margin-top: 0.8rem;
    /* Below the game window: on short pages the footer must never cover the docked hand. */
    z-index: 1;
}

article[b-xbz21cofr7] {
    padding-left: 1.1rem !important;
    padding-right: 1.1rem !important;
}

@media (max-width: 820px) {
    .desktop-bg[b-xbz21cofr7] {
        /* Respect the notch / rounded corners; viewport-fit=cover lets content reach the edges. */
        padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
        justify-content: flex-start;
    }

    .app-window[b-xbz21cofr7] {
        min-height: calc(100dvh - env(safe-area-inset-top));
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    article[b-xbz21cofr7] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Landscape phones: the horror decorations and window chrome are pure vertical waste.
   A landscape phone is 844px WIDE, so the max-width rule above never reaches it. */
@media (orientation: landscape) and (max-height: 560px) {
    .desktop-bg[b-xbz21cofr7] {
        min-height: auto;
        padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
        justify-content: flex-start;
    }

    .app-window[b-xbz21cofr7] {
        min-height: auto;
        border-radius: 0;
        border-left: 0;
        border-right: 0;
    }

    .outside-horror-layer[b-xbz21cofr7] {
        display: none;
    }

    article[b-xbz21cofr7] {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

#blazor-error-ui[b-xbz21cofr7] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-xbz21cofr7] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-npc4tbayn6],
.components-reconnect-repeated-attempt-visible[b-npc4tbayn6],
.components-reconnect-failed-visible[b-npc4tbayn6],
.components-pause-visible[b-npc4tbayn6],
.components-resume-failed-visible[b-npc4tbayn6],
.components-rejoining-animation[b-npc4tbayn6] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-npc4tbayn6],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-npc4tbayn6],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-npc4tbayn6],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-npc4tbayn6],
#components-reconnect-modal.components-reconnect-retrying[b-npc4tbayn6],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-npc4tbayn6],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-npc4tbayn6],
#components-reconnect-modal.components-reconnect-failed[b-npc4tbayn6],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-npc4tbayn6] {
    display: block;
}


#components-reconnect-modal[b-npc4tbayn6] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-npc4tbayn6 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-npc4tbayn6 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-npc4tbayn6 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-npc4tbayn6]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-npc4tbayn6 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-npc4tbayn6 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-npc4tbayn6 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-npc4tbayn6 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-npc4tbayn6] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-npc4tbayn6] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-npc4tbayn6] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-npc4tbayn6] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-npc4tbayn6] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-npc4tbayn6] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-npc4tbayn6] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-npc4tbayn6 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-npc4tbayn6] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-npc4tbayn6 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
