/* Custom Tetris styles */

:root {
    --cell-size: 20px;
}

body {
    font-family: 'JetBrains Mono', monospace;
}

/* Tetris block colors */
.tetris-canvas {
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

/* Piece colors (будут использоваться в Canvas) */
.piece-I { color: #00f0f0; } /* Cyan */
.piece-O { color: #f0f000; } /* Yellow */
.piece-T { color: #a000f0; } /* Purple */
.piece-S { color: #00f000; } /* Green */
.piece-Z { color: #f00000; } /* Red */
.piece-J { color: #0000f0; } /* Blue */
.piece-L { color: #f0a000; } /* Orange */

/* Animation для line clear */
@keyframes line-clear-flash {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.line-clearing {
    animation: line-clear-flash 0.3s ease-in-out 2;
}

/* Game status overlay */
.game-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.game-overlay-content {
    text-align: center;
    color: white;
    font-size: 2rem;
}
