/* =============================================================================
 * Stash — board.css   (owner: Board)
 * Only what BoardView's container, overlay, callout and inspector need.
 * The container element you pass to BoardView.create() must have a definite
 * width and height; the board centres itself inside it.
 * ========================================================================== */

.bv {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.bv-canvas {
  position: absolute;
  left: 0; top: 0;
  display: block;
  touch-action: none;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  -webkit-user-drag: none;
  cursor: pointer;
}
.bv-overlay {
  position: absolute;
  left: 0; top: 0;
  width: 0; height: 0;
  overflow: visible;
  pointer-events: none;
  z-index: 40;
}

/* off-screen grid of labelled buttons (screen readers + keyboard focus) */
.bv-sr {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}

/* ------------------------------------------------ release callout (§3.2) -- */
.bv-callout {
  position: absolute;
  min-width: 132px;
  max-width: 260px;
  padding: 6px 8px;
  border: 2px solid var(--c-mist, #c0cbdc);
  background: var(--c-ink, #181425);
  color: var(--c-white, #fff);
  box-shadow: 0 4px 0 var(--c-ink, #181425);
  white-space: nowrap;
}
.bv-callout[hidden], .bv-inspector[hidden] { display: none; }
.bv-callout-row { display: flex; align-items: center; gap: 8px; }
.bv-callout-pile { display: block; flex: none; image-rendering: crisp-edges; image-rendering: pixelated; }
.bv-callout-text { color: var(--c-white, #fff); }
.bv-callout.bv-melt {
  border-color: var(--c-gold, #feae34);
  background:
    linear-gradient(var(--c-ink, #181425), var(--c-ink, #181425)) padding-box content-box,
    repeating-linear-gradient(135deg, var(--c-gold, #feae34) 0 6px, var(--c-ink, #181425) 6px 12px) padding-box;
  padding: 10px 12px;
  white-space: normal;
  max-width: 220px;
}
.bv-melt .bv-callout-text { color: var(--c-gold-light, #fee761); }
.bv-callout-sub { color: var(--c-white, #fff); }

/* ------------------------------------------------------- pile inspector -- */
.bv-inspector.px-panel {
  position: absolute;
  width: 208px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
}
.bv-insp-sub { margin: 0 0 4px; }
.bv-insp-title { margin: 0 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bv-insp-list { list-style: none; margin: 0; padding: 0; }
.bv-insp-row {
  display: flex; align-items: center; gap: 8px;
  height: 24px;
  border-bottom: 2px solid var(--c-ink, #181425);
}
.bv-coin {
  flex: none; width: 16px; height: 16px;
  background: 0 0 / 100% 100% no-repeat;
  image-rendering: crisp-edges; image-rendering: pixelated;
}
.bv-insp-name { flex: 1 1 auto; color: var(--c-white, #fff); }
.bv-insp-tag { flex: none; }
.bv-insp-val { flex: none; min-width: 16px; text-align: right; }
.bv-insp-total { display: flex; justify-content: space-between; margin-top: 8px; color: var(--c-fog, #8b9bb4); }
