/* Tetris Game Styles */

#tetris-hero {
    position: relative;
    width: 100%;
    height: 600px;
    /* Customizable max height */
    max-height: 60vh;
    background-color: #0f172a;
    /* script uses fallback but CSS ensures it matches */
    background-size: cover;
    background-position: center;
    transition: background-image 0.5s ease-in-out;
    overflow: hidden;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Semi-transparent overlay to ensure text/game visibility over background images */
#tetris-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.85);
    /* Slate 900 heavy overlay */
    z-index: 1;
}

#tetris-container {
    position: relative;
    z-index: 10;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

canvas#tetris-canvas {
    /* Canvas connects logic to visual */
    max-width: 100%;
    height: 100%;
}

#tetris-overlay-msg {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    padding: 10px 20px;
    border-radius: 8px;
    color: #38bdf8;
    /* sky-400 */
    font-weight: bold;
    font-family: 'Inter', sans-serif;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    border: 1px solid rgba(56, 189, 248, 0.3);
}

#tetris-instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    pointer-events: none;
    text-align: center;
}