/* ==========================================================================
   Tetris Animation Component
   ========================================================================== */

.tetris {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 75vh;
    height: 75vh;
    transform: translate(-20%, -50%);
    z-index: 1;
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.tetris:hover {
    transform: translate(-30%, -50%) scale(1.05);
    z-index: 3;
}

.tetris__canvas {
    width: 100%;
    height: 100%;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.8) 0%, rgba(0, 0, 0, 0.9) 100%);
    border: 1px solid rgba(74, 144, 226, 0.3);
    transition: all 0.3s ease;
}

.tetris__canvas:hover {
    border-color: rgba(74, 144, 226, 0.6);
    box-shadow: 0 0 20px rgba(74, 144, 226, 0.2);
    transform: scale(1.02);
}

/* ==========================================================================
   Tetris Responsive Design
   ========================================================================== */

@media (max-width: 1024px) {
    .tetris {
        position: fixed;
        top: 50vh;
        left: 50vw;
        width: max(100vw, 100vh);
        height: max(100vw, 100vh);
        transform: translate(-50%, -50%);
        z-index: 0;
        pointer-events: none;
    }

    .tetris:hover {
        transform: translate(-50%, -50%);
        z-index: 0;
    }

    .tetris__canvas {
        border-radius: 0;
        background: linear-gradient(135deg, rgba(0, 20, 40, 0.3) 0%, rgba(0, 0, 0, 0.4) 100%);
        border: none;
    }

    .tetris__canvas:hover {
        transform: none;
        box-shadow: none;
    }
}