/* Dés (dice roller) tool — the shared .tool-* layout lives in chrome.css; this
   file draws the dice themselves. Faces are 84x84, a light neutral tile with a
   pip d6 (real 3x3 arrangements) and numbered polyhedral dice carrying their
   type in the corner. No 3D, no tumbling: a roll resolves instantly. */
.des-dice {
  flex: 1 1 320px; display: flex; flex-wrap: wrap; gap: 10px;
  align-content: flex-start; min-block-size: 84px;
}
.des-die {
  position: relative; inline-size: 84px; block-size: 84px;
  border-radius: var(--radius-md); background: var(--color-neutral-100);
  border: 1px solid var(--color-neutral-400); box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
}
.des-die-pip svg { inline-size: 74%; block-size: 74%; display: block; }
.des-pip { fill: var(--color-neutral-800); }
.des-num { font-family: var(--font-heading); font-weight: 600; font-size: 34px; color: var(--color-neutral-800); font-variant-numeric: tabular-nums; }
.des-tag { position: absolute; inset-block-end: 6px; inset-inline-end: 8px; font-size: 10px; color: var(--color-neutral-600); font-variant-numeric: tabular-nums; }

/* Controls: count stepper + die-type chips. */
.des-field { min-inline-size: 0; }
.des-stepper { display: inline-flex; align-items: center; gap: 4px; }
.des-step {
  inline-size: 42px; block-size: 42px; border: 1px solid var(--color-neutral-400);
  background: transparent; border-radius: var(--radius-sm); font-size: 20px;
  line-height: 1; cursor: pointer; color: var(--color-text);
}
.des-step:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); }
.des-count { min-inline-size: 44px; text-align: center; font-family: var(--font-heading); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; color: var(--color-text); }
.des-types { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.des-type {
  min-block-size: 42px; padding: 0 13px; border: 1px solid var(--color-neutral-300);
  background: transparent; border-radius: var(--radius-md); font: inherit; font-size: 14px;
  cursor: pointer; color: var(--color-neutral-700);
}
.des-type:hover { background: color-mix(in srgb, var(--color-text) 5%, transparent); }
.des-type.is-active { border-color: var(--color-accent); color: var(--color-accent-700); }
:root[data-theme="dark"] .des-type.is-active { color: var(--color-accent-400); }
