.game-container {
    max-width: 800px;
    margin: 20px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.welcome-screen {
    text-align: center;
    padding: 40px;
    background: #f0f2f5;
    border-radius: 12px;
}

.game-area {
    display: flex;
    gap: 30px;
    justify-content: center;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.game-wrapper {
    position: relative;
    border: 4px solid #333;
    background: #eee;
}

#game-board {
    display: grid;
    cursor: pointer;
}

.cell {
    width: 100px;
    height: 100px;
    border: 1px solid rgba(255,255,255,0.2);
    box-sizing: border-box;
    transition: transform 0.1s;
}

.cell.invisible {
    opacity: 0;
}

/* Timed Preview Overlay */
.preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Transparent so they see the image */
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 100;
}

#preview-countdown {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    pointer-events: none;
}

/* Side Panel Info */
.info-panel {
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.game-info h3, .game-info p {
    margin: 5px 0;
}

.start-btn {
    padding: 12px 24px;
    background: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.start-btn:hover {
    background: #45a049;
}

#next-puzzle-btn {
    background: #2196F3;
}