/* RESET BÁSICO */
body {
    margin: 0;
    padding: 20px;
    background: #200329;
    font-family: Arial, sans-serif;
}
/* TABELA */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 5px;
}

/* FUNDO DAS CÉLULAS (VISUAL GERAL) */
td {
    background: linear-gradient(
        135deg,
        #200329,
        #200329,
        #200329
    );
    border-radius: 14px;
    box-shadow:
        inset 0 0 25px rgb(80, 2, 49),
        0 0 20px rgb(80, 2, 49);
}

/* MANTÉM MESMA COR EM TODAS AS CÉLULAS, MESMO COM MÍDIA */
td:has(img),
td:has(video),
td:has(iframe) {
    background: linear-gradient(
        135deg,
        #200329,
        #200329,
        #200329
    );
    box-shadow:
        inset 0 0 25px rgba(80, 2, 49),
        0 0 20px rgb(80, 2, 49);
}

/* IMAGEM */
td img {
    background: transparent;
    display: block;
    
}

/* VÍDEO */
td video {
    background: transparent;
    border-radius: 12px;
}

/* IFRAME */
iframe {
    width: 100%;
    height: 450px;
    border: 0;
    border-radius: 12px;
    background: transparent;
}
/* LOGO */
.logo {
    max-width: 100%;
    max-height: 100%;
}

/* BOTÕES GAME */
.btn-game {
    width: 90px;
    height: 90px;
    margin: 15px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: bold;
    color: rgb(255, 255, 255);
    text-decoration: none;
     background: radial-gradient(circle at top left, #c01386, #410377);

    box-shadow:
        0 6px 0 #4b007d,
        0 12px 20px rgba(0,0,0,0.6); 
    transition: 0.15s;
    border: none;
    box-shadow:
        inset 0 0 10px rgb(193, 110, 110),
        0 8px 15px rgba(0,0,0,0.4);
    transition: transform 0.6s ease;
}

.btn-game:active {
    transform: translateY(4px);
    box-shadow:
        0 2px 0 #4b007d,
        0 6px 12px rgba(0,0,0,0.6);
}

/* CORES */
.a { background:#ff3cac; }
.b { background:#d500f9; }
.x { background:#ff0080; }
.y { background:#ff004c; }

/* BOTÕES AÇÃO (CADASTRO / LISTA) */
.btn-action {
    width: 140px;
    height: 45px;
    border-radius: 25px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    color: white;
    cursor: pointer;

    background: radial-gradient(circle at top left, #ff66cc, #8e2de2);
    box-shadow: 0 6px 15px rgba(0,0,0,0.6);
}

.btn-action:hover {
    filter: brightness(1.2);
}
/* AREA 4 */
.area4 img {
    max-width: 100%;
    margin-bottom: 15px;
}
.btn-game.cadastro,
.btn-game.lista {
    width: 140px;
    height: 50px;
    border-radius: 30px;
    font-size: 1rem;
}
cadastro-box {
    width: 100%;
    max-width: 500px;
    background: rgba(20, 0, 40, 0.85);
    border-radius: 20px;
    padding: 25px;
    box-shadow:
        0 0 25px rgba(255, 0, 200, 0.3),
        0 0 60px rgba(140, 0, 255, 0.2);

    animation: aparecer 0.5s ease;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cadastro-box h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #ff66cc;
    text-shadow: 0 0 10px rgba(255, 102, 204, 0.7);
}

.campo {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
}

.campo label {
    font-size: 0.9rem;
    color: #ddd;
}

.campo input {
    padding: 10px 12px;
    border-radius: 10px;
    border: none;
    outline: none;
    background: #12001f;
    color: white;
    font-size: 0.95rem;
    box-shadow: inset 0 0 8px rgba(0,0,0,0.7);
}

.campo input:focus {
    box-shadow:
        0 0 10px rgba(255, 102, 204, 0.8),
        inset 0 0 8px rgba(0,0,0,0.7);
}

.btn-game.salvar {
    width: 100%;
    height: 50px;
    border-radius: 30px ;
    font-size: 1.1rem;
    margin-top: 10px;
}
/* ===== ANIMAÇÃO DE GIRO ===== */
@keyframes giroBotao {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.btn-game.girando {
    animation: giroBotao 0.6s ease;
}
.conteudo-dinamico img {
    width: 300px;        /* tamanho da imagem */
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 12px;
    text-align: center;

}
#conteudo .conteudo-dinamico { color: rgb(241, 211, 211); /* muda todo o texto para azul */ }
/* garante alinhamento perfeito */
.celula-botoes .btn-game {
    display: block;
}
/* Área de conteúdo dinâmico (célula 4) */
#conteudo {
    max-width: 100%;       /* garante que não ultrapasse a largura da célula */
    max-height: 450px;     /* altura igual à da célula */
    overflow-y: auto;      /* cria barra de rolagem vertical se passar da altura */
    padding: 15px;         /* espaço interno para não colar nas bordas */
    box-sizing: border-box;
    color: #fff;           /* cor do texto (exemplo: branco) */
}

/* Bloco dinâmico inserido pelo JS */
#conteudo .conteudo-dinamico {
    word-wrap: break-word; /* quebra palavras muito longas */
    line-height: 1.5;      /* melhora a legibilidade */
}


/* PARTICULAS */
.particulas {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.particula {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(255,255,255,0.5);
    border-radius: 50%;
    animation: subir linear infinite;
}
.particulas {
    position: fixed;
    inset: 0;
}


@keyframes subir {
    from { transform: translateY(100vh); }
    to { transform: translateY(-10vh); }
}
