/* The dice kit's die (docs/adr/0106; dice.js): the site's mark, the bevel
   die, in one ink. A game colors it from its root's tokens (each falls back
   to the mark's own) and sizes it with --die. A kept die lifts a step,
   ringed in the tray's ink, with its Kept tab under it; it never moves on a
   throw. Lined up (five of a kind), each glows in the mark's yellow. */

.house-die { --die: 54px; width: var(--die); height: var(--die); flex: none; position: relative; display: block; box-sizing: border-box;
  padding: 0; margin: 0; border: 0; background: none; color: inherit; font: inherit; border-radius: 24%; }
button.house-die { cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button.house-die:disabled { cursor: default; }
button.house-die:focus-visible { outline: 3px solid var(--die-focus, var(--focus, #111)); outline-offset: 3px; }
.house-die svg { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 2px rgba(20, 30, 60, .45)); }
.house-die-rim { fill: var(--die-rim, #ddd4c0); stroke: var(--die-edge, #1b1712); stroke-width: 4; }
.house-die-face { fill: var(--die-face, #fffcf4); }
.house-die-gleam { fill: none; stroke: #fff; stroke-opacity: .75; stroke-width: 1.6; }
.house-die-pip { fill: var(--die-pip, #1b1712); }
.house-die-shine { fill: #fff; opacity: .45; }
.house-die.blank svg { filter: none; opacity: .18; }
.house-die.blank .house-die-face { fill: transparent; }

/* kept: a step up, ringed, its tab under it */
.house-die.kept { transform: translateY(-10px); }
.house-die.kept svg { filter: drop-shadow(0 9px 6px rgba(10, 20, 40, .45)); }
.house-die.kept::before { content: ""; position: absolute; inset: -4px; border-radius: 26%; box-shadow: 0 0 0 2.5px var(--die-keep, #fff); pointer-events: none; }
.house-die.kept::after { content: "Kept"; position: absolute; left: 50%; top: calc(100% + 6px); transform: translateX(-50%); pointer-events: none;
  font: 700 12px/1 var(--ui-font, system-ui, sans-serif); letter-spacing: .06em; color: var(--die-keep, #fff); background: rgba(0, 0, 0, .3); padding: 3px 7px; border-radius: 999px; white-space: nowrap; }
@media (prefers-reduced-motion: no-preference) {
  .house-die { transition: transform var(--m-glide, 250ms) cubic-bezier(.2, .7, .3, 1); }
}

/* lined up: five of a kind */
.house-die.lined::before { content: ""; position: absolute; inset: -3px; border-radius: 24%; pointer-events: none;
  box-shadow: 0 0 0 2.5px #f5c518, 0 0 10px 2px rgba(245, 197, 24, .5); }
