.page-header{text-align:center;margin-bottom:36px;padding-top:8px}.page-header h1{font-size:38px;font-weight:700;letter-spacing:-.8px;line-height:1.2;margin-bottom:12px;color:var(--c-text);background:linear-gradient(135deg,#0891b2,#7c3aed);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}.page-header .subtitle{font-size:16px;color:var(--c-text-secondary);max-width:760px;margin:0 auto;line-height:1.75}.page-header .subtitle strong{color:#0891b2;font-weight:700}@media(max-width:480px){.page-header h1{font-size:26px}.page-header .subtitle{font-size:14.5px}}.breadcrumb{display:flex;gap:6px;align-items:center;justify-content:center;font-size:13px;color:var(--c-text-muted);margin-bottom:14px;flex-wrap:wrap}.breadcrumb a{color:var(--c-text-muted);text-decoration:none}.breadcrumb a:hover{color:var(--c-accent)}.breadcrumb .bc-sep{color:var(--c-border)}.quick-answer{margin-bottom:28px;padding:18px 20px;background:linear-gradient(135deg,#0891b20f,#7c3aed0d);border:1px solid rgba(8,145,178,.22);border-left:4px solid #0891b2;border-radius:12px;font-size:15.5px;color:var(--c-text-secondary);line-height:1.8}.quick-answer .qa-title{font-weight:800;color:#0891b2;font-size:14px;text-transform:uppercase;letter-spacing:.06em;margin-bottom:6px;display:flex;align-items:center;gap:6px}.quick-answer strong{color:var(--c-text)}.quick-answer .qa-source{font-size:13px;color:var(--c-text-muted);margin-top:6px}.gen-layout{display:grid;grid-template-columns:1fr;gap:24px;align-items:start}.dice-card{background:var(--c-surface);border:1px solid var(--c-border);border-radius:16px;padding:28px;text-align:center}.dice-setup{display:flex;gap:16px;flex-wrap:wrap;justify-content:center;margin-bottom:20px}.die-type-group{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.die-type{width:54px;height:54px;border-radius:12px;border:2px solid var(--c-border);background:var(--c-bg);font-weight:800;font-size:13px;cursor:pointer;color:var(--c-text-secondary);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;transition:all .15s;font-family:var(--font)}.die-type .dt-label{font-size:15px;font-weight:800;line-height:1}.die-type .dt-icon{font-size:16px}.die-type:hover{border-color:#0891b2;color:#0891b2;transform:translateY(-1px)}.die-type.active{background:linear-gradient(135deg,#0891b2,#7c3aed);color:#fff;border-color:transparent;box-shadow:0 4px 12px #0891b247}.die-type .dt-count{position:absolute;top:-6px;right:-6px;background:var(--c-danger);color:#fff;border-radius:999px;font-size:11px;font-weight:800;width:20px;height:20px;display:flex;align-items:center;justify-content:center;display:none}.die-type.has-count{position:relative}.die-type.has-count .dt-count{display:flex}.count-ctl{display:flex;align-items:center;gap:6px}.count-ctl button{width:28px;height:28px;border-radius:8px;border:1px solid var(--c-border);background:var(--c-bg);cursor:pointer;font-size:16px;font-weight:700;color:var(--c-text);line-height:1}.count-ctl button:hover{border-color:#0891b2;color:#0891b2}.count-ctl .count-val{min-width:22px;font-weight:800;font-size:15px}.roll-stage{min-height:180px;display:flex;align-items:center;justify-content:center;gap:14px;flex-wrap:wrap;padding:20px 0;position:relative}.dice-3d{width:64px;height:64px;position:relative;perspective:600px;font-weight:800}.dice-3d .die-face{position:absolute;inset:0;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:30px;color:#fff;background:linear-gradient(135deg,#0891b2,#0e7490);box-shadow:inset 0 -3px #0003,0 6px 16px #00000026;animation:diePop .4s cubic-bezier(.4,1.6,.6,1)}.dice-3d.d8 .die-face{clip-path:polygon(50% 0%,90% 25%,90% 75%,50% 100%,10% 75%,10% 25%);background:linear-gradient(135deg,#7c3aed,#6d28d9);border-radius:4px}.dice-3d.d4 .die-face{clip-path:polygon(50% 0%,100% 100%,0% 100%);background:linear-gradient(135deg,#dc2626,#b91c1c);border-radius:4px;font-size:20px;padding-top:18px}.dice-3d.d10 .die-face{clip-path:polygon(50% 0%,100% 38%,81% 100%,19% 100%,0% 38%);background:linear-gradient(135deg,#d97706,#b45309);border-radius:6px}.dice-3d.d12 .die-face{background:linear-gradient(135deg,#059669,#047857)}.dice-3d.d20 .die-face{clip-path:polygon(50% 0%,95% 25%,95% 75%,50% 100%,5% 75%,5% 25%);background:linear-gradient(135deg,#4f46e5,#4338ca);border-radius:4px;font-size:26px}.dice-3d.rolling .die-face{animation:dieRoll .5s linear infinite}@keyframes dieRoll{0%{transform:rotateX(0) rotateY(0)}25%{transform:rotateX(180deg) rotateY(90deg)}50%{transform:rotateX(360deg) rotateY(180deg)}75%{transform:rotateX(540deg) rotateY(270deg)}to{transform:rotateX(720deg) rotateY(360deg)}}@keyframes diePop{0%{transform:scale(.3) rotate(-30deg);opacity:0}to{transform:scale(1) rotate(0);opacity:1}}.dice-3d .die-value{font-size:15px;margin-top:70px;text-align:center;color:var(--c-text-secondary);font-weight:700}.roll-empty{color:var(--c-text-muted);font-size:15px}.result-bar{display:flex;gap:16px;align-items:center;justify-content:center;flex-wrap:wrap;margin-bottom:18px}.result-total{font-size:20px;font-weight:800;color:var(--c-text)}.result-total .rt-label{font-size:12px;color:var(--c-text-secondary);font-weight:600;display:block;text-transform:uppercase;letter-spacing:.06em}.result-nat{font-size:13px;font-weight:700;color:#dc2626;background:#fee2e2;padding:3px 10px;border-radius:999px}.roll-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-bottom:16px}.r-btn{padding:12px 30px;border-radius:999px;border:0;cursor:pointer;font-size:15px;font-weight:800;transition:transform .15s,box-shadow .15s;font-family:var(--font)}.r-btn:hover{transform:translateY(-2px)}.r-btn.primary{background:linear-gradient(135deg,#0891b2,#0e7490);color:#fff;box-shadow:0 4px 14px #0891b24d}.r-btn.ghost{background:var(--c-bg);color:var(--c-text-secondary);border:1px solid var(--c-border)}.hist-wrap{display:none;margin-top:16px;text-align:left}.hist-wrap.show{display:block}.hist-title{font-size:13px;font-weight:700;color:var(--c-text);margin-bottom:8px;display:flex;justify-content:space-between;align-items:center}.hist-clear{font-size:12px;color:var(--c-text-secondary);text-decoration:underline;cursor:pointer;background:none;border:0}.hist-list{display:flex;flex-wrap:wrap;gap:8px;max-height:140px;overflow-y:auto}.hist-chip{font-size:12px;padding:6px 12px;border-radius:999px;background:var(--c-bg);border:1px solid var(--c-border-light);color:var(--c-text-secondary);font-variant-numeric:tabular-nums}.hist-chip b{color:var(--c-text)}.toc-section{padding:8px 0 0}.toc-bar{display:flex;gap:6px;flex-wrap:wrap;justify-content:center;padding:14px 16px;background:var(--c-surface);border:1px solid var(--c-border);border-radius:12px}.toc-link{padding:7px 14px;border-radius:999px;font-size:13px;font-weight:600;color:var(--c-text-secondary);text-decoration:none;background:var(--c-bg);border:1px solid var(--c-border-light);transition:all .2s;white-space:nowrap}.toc-link:hover{background:#0891b20f;border-color:#0891b259;color:#0891b2}.content-section{padding:48px 0 80px;background:var(--c-bg)}.content-wrap{max-width:780px;margin:0 auto}.content-wrap h2{font-size:26px;font-weight:700;margin-top:48px;margin-bottom:14px;scroll-margin-top:90px}.content-wrap h3{font-size:18px;font-weight:600;margin-top:26px;margin-bottom:8px}.content-wrap p{font-size:17px;color:var(--c-text-secondary);line-height:1.9;margin-bottom:18px}.content-wrap ul,.content-wrap ol{font-size:17px;color:var(--c-text-secondary);line-height:2.1;padding-left:20px;margin-bottom:22px}.content-wrap strong{color:var(--c-text)}.content-wrap table{width:100%;border-collapse:collapse;font-size:15px;margin-bottom:22px}.content-wrap th,.content-wrap td{padding:10px;text-align:left;border:1px solid var(--c-border-light)}.content-wrap th{background:var(--c-surface)}
