body {
    margin: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1a1a1a;
    overflow: hidden;
    user-select: none;
}

.scene {
    width: 200px;
    height: 200px;
    perspective: 1000px;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    cursor: grab;
    transform: rotateX(-30deg) rotateY(45deg);
    transition: transform 0.1s ease-out; /* Небольшое сглаживание */
}

.cube:active {
    cursor: grabbing;
}

.face {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: sans-serif;
    font-size: 40px;
    font-weight: bold;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
}

/* Позиционирование граней */
.front  { transform: rotateY(0deg) translateZ(100px); background: rgba(255, 0, 0, 0.2); }
.back   { transform: rotateY(180deg) translateZ(100px); background: rgba(0, 255, 0, 0.2); }
.right  { transform: rotateY(90deg) translateZ(100px); background: rgba(0, 0, 255, 0.2); }
.left   { transform: rotateY(-90deg) translateZ(100px); background: rgba(255, 255, 0, 0.2); }
.top    { transform: rotateX(90deg) translateZ(100px); background: rgba(255, 0, 255, 0.2); }
.bottom { transform: rotateX(-90deg) translateZ(100px); background: rgba(0, 255, 255, 0.2); }
