/* 8.ro */
.dc-wide { grid-column: 1 / -1; }
.dc-quick { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.dc-n { width: 6rem; }
.dc-types { display: flex; flex-wrap: wrap; gap: 6px; }
.dc-type { min-width: 52px; min-height: 40px; justify-content: center; font-family: var(--mono); font-weight: 700; }
.dc-not { font-family: var(--mono); }
.dc-help { margin: -4px 0 0; font-size: .8125rem; color: var(--muted); }
.dc-go { justify-self: start; min-height: 44px; }
.dc-big { font-family: var(--mono); font-size: clamp(2.4rem, 8vw, 3.6rem); }
/* room for a row of dice or coins before the first throw is drawn */
.dc-board { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 18px 4px; min-height: 78px; }
.dc-die {
  position: relative; width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--line-2); box-shadow: 0 4px 0 -1px var(--line-2), var(--shadow-s);
  font: 800 1.35rem var(--mono); color: var(--text);
}
.dc-die small { position: absolute; right: 5px; bottom: 2px; font-size: .625rem; font-weight: 700; color: var(--faint); }
.dc-d6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 9px; gap: 2px; place-items: center; }
.dc-d6 i { width: 9px; height: 9px; border-radius: 50%; }
.dc-d6 i.on { background: var(--text); }
.dc-coin {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  font-size: .75rem; font-weight: 800; color: var(--text); background: var(--surface-2);
  border: 2px solid var(--line-2); box-shadow: inset 0 0 0 4px var(--surface), 0 4px 0 -1px var(--line-2);
}
.dc-coin.is-h { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-ink); }
.dc-hist { margin: 0; padding: 4px 18px 14px 40px; font-family: var(--mono); font-size: .875rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .dc-roll .dc-die, .dc-roll .dc-coin { animation: dc-tumble .45s cubic-bezier(.2, .8, .3, 1.2); }
  .dc-roll > :nth-child(2n) { animation-duration: .55s; }
  @keyframes dc-tumble { 0% { transform: translateY(-14px) rotate(-90deg) scale(.8); } 70% { transform: translateY(2px) rotate(8deg); } }
}
