/* =============================================================================
   Paletki — game-specific styles (retro dark court, difficulty picker).
   Loaded together with games.css via $extraCss. Uses site design tokens;
   the dark court frame colours are deliberate literals matching the canvas
   painting in game-paletki.js (retro arcade look, like the classic palettes
   in games-2048.css / games-saper.css).
   ============================================================================= */

/* ---------------- Court (canvas frame) ---------------- */

.plk-court-wrap {
    max-width: 720px;
    margin: 0 auto;
    background: #0d1117;
    border: 3px solid #2b3340;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.plk-court {
    display: block;
    width: 100%;
    height: auto;
    cursor: none;               /* the paddle IS the cursor over the court */
    touch-action: none;
}

@media (hover: none) {
    .plk-court {
        cursor: default;        /* touch devices: no cursor to hide */
    }
}

/* ---------------- Difficulty picker (3 buttons) ---------------- */

.plk-diff {
    display: inline-flex;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.plk-diff-btn {
    padding: 0.55rem 0.9rem;
    border: none;
    border-right: 1px solid var(--color-gray-300);
    background: var(--color-white);
    color: var(--color-gray-700);
    font-family: var(--font-family);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.plk-diff-btn:last-child {
    border-right: none;
}

.plk-diff-btn:hover {
    color: var(--color-primary);
}

.plk-diff-btn--active {
    background: var(--color-primary);
    color: var(--color-white);
}

.plk-diff-btn--active:hover {
    color: var(--color-white);
}

/* ---------------- HUD extras ---------------- */

.plk-pause-hint {
    font-size: 0.85rem;
    color: var(--color-gray-500);
}

@media (max-width: 600px) {
    .plk-pause-hint {
        display: none;          /* no keyboard on phones — hide the key hint */
    }

    .plk-diff-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.85rem;
    }
}

/* Per-difficulty best line inside the stats modal. */
.plk-best-line {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    color: var(--color-gray-600);
}
