/* PuzzlePerDiem — Jigsaw Engine Styles */

#puzzle-container {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

#puzzle-area {
    display: block;
    cursor: grab;
    touch-action: none; /* prevents scroll interference on mobile */
    background: #f0ede8;
    border-radius: 4px;
}

#puzzle-area:active {
    cursor: grabbing;
}

/* Controls bar */
#controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

#piece-select,
#rotate-toggle,
#fullscreen-btn {
    padding: 6px 14px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 14px;
    cursor: pointer;
    background: #fff;
}

#fullscreen-btn {
    background: #0077cc;
    color: #fff;
    border-color: #0077cc;
}

#fullscreen-btn:hover {
    background: #005fa3;
}

#rotate-toggle:hover,
#piece-select:hover {
    background: #f5f5f5;
}

/* Timer display (optional — added if timer feature enabled) */
#puzzle-timer {
    font-size: 15px;
    font-weight: 600;
    color: #444;
    min-width: 60px;
    text-align: center;
}

/* Fullscreen adjustments */
#puzzle-area:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
}

#puzzle-area:-moz-full-screen {
    width: 100vw;
    height: 100vh;
}

#puzzle-area:fullscreen {
    width: 100vw;
    height: 100vh;
}