#jogo-hanoi {
    width: 100%;
    max-width: 600px;
}

.hanoi-info {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.hanoi-board {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    width: 100%;
    height: 280px; /* Aumenta a altura para os discos caberem */
    padding: 1rem 1rem 0 1rem; /* Remove o padding de baixo */
    gap: 1rem;
}

.peg {
    width: 30%;
    height: 100%;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    /* Novo estilo para a base do pino */
    border-bottom: 15px solid #e0e0e0;
    border-radius: 5px;
    position: relative;
    transition: background-color 0.2s;
}

/* Adiciona o pino visualmente */
.peg::before {
    content: '';
    position: absolute;
    bottom: 0;
    width: 12px;
    height: 100%;
    background-image: linear-gradient(to right, #d1d1d1, #f1f1f1);
    border-radius: 6px 6px 0 0;
    z-index: 1;
}

.peg.selected {
    background-color: rgba(88, 129, 87, 0.1);
}

.disk {
    height: 30px; /* Discos mais altos */
    border-radius: 15px; /* Bordas totalmente arredondadas */
    margin-bottom: 3px;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    position: relative;
    z-index: 2; /* Para ficar na frente do pino */
    /* Efeito 3D com sombra e borda */
    border: 1px solid rgba(0,0,0,0.1);
    box-shadow: inset 0 -5px 10px rgba(0,0,0,0.15);
}

.disk.selected {
    transform: translateY(-40px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.2);
}

/* Nova paleta de cores inspirada na imagem */
.disk-1 { width: 30%; background-image: linear-gradient(#84fab0, #8fd3f4); }
.disk-2 { width: 40%; background-image: linear-gradient(#fccb90, #d57eeb); }
.disk-3 { width: 50%; background-image: linear-gradient(#e0c3fc, #8ec5fc); }
.disk-4 { width: 60%; background-image: linear-gradient(#f093fb, #f5576c); }
.disk-5 { width: 75%; background-image: linear-gradient(#5ee7df, #b490ca); }
.disk-6 { width: 90%; background-image: linear-gradient(#d299c2, #fef9d7); }

.popup-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.6);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.popup-container.show {
    display: flex;
}

.popup {
    background: var(--cor-fundo);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
}