* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    min-height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    overflow-x: hidden;
    background-color: #a8c47f;
}

/* TELA INICIAL */

.tela-inicial {
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    min-height: 100dvh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 18px;

    background-image:
        linear-gradient(rgba(255, 246, 222, 0.18),
            rgba(245, 218, 166, 0.22)),
        url("../assets/fundos/fundo-inicio.webp");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* COLUNA CENTRAL */

.capa-jogo {
    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 16px;
    text-align: center;
}

/* BANNER */

.banner-jogo {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
    object-fit: contain;

    filter: drop-shadow(0 4px 12px rgba(74, 47, 22, 0.22));
}

/* IMAGEM PRINCIPAL */

.imagem-capa {
    width: 100%;
    max-width: 360px;
    max-height: 360px;
    height: auto;
    display: block;
    object-fit: contain;

    filter: drop-shadow(0 16px 20px rgba(74, 47, 22, 0.28));
}

/* LINK PARA RESPONSÁVEIS */

.link-responsaveis {
    border: 1px solid rgba(180, 140, 80, 0.22);
    border-radius: 999px;

    background: rgba(255, 250, 235, 0.72);
    color: #7a6040;

    font-size: 0.85rem;
    font-weight: 600;

    padding: 8px 20px;

    cursor: pointer;

    box-shadow: 0 2px 6px rgba(75, 50, 25, 0.08);

    transition: filter 0.12s ease;
}

.link-responsaveis:hover {
    filter: brightness(0.97);
}

/* FOCO ACESSÍVEL */

.link-responsaveis:focus-visible,
.btn-entendi:focus-visible {
    outline: 3px solid #6ab7ff;
    outline-offset: 4px;
}

/* MODAL RESPONSÁVEIS */

.modal-responsaveis {
    position: fixed;
    inset: 0;
    z-index: 20;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 14px;

    background: rgba(35, 22, 8, 0.52);
    backdrop-filter: blur(5px);
}

.modal-responsaveis.ativo {
    display: flex;
}

.modal-conteudo {
    width: min(94vw, 420px);
    max-height: 88dvh;
    overflow-y: auto;

    position: relative;

    padding: 20px 20px 14px;

    border-radius: 22px;
    background: #fff9ed;
    border: 2px solid #e8cc8a;

    box-shadow: 0 20px 40px rgba(35, 22, 8, 0.32);
}

.modal-conteudo h2 {
    margin-bottom: 14px;

    color: #4d341c;
    font-size: 1.1rem;
    font-weight: 900;
    text-align: center;
}

.modal-conteudo p {
    margin-bottom: 10px;

    color: #5b4934;
    font-size: 0.9rem;
    line-height: 1.48;
}

.modal-conteudo p:last-of-type {
    margin-bottom: 0;
}

.modal-indicacao {
    margin-top: 10px;
    padding: 9px 12px;

    background: rgba(255, 238, 185, 0.55);
    border-radius: 10px;

    font-size: 0.86rem !important;
    line-height: 1.42 !important;
    color: #5b4934 !important;
}

/* BOTÃO ENTENDI */

.btn-entendi {
    display: block;
    min-width: 140px;
    margin: 14px auto 8px;
    padding: 11px 32px;

    border: none;
    border-top: 2px solid rgba(255, 248, 200, 0.55);
    border-radius: 999px;

    background: linear-gradient(180deg, #ffd46a 0%, #f0a01e 100%);
    color: #3d2409;

    font-size: 1rem;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 5px 0 #a8650e,
        0 10px 16px rgba(79, 48, 10, 0.2);

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease;
}

.btn-entendi:active {
    transform: translateY(4px);

    box-shadow:
        0 1px 0 #a8650e,
        0 4px 8px rgba(79, 48, 10, 0.14);
}

/* DESKTOP */

@media (min-width: 768px) {
    .banner-jogo {
        max-width: 370px;
    }

    .imagem-capa {
        max-width: 370px;
        max-height: 370px;
    }

    .modal-conteudo {
        font-size: 1rem;
    }

    .modal-conteudo h2 {
        font-size: 1.25rem;
    }
}
