#puzzle_wrapper {
    max-width: 900px;
    margin: 0 auto;
}

#puzzle_status {
    margin-bottom: 10px;
    font-size: 16px;
}

#puzzle_controls {
    margin: 10px 0;
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

#puzzle-board {
    width: 100%;
    max-width: 900px;
    background: #111;
    display: grid;
    /*gap: 2px;*/
    /*border: 1px solid #333;*/
    margin-bottom: 12px;
}

.puzzle-tile {
    position: relative;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: calc(var(--cols) * 100%) calc(var(--rows) * 100%);
    border: 2px solid darkblue;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    min-height: 70px;
}

.puzzle-tile:hover {
    transform: scale(1.01);
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.35);
}

.puzzle-tile.correct {
    border: 0px;
    box-shadow: none;
}

.puzzle-tile.selected {
    outline: 3px solid #f9d423;
    outline-offset: -3px;
}

#puzzle-message {
    display: none;
    padding: 12px;
    background: #4caf50;
    color: white;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
}

#puzzle-message.visible {
    display: block;
}
