/* Dice roller — tool-specific styles. */
.xdr-types { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.xdr-types .xct-chip { min-width: 56px; min-height: 40px; font-weight: 600; }
.xdr-tray {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; min-height: 96px;
	margin-top: 18px; padding: 18px 12px; border-radius: 12px; background: var(--xct-soft);
}
.xdr-die {
	position: relative; width: 64px; height: 64px; border-radius: 14px; flex: 0 0 auto;
	background: #fff; border: 1px solid var(--xct-line);
	box-shadow: 0 2px 0 rgba(0,0,0,.06), 0 6px 14px -6px rgba(103,96,216,.35);
	display: flex; align-items: center; justify-content: center; flex-direction: column;
}
.xdr-die--pips { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); padding: 10px; gap: 2px; }
.xdr-pip { width: 11px; height: 11px; border-radius: 50%; background: var(--xct-ink); justify-self: center; align-self: center; }
.xdr-num { font-size: 1.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.xdr-tag { font-size: .625rem; color: var(--xct-muted); margin-top: 3px; letter-spacing: .04em; }
.xdr-die--d4 { border-radius: 8px; }
.xdr-die--d20, .xdr-die--d12 { border-radius: 50% / 40%; }
.xdr-die--d100 .xdr-num { font-size: 1.3rem; }
.xdr-tray:not(.is-idle):not(.is-rolling) .xdr-die { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--xct-grad) border-box; border: 2px solid transparent; }
.xdr-tray.is-idle .xdr-die { opacity: .45; }
.xdr-tray.is-rolling .xdr-die { animation: xdr-tumble .32s ease-in-out infinite alternate; }
.xdr-tray.is-rolling .xdr-die:nth-child(2n) { animation-delay: -.12s; animation-direction: alternate-reverse; }
.xdr-tray.is-rolling .xdr-die:nth-child(3n) { animation-delay: -.2s; }
@keyframes xdr-tumble {
	0% { transform: translateY(0) rotate(-14deg) scale(.96); }
	50% { transform: translateY(-10px) rotate(8deg) scale(1.04); }
	100% { transform: translateY(0) rotate(18deg) scale(.98); }
}
@media (prefers-reduced-motion: reduce) {
	.xdr-tray.is-rolling .xdr-die { animation: none; }
}
.xdr-total { margin-top: 6px; }
.xdr-totalnum { padding: 14px 0 6px; }
.xdr-sub { min-height: 1.4em; word-break: break-word; }
.xdr-btns .xdr-roll { min-width: 160px; }
.xdr-hist { margin-top: 22px; }
.xdr-table { font-size: .875rem; }
.xdr-table th { font-size: .75rem; color: var(--xct-muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.xdr-dice { color: var(--xct-muted); word-break: break-word; }
.xdr-table td:last-child { font-weight: 700; }
.xdr-empty { color: var(--xct-muted); }
.xdr-stats { font-size: .8125rem; color: var(--xct-muted); margin: 10px 0 0; }
@media (max-width: 420px) {
	.xdr-die { width: 54px; height: 54px; border-radius: 12px; }
	.xdr-pip { width: 9px; height: 9px; }
	.xdr-num { font-size: 1.35rem; }
	.xdr-tray { gap: 10px; }
}
