body {
    margin: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: radial-gradient(circle, #1a1a1a, #000);
    perspective: 1200px;
    overflow: hidden;
    font-family: 'Segoe UI', sans-serif;
}

#resetBtn {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    z-index: 100;
    transition: 0.3s;
}

#resetBtn:hover {
    background: white;
    color: black;
}

.scene {
    width: 0; height: 0; /* O ponto central da tela */
    display: flex;
    justify-content: center;
    align-items: center;
}

.cube-wrapper {
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
}

.cube {
    width: 300px;
    height: 300px;
    position: relative;
    transform-style: preserve-3d;
    cursor: grab;
}

.sub-cube {
    position: absolute;
    width: 90px;
    height: 90px;
    transform-style: preserve-3d;
    left: 50%; top: 50%;
    margin-left: -45px; margin-top: -45px;
}

.face {
    position: absolute;
    width: 90px;
    height: 90px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.05);
}

/* Posicionamento 3D das faces */
.front  { transform: rotateY(0deg) translateZ(45px); }
.back   { transform: rotateY(180deg) translateZ(45px); }
.right  { transform: rotateY(90deg) translateZ(45px); }
.left   { transform: rotateY(-90deg) translateZ(45px); }
.top    { transform: rotateX(90deg) translateZ(45px); }
.bottom { transform: rotateX(-90deg) translateZ(45px); }