.cube-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    max-width: 45%;
    height: 100%;
}

#threeContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    width: 100%;
    height: auto;
    max-height: 80vh;
    aspect-ratio: 4 / 3;
    cursor: grab;
    overflow: hidden;
    object-fit: contain;
    background: #1a1a1a;
    border: 2px solid #555;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

#threeContainer canvas {
    width: 100%;
    height: 100%;
    outline: none;
    display: block;
}

.rotate-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    opacity: 0.5;
    color: white;
    z-index: 20;
    pointer-events: none;
    filter: drop-shadow(0px 0px 2px rgba(0,0,0,0.8));
    animation: spin-hint 2s ease-out 1;
}

.rotate-icon svg {
    fill: currentColor;
    width: 100%;
    height: 100%;
}

@keyframes spin-hint {
    0% { transform: rotate(0deg); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: rotate(360deg); opacity: 0.5; }
}

.controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 0;
    z-index: 10;
}

.controls button {
    flex: 1;
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(5px);
    border: none;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.7rem 0;
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: none;
    transition: all 0.3s ease;
}

.controls button:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: none;
}

.controls button:active {
    background: rgba(255, 255, 255, 0.3);
}

.controls button:first-child {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}