#jogo-sparks {
    position: relative;
    width: 100%;
    padding: 5vw 3vw 6vw;
    box-sizing: border-box;
    text-align: center;
    isolation: isolate;

    background-color: rgb(var(--cor-secao-neutra-fundo, 3, 3, 4));
    transition: background-color 0.9s ease;
}

.jogo-titulo {
    position: relative;
    z-index: 1;
    margin: 0 0 2vw;
    font-size: 2.2vw;
    font-weight: bold;
    letter-spacing: 0.05em;
    color: white;
    mix-blend-mode: difference;
}
body.tema-branco .jogo-titulo { color: rgb(30, 30, 30); mix-blend-mode: normal; }

/* Spake — quadrado fixo */
.jogo-container {
    position: relative;
    z-index: 1;
    width: min(60vw, 620px);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    background: #000;
}

.jogo-capa {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    z-index: 3;
}

.jogo-botao-abrir {
    padding: 0.9vw 2vw;
    font-size: 1.1vw;
    font-family: inherit;
    font-weight: bold;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease;
}

.jogo-botao-abrir:hover {
    background: white;
    color: rgb(20, 20, 20);
}

.jogo-container.aberto .jogo-capa {
    display: none;
}

.jogo-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: none;
}

.jogo-container.aberto .jogo-iframe {
    display: block;
}

/* tela cheia — centralizada via posicionamento absoluto no iframe */
.jogo-container:fullscreen,
.jogo-container:-webkit-full-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    aspect-ratio: unset;
    margin: 0;
    overflow: hidden;
    background: #000;
}

.jogo-container:fullscreen .jogo-iframe,
.jogo-container:-webkit-full-screen .jogo-iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.jogo-controles {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 4;
    display: none;
    gap: 0.4vw;
    padding: 0.5vw;
}

.jogo-container.aberto .jogo-controles {
    display: flex;
}

.jogo-botao-controle {
    width: 2.4vw;
    height: 2.4vw;
    min-width: 32px;
    min-height: 32px;
    border: none;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 1.1vw;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.jogo-botao-controle:hover {
    background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 900px) {
    .jogo-titulo { font-size: 5vw; }
    .jogo-container { width: 90vw; }
    .jogo-botao-abrir { font-size: 3.6vw; padding: 3vw 6vw; }
    .jogo-botao-controle { width: 8vw; height: 8vw; font-size: 4vw; }
}