.splash-screen[hidden] { display: none; }

.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, .65);
}

/* Imagem quadrada (1080x1080): cabe sempre na tela, no máximo 720px */
.splash-screen__card {
    position: relative;
    width: min(720px, 100%, calc(100vh - 32px), calc(100dvh - 32px));
    aspect-ratio: 1 / 1;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5);
}

.splash-screen__link,
.splash-screen__img {
    display: block;
    width: 100%;
    height: 100%;
}

.splash-screen__img {
    object-fit: contain;
    border-radius: 6px;
}

.splash-screen__fechar {
    position: absolute;
    top: -10px;
    right: -10px;
    z-index: 1;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.splash-screen__fechar:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

@media (max-width: 480px) {
    .splash-screen__fechar { top: -8px; right: -4px; }
}
