/* ToolCMS V3.1.82 (c) ToolWorld https://www.toolworld.cn/ */
*{box-sizing:border-box;margin:0;padding:0}
body{margin:0;padding:0;font-family:inherit;background:transparent;color:var(--text-1,#333);font-size:14px;line-height:1.6}
.other-dice-container{max-width:100%;margin:0 auto;padding:16px}
.other-dice-card{background:var(--bg-card,#fff);border:1px solid var(--border,#e2e8f0);border-radius:var(--radius,14px);padding:24px}
.other-dice-types{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin-bottom:20px}
.other-dice-type{padding:10px 0;border:1px solid var(--border,#d1d5db);border-radius:var(--radius-sm,8px);background:var(--bg-card,#fff);color:var(--text-2,#555);cursor:pointer;font-weight:700;font-size:14px;transition:all .15s}
.other-dice-type:hover{background:var(--primary-light)}
.other-dice-type.active{background:var(--primary,var(--primary-hover));color:#fff;border-color:var(--primary,var(--primary-hover))}
.other-dice-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}
.other-dice-label{font-weight:600;font-size:13px;color:var(--text-2,#555)}
.other-dice-stepper{display:flex;align-items:center;gap:8px}
.other-dice-step{width:32px;height:32px;border:1px solid var(--border,#d1d5db);border-radius:var(--radius-sm,8px);background:var(--bg-card,#fff);color:var(--text-1,#333);cursor:pointer;font-size:18px;line-height:1}
.other-dice-step:hover{background:var(--primary-light)}
.other-dice-input{width:60px;text-align:center;padding:6px;border:1px solid var(--border,#d1d5db);border-radius:var(--radius-sm,8px);font-size:15px;font-weight:700;background:var(--bg-card,#fff);color:var(--text-1,#333);outline:none}
.other-dice-roll{width:100%;padding:14px;border:none;border-radius:var(--radius,12px);background:var(--primary,var(--primary-hover));color:#fff;font-size:16px;font-weight:700;cursor:pointer;transition:background .15s;margin-bottom:20px}
.other-dice-roll:hover{background:var(--primary-light)}
.other-dice-roll:disabled{opacity:.6;cursor:not-allowed}
.other-dice-tray{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;min-height:100px;padding:16px;background:var(--bg-soft,#f8fafc);border-radius:var(--radius,12px);margin-bottom:16px}
.other-dice-placeholder{color:var(--text-3,#94a3b8);align-self:center;font-size:13px}
.other-die{width:64px;height:64px;border-radius:10px;background:linear-gradient(145deg,#fff,#e2e8f0);border:2px solid var(--border,#d1d5db);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:800;color:var(--text-1,#333);box-shadow:0 2px 6px rgba(0,0,0,.1);transition:transform .1s}
.other-die.rolling{animation:dice-shake .3s infinite}
@keyframes dice-shake{0%,100%{transform:translateY(0) rotate(0)}25%{transform:translateY(-8px) rotate(15deg)}75%{transform:translateY(4px) rotate(-10deg)}}
.other-die.crit{background:linear-gradient(145deg,#fef3c7,#fbbf24);border-color:#d97706;color:#92400e}
.other-die.fumble{background:linear-gradient(145deg,#fee2e2,#fca5a5);border-color:#dc2626;color:#991b1b}
.other-dice-total{text-align:center;font-size:15px;color:var(--text-2,#555);margin-bottom:16px}
.other-dice-total strong{font-size:28px;color:var(--primary,var(--primary-hover));margin-left:8px}
.other-dice-history{border-top:1px solid var(--border-light,#f1f5f9);padding-top:12px}
.other-dice-history-title{font-size:12px;color:var(--text-3,#94a3b8);margin-bottom:8px;font-weight:600}
.other-dice-history-list{display:flex;flex-wrap:wrap;gap:6px}
.other-dice-history-item{padding:4px 10px;background:var(--bg-soft,#f8fafc);border-radius:999px;font-size:12px;color:var(--text-2,#555);font-family:ui-monospace,Menlo,monospace}
.other-dice-message{margin-top:12px;padding:8px 12px;border-radius:var(--radius-sm,8px);font-size:13px;display:none}
.other-dice-message.show{display:block}
.other-dice-message.success{background:var(--primary-light);color:var(--primary,var(--primary-hover))}
.other-dice-message.error{background:var(--error-bg,#fee2e2);color:var(--error,#991b1b)}
.other-dice-footer{display:flex;justify-content:space-between;align-items:center;margin-top:16px;padding-top:12px;border-top:1px solid var(--border-light,#f1f5f9);font-size:12px;color:var(--text-3,#94a3b8)}
.other-dice-footer-right{margin-left:auto}
@media(max-width:640px){.other-dice-card{padding:16px}.other-dice-types{grid-template-columns:repeat(3,1fr)}.other-dice-footer{flex-direction:column;gap:4px;text-align:center}}
