html,
body {
    /* Impede o gesto nativo de puxar para recarregar a página */
    overscroll-behavior-y: contain;
}

.dialog-imagem-container,
.card-header {
    touch-action: none;
    /* Impede gestos padrão do navegador sobre o elemento */
}

.carta_fechada {
    width: 120px;
    height: 160px;
    border-radius: 5px;
    box-shadow: inset 0 12px 14px rgba(0, 0, 0, 0.1);
}

.carta_aberta {
    width: 120px;
    height: 160px;
    border-radius: 5px;
    box-shadow: inset 0 12px 14px rgba(0, 0, 0, 0.1);
}

.botao {
    width: 40px;
    height: 40px;
    margin: 0px;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.botao-g {
    width: 80px;
    height: 80px;
    margin: 0px;
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dialog-imagem {
    border: none;
    border-radius: 16px;
    padding: 1rem;
    max-width: 90vw;
    max-height: 90vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.dialog-imagem::backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.dialog-imagem-container {
    width: 70vw;
    height: 70vh;
    max-width: 600px;
    max-height: 600px;
    overflow: hidden;
    position: relative;
    cursor: grab;
    border-radius: 10px;
    user-select: none;
}

.dialog-imagem-container:active {
    cursor: grabbing;
}

.dialog-imagem-container img {
    min-width: 200%;
    min-height: 200%;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    display: block;
    pointer-events: none;
}

.btclose-dialog {
    position: absolute;
    top: 8px;
    right: 12px;
    border: none;
    background: none;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    color: #5a3d5c;
    z-index: 10;
    width: 50px;
    height: 50px;
}

/* Classe para imagem selecionada (efeito esbranquiçado) */
.img-selecionada {
    opacity: 0.4;
    filter: brightness(1.3) contrast(0.8);
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.div_botao_mapa {
    border: 0;
}

.div_jogador_mapa {
    border: 0;
}

.botao_mapa {
    border-radius: 5px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 100%;
}

.descricaoHabilidade {
    height: 50px;
    display: inline-block;
}

.btnhabilidade {
    margin-right: 5px;
    vertical-align: middle;
    display: inline-block;
}

.titulohabilidade {
    margin: 2px;
    text-align: left;
    display: inline-block;
}

.full {
    width: 100vw;
    /*     height: 73vw; */
    height: 50vh;
}

.cemporcento {
    width: 100%;
    height: 100%;
    border: 0;
    margin: 0;
    padding: 0;
}

.jogadortitulo {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    background-color: blue;
    color: white;
    border-radius: 5px;
}

.jogadorhabilidade {
    font-size: 1rem;
    font-weight: normal;
    margin-top: 0.5rem;
    background-color: rgb(0, 136, 255);
    color: white;
    border-radius: 5px;
}

.jogadorcard {
    max-width: 100px;
    height: auto;
    border-radius: 5px;
}



.linha-local {
    display: flex;
    align-items: center;
    background-color: #fff;
    border-radius: 8px;
    padding: 6px 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    margin-bottom: 10px;
}

.local-imagem {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.local-botao {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    margin-left: 5px;
}

.local-texto {
    flex: 1;
    text-align: center;
    font-weight: bold;
}

.local-habilidades {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 5px;
    min-width: 80px;
    flex-shrink: 0;
}

.local-habilidade-icone {
    width: 32px;
    height: 32px;
}

.divfundo {
    background: linear-gradient(90deg, var(--roxo), var(--rosa));
    border-radius: 8px;
    padding: 10px;
}

.divjanela {
    background: linear-gradient(90deg, var(--roxo), var(--rosa));
    border-radius: 8px;
    padding: 10px;
    position: absolute;
    top: 7vh;
    z-index: 50;
}

.barraderolagem {
    overflow-y: auto;
    height: 80vh;
}

.divtitulo {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 1rem;
    color: white;
}


#menu {
    background-color: blueviolet;
    border-radius: 5px;
    padding: 10px;
}

#locais {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

#salas {
    left: 15%;
    width: 70%;
}

#objetos {
    width: 100%;
    border-radius: 5px;
    padding: 10px;
}

#mapa {
    position: relative;
}

.emoji-bau {
    top: 5px;
    left: 10px;
    font-size: 1.8rem;
    line-height: 1;
    cursor: pointer;
    user-select: none;
}

/* dentro da janela flutuante do menu, evita sobrepor o cabeçalho arrastável */
#menu .emoji-bau {
    top: 45px;
}

#progressoCulpado {
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    color: #fff;
    background: rgba(50, 20, 80, .8);
    font-weight: bold;
}

#barraProgresso {
    flex: 1;
    height: 18px;
    overflow: hidden;
    border-radius: 10px;
    background: #eee;
}

#marcadorCulpado {
    display: block;
    width: 0;
    height: 100%;
    background: #ef476f;
    transition: width .3s ease;
}

#statusjogo,
#barralho {
    position: absolute;
    z-index: 15;
    inset: 0;
    overflow-y: auto;
    padding: 55px 10px 10px;
    background: rgba(91, 42, 112, .96);
}

.status-linha {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    color: #3d2354;
    cursor: grab;
}

.linhaHorizontal {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .9);
    color: #3d2354;
    cursor: grab;
}

.carta-status {
    flex: 0 0 auto;
    border: 1px solid #74468a;
    border-radius: 6px;
    padding: 6px 10px;
    background: #fff;
    max-width: 100px;
    height: auto;
}

.carta-status:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.jogadorhabilidade{
    vertical-align: middle;
    display: inline-block;
    margin-right: 4px;
}

.jogador-nome {
    color: red;
    font-weight: bold;
    vertical-align: middle;
}

.cartaselecionada {
    border: 2px dashed black;
}

.carta-utilizada { 
    border: 2px solid yellow;
}

.carta-correta {
    border: 2px dashed green;
}

.carta-errada {
    border: 2px solid red;
}

.procedimento { 
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .9);
    color: #3d2354;
}

.procedimentoresultado {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    background: yellow;
    color: #3d2354;
}

#barralho {
    color: #fff;
}

#cartasRetiradas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}