/* =============================================================================
   Skoczek / Jumper — game-specific styles (portrait canvas frame, hint line,
   touch steering zone labels). Loaded together with games.css via $extraCss.
   Uses site design tokens; the in-game palette (sky, platforms, bunny, bird,
   black holes) is drawn on the canvas by game-skoczek.js, like the classic
   palettes in games-cegielki.css.
   ============================================================================= */

/* Portrait frame (logical board is 420×640). */
.skk-canvas-wrap {
    position: relative;
    max-width: 420px;
    margin: 0 auto;
}

#skkCanvas {
    display: block;
    width: 100%;
    max-width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    cursor: crosshair;
}

#skkCanvas:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Touch steering hint zones — overlaid on the board before the run starts,
   hidden once the bunny is jumping (toggled by game-skoczek.js). */
.skk-touch-zones {
    position: absolute;
    inset: 0;
    display: none;
    pointer-events: none;
}

.skk-touch-zones.skk-zones--visible {
    display: flex;
}

.skk-zone {
    flex: 1 1 50%;
    display: flex;
    align-items: flex-end;
    padding: 0 0.75rem 1rem;
    color: rgba(232, 236, 245, 0.65);
    font-size: 0.85rem;
    font-weight: 600;
}

.skk-zone--left {
    justify-content: flex-start;
    border-right: 1px dashed rgba(232, 236, 245, 0.2);
}

.skk-zone--right {
    justify-content: flex-end;
}

/* Only phones/tablets need the touch-half labels. */
@media (hover: hover) and (pointer: fine) {
    .skk-touch-zones.skk-zones--visible {
        display: none;
    }
}

/* Start hint under the board. */
.skk-hint {
    max-width: 420px;
    margin: 0.5rem auto 0;
    min-height: 1.4em;
    text-align: center;
    color: var(--color-gray-700);
    font-size: 0.9rem;
}

/* ---------------- Stats modal extra ---------------- */

.skk-best-line {
    margin-top: 0.75rem;
    color: var(--color-gray-700);
}
