/* Poker dice */
.pd { display: grid; gap: 20px; }
@media (min-width: 1000px) { .pd { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.pd > * { min-width: 0; }
.pd-dice { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 460px; margin: 6px auto 0; }
.pd-die { aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--c-line); background: #f4f5f7; color: #111; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 0; position: relative; }
.pd-die b { font: 800 clamp(22px, 7vw, 40px)/1 var(--font, sans-serif); }
.pd-die.is-pic b { color: #b91c1c; }
.pd-die small { position: absolute; bottom: 4px; font: 700 10px var(--font, sans-serif); color: #3f6212; text-transform: uppercase; }
.pd-die.is-held { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(163, 230, 53, .45); transform: translateY(-4px); }
.pd-die[disabled] { cursor: default; background: var(--surface-2, #1c212a); color: var(--c-muted); }
.pd-die.is-roll { animation: pdroll .45s ease-out; }
@keyframes pdroll { 0% { transform: rotate(-25deg) scale(.85); } 60% { transform: rotate(10deg) scale(1.05); } 100% { transform: none; } }
.pd-hand { text-align: center; margin: 18px 0 6px; font-size: 15px; color: var(--c-muted); min-height: 30px; }
.pd-hand b { font-size: 24px; color: var(--c-accent); }
.pd-act { justify-content: center; }
.pd-left { text-align: center; font-size: 13px; color: var(--c-muted); min-height: 1em; margin: 8px 0 0; }
.pd-small { background: none; border: 1px solid var(--c-line); color: var(--c-muted); border-radius: 8px; padding: 6px 12px; font: 600 12.5px var(--font, sans-serif); cursor: pointer; }
.ccc .pd-t { width: 100%; border-collapse: collapse; margin: 0; font-size: 14px; }
.ccc .pd-t th, .ccc .pd-t td { padding: 6px 8px; border-bottom: 1px solid var(--c-line); background: none; text-align: left; }
.ccc .pd-t td + td, .ccc .pd-t th + th { text-align: right; font-family: var(--mono, monospace); }
.ccc .pd-t tr.is-on td { color: var(--c-accent); font-weight: 800; }
