/* BackgammonX v0.1.9 — 02-board-game.css
   Owns: the board stage and the responsive board image.
   Does not own: checkers, dice, cube — none exist in v0.0.3.

   The v0.0.2 development-only calibration overlay styling is retired along
   with the rest of the old placeholder calibration; see
   README-ARCHITECTURE.md. */

:root { --bgx-css-02: 1; }

.board-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-width: 0;
}

.board-frame {
  width: 100%;
  max-width: 1080px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(212, 160, 42, 0.10), transparent 62%),
    var(--surface);
  border: 1px solid var(--line);
}

/* .board-art is the single rendered box for the master image. Kept as its
   own element (rather than styling .board-image directly) so a future
   presentation layer can share this box without touching this rule. */
.board-art {
  position: relative;
  width: 98%;
  aspect-ratio: 1 / 1;
}

/* The image is rendered unmodified: no crop, no filter, no stretch.
   Intrinsic size comes from the loaded master image itself — nothing
   here or in the HTML hardcodes a width/height. */
.board-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.board-frame.is-missing .board-image { display: none; }
.board-frame.is-missing::after {
  content: "Board image not found";
  color: var(--text-muted);
  font-size: var(--fs-sm);
}

.board-caption {
  color: var(--text-muted);
  font-size: var(--fs-sm);
  text-align: center;
  max-width: 48ch;
}
