/* ==========================================
   Fictional item selection
   ==========================================
   The card, chips, mask overlay, tap marker and Smaller/Larger controls are
   the object confirmation card's own classes (.object-*, .photo-preview-*),
   so the fictional picker looks and behaves like the real-photo one. Only the
   pieces that card does not have live here.

   A file of its own, as on /test, where it began (test/fictional-select.css). */

/* ── Inside the puzzle card (since 2026-09-30) ────────────────
   The picker runs in #puzzle-game-section, in a second .puzzle-board beside
   the real one, so its picture has the board's exact square, padding and
   world colour. .is-selecting on the card swaps the two; story-puzzle.js
   drops it once it has drawn the chosen picture whole on the real board, just
   before breaking it into tiles — so the picture never moves.

   There is no global .hidden in these stylesheets: the controls declare
   their own. */
.fictional-select-board,
.fictional-select-section {
    display: none;
}

.puzzle-game-section.is-selecting .fictional-select-board {
    display: block;
}

.puzzle-game-section.is-selecting .fictional-select-section:not(.hidden) {
    display: block;
    margin-top: var(--spacing-sm, 8px);
}

.puzzle-game-section.is-selecting #puzzle-board,
.puzzle-game-section.is-selecting .puzzle-round-badge,
.puzzle-game-section.is-selecting .puzzle-hint,
.puzzle-game-section.is-selecting .puzzle-item-caption,
.puzzle-game-section.is-selecting .puzzle-stats {
    display: none;
}

/* No padding on the frame: the mask and the tap marker are placed against
   the picture's own box (drawnImageRect in story-fictional-select.js). */
.fictional-select-board .fictional-select-frame {
    width: 100%;
    height: 100%;
    border-radius: 4px;
}

.fictional-select-board .fictional-select-frame img#fictional-select-img {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    cursor: crosshair;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.fictional-select-confirm {
    display: block;
    width: 100%;
    min-height: 48px;
    margin-top: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--color-primary, #6750a4);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}

.fictional-select-confirm:disabled {
    opacity: 0.38;
    cursor: default;
}
