@layer wertigo.features{.dice-roller-panel{color:var(--ds-ink);grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:18px;display:grid}.dice-roller-panel__history,.dice-roller-panel__settings,.dice-roller-panel__stage{min-width:0}.dice-roller-panel__settings,.dice-roller-panel__stage{padding:22px}.dice-roller-panel__stage{flex-direction:column;min-height:480px;display:flex}.dice-roller-panel__history-head,.dice-roller-panel__settings-head,.dice-roller-panel__stage-head{justify-content:space-between;align-items:flex-start;gap:14px;display:flex}.dice-roller-panel__history-head h2,.dice-roller-panel__history-head p,.dice-roller-panel__settings-head h2,.dice-roller-panel__settings-head p,.dice-roller-panel__stage-head h2,.dice-roller-panel__stage-head p{margin:0}.dice-roller-panel__eyebrow{color:var(--ds-brand);font-size:var(--ds-text-2xs);font-weight:var(--ds-weight-bold);letter-spacing:.08em;text-transform:uppercase}.dice-roller-panel__title{font-size:var(--ds-text-xl);font-weight:var(--ds-weight-bold);margin:2px 0 0;line-height:1.25}.dice-roller-panel__arena{border:1px solid var(--ds-brand-soft-line);border-radius:var(--ds-radius-xl);background:radial-gradient(circle at 50% 18%,color-mix(in srgb,var(--ds-surface) 96%,transparent),transparent 42%),linear-gradient(145deg,var(--ds-brand-soft) 0,var(--ds-surface) 58%,var(--ds-danger-soft) 100%);flex-direction:column;flex:auto;justify-content:center;align-items:center;gap:22px;min-height:340px;margin-top:16px;padding:24px;display:flex;position:relative;overflow:hidden}.dice-roller-panel__arena:after,.dice-roller-panel__arena:before{background:var(--ds-brand-soft);content:"";filter:blur(2px);border-radius:50%;width:220px;height:220px;position:absolute}.dice-roller-panel__arena:before{top:-140px;right:-70px}.dice-roller-panel__arena:after{bottom:-160px;left:-80px}.dice-roller-panel__dice{z-index:1;flex-wrap:wrap;justify-content:center;align-items:center;gap:15px;max-width:640px;display:flex;position:relative}.dice-roller-panel__die{justify-items:center;gap:7px;min-width:72px;display:grid}.dice-roller-panel__die small{color:var(--ds-brand-strong);font-size:var(--ds-text-2xs);font-weight:var(--ds-weight-bold);letter-spacing:.04em}.dice-roller-panel__die-shape{background:linear-gradient(145deg,var(--ds-brand),var(--ds-brand-hover));width:72px;height:72px;color:var(--ds-on-brand);font-size:var(--ds-text-2xl);font-variant-numeric:tabular-nums;font-weight:var(--ds-weight-bold);filter:drop-shadow(0 9px 9px #98262630);place-items:center;line-height:1;display:grid}.dice-roller-panel__die-shape--d4{clip-path:polygon(50% 4%,96% 91%,4% 91%);padding-top:20px}.dice-roller-panel__die-shape--d6{border-radius:var(--ds-radius-lg);background:linear-gradient(145deg,var(--ds-surface) 0,var(--ds-brand-soft) 100%);color:var(--ds-brand-hover);border:3px solid #ffffffb8;padding:10px;box-shadow:inset 0 0 0 2px #b434341a}.dice-roller-panel__die-shape--d8{clip-path:polygon(50% 0,96% 50%,50% 100%,4% 50%)}.dice-roller-panel__die-shape--d10{clip-path:polygon(50% 0,94% 34%,78% 92%,22% 92%,6% 34%)}.dice-roller-panel__die-shape--d12{clip-path:polygon(29% 2%,71% 2%,98% 32%,88% 78%,50% 100%,12% 78%,2% 32%)}.dice-roller-panel__die-shape--d20{clip-path:polygon(50% 0,96% 25%,89% 78%,50% 100%,11% 78%,4% 25%)}.dice-roller-panel__die-shape--d100{font-size:var(--ds-text-2xl);border-radius:50%;box-shadow:inset 0 0 0 3px #ffffffa8,inset 0 0 0 6px #801a1a1f}.dice-roller-panel__die-number{display:block}.dice-roller-panel__pips{grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);place-items:center;width:100%;height:100%;display:grid}.dice-roller-panel__pip{opacity:0;background:currentColor;border-radius:50%;width:10px;height:10px;transform:scale(.55)}.dice-roller-panel__pip--visible{opacity:1;transform:scale(1)}.dice-roller-panel__arena--rolling .dice-roller-panel__die{animation:dice-roll .7s cubic-bezier(.2,.75,.25,1) var(--dice-delay) both}.dice-roller-panel__arena--rolling .dice-roller-panel__die-shape{animation:dice-flash .7s ease var(--dice-delay) both}.dice-roller-panel__empty{z-index:1;text-align:center;justify-items:center;max-width:320px;display:grid;position:relative}.dice-roller-panel__empty-icon{border:1px solid var(--ds-brand-soft-line);border-radius:var(--ds-radius-2xl);background:var(--ds-surface);width:88px;height:88px;color:var(--ds-brand);box-shadow:none;place-items:center;display:grid;transform:rotate(-4deg)}.dice-roller-panel__empty-icon svg{width:50px;height:50px}.dice-roller-panel__empty strong{font-size:var(--ds-text-xl);margin-top:18px}.dice-roller-panel__empty p{color:var(--ds-subtle);font-size:var(--ds-text-sm);margin:6px 0 0;line-height:1.55}.dice-roller-panel__total{z-index:1;border:1px solid var(--ds-line);border-radius:var(--ds-radius-lg);background:color-mix(in srgb,var(--ds-surface) 92%,transparent);max-width:100%;box-shadow:none;grid-template-columns:minmax(78px,auto) 28px minmax(62px,auto) 28px minmax(78px,auto);align-items:center;gap:6px;padding:7px;display:grid;position:relative}.dice-roller-panel__total--simple{grid-template-columns:minmax(132px,auto);padding:5px}.dice-roller-panel__grand-total,.dice-roller-panel__total-part{border-radius:var(--ds-radius-md);align-content:center;justify-items:center;min-height:54px;padding:6px 10px;display:grid}.dice-roller-panel__grand-total span,.dice-roller-panel__total-part span{color:var(--ds-subtle);font-size:var(--ds-text-2xs);font-weight:var(--ds-weight-bold);letter-spacing:.02em}.dice-roller-panel__total-part strong{color:var(--ds-text);font-size:var(--ds-text-xl);font-variant-numeric:tabular-nums;margin-top:2px;line-height:1}.dice-roller-panel__total-operator{background:var(--ds-surface-soft);width:28px;height:28px;color:var(--ds-faint);font-size:var(--ds-text-md);font-weight:var(--ds-weight-bold);border-radius:50%;place-items:center;display:grid}.dice-roller-panel__grand-total{background:linear-gradient(145deg,var(--ds-danger-soft),var(--ds-danger-soft))}.dice-roller-panel__grand-total--sum{min-width:132px}.dice-roller-panel__grand-total span{color:var(--ds-brand-strong)}.dice-roller-panel__grand-total strong{color:var(--ds-brand);font-size:var(--ds-text-2xl);font-variant-numeric:tabular-nums;margin-top:1px;line-height:1}.dice-roller-panel__live-result{clip:rect(0,0,0,0);white-space:nowrap;width:1px;height:1px;margin:-1px;position:absolute;overflow:hidden}.dice-roller-panel__stage-action{align-self:center;width:min(100%,320px);margin-top:14px}.dice-roller-panel__keyboard-hint{color:var(--ds-subtle);font-size:var(--ds-text-2xs);justify-content:center;align-items:center;gap:7px;margin:12px 0 0;display:flex}.dice-roller-panel__keyboard-hint svg{width:18px;height:18px}.dice-roller-panel__settings{align-self:start}.dice-roller-panel__settings-head{justify-content:flex-start}.dice-roller-panel__settings-head>div{min-width:0}.dice-roller-panel__settings-head p{color:var(--ds-subtle);font-size:var(--ds-text-xs);margin-top:4px;line-height:1.5}.dice-roller-panel__settings-icon{border-radius:var(--ds-radius-lg);background:var(--ds-danger-soft);width:42px;height:42px;color:var(--ds-brand);flex:none;place-items:center;display:grid}.dice-roller-panel__settings-icon svg{width:23px;height:23px}.dice-roller-panel__fieldset{margin-top:20px}.dice-roller-panel__history-list>li>button:focus-visible,.dice-roller-panel__presets button:focus-visible{box-shadow:var(--ds-focus-ring);outline:none}.dice-roller-panel__fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px;display:grid}.dice-roller-panel__stepper{grid-template-columns:40px minmax(0,1fr) 40px;gap:6px;display:grid}.dice-roller-panel__stepper .UiButton{width:40px;min-width:40px}.dice-roller-panel__presets{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:18px 0 12px;display:grid}.dice-roller-panel__presets button{border:1px solid var(--ds-line);border-radius:var(--ds-radius-lg);background:var(--ds-surface-soft);min-height:53px;font:inherit;text-align:left;cursor:pointer;transition:border-color var(--ds-duration-fast) var(--ds-ease),background var(--ds-duration-fast) var(--ds-ease),transform var(--ds-duration-fast) var(--ds-ease);align-content:center;padding:8px 10px;display:grid}.dice-roller-panel__presets button:hover:not(:disabled){border-color:var(--ds-brand-soft-line);background:var(--ds-brand-soft)}.dice-roller-panel__presets button:active:not(:disabled){transform:scale(.98)}.dice-roller-panel__presets button:disabled{cursor:wait;opacity:.55}.dice-roller-panel__presets span{color:var(--ds-text);font-size:var(--ds-text-sm);font-weight:var(--ds-weight-bold)}.dice-roller-panel__presets small{color:var(--ds-subtle);font-size:var(--ds-text-2xs);margin-top:2px}.dice-roller-panel__history{grid-column:1/-1;padding:20px 22px}.dice-roller-panel__history-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin:16px 0 0;padding:0;list-style:none;display:grid}.dice-roller-panel__history-list li{border:1px solid var(--ds-surface-muted);border-radius:var(--ds-radius-lg);background:var(--ds-surface-soft);grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:5px 12px;min-width:0;padding:11px 12px;display:grid}.dice-roller-panel__history-result{grid-row:1/3;align-items:center;gap:7px;display:flex}.dice-roller-panel__history-result strong{border-radius:var(--ds-radius-md);background:var(--ds-danger-soft);width:42px;height:42px;color:var(--ds-brand);font-size:var(--ds-text-lg);place-items:center;display:grid}.dice-roller-panel__history-result span{color:var(--ds-text);font-size:var(--ds-text-xs);font-weight:var(--ds-weight-bold)}.dice-roller-panel__history-list p{min-width:0;color:var(--ds-muted);font-size:var(--ds-text-2xs);text-overflow:ellipsis;white-space:nowrap;margin:0;overflow:hidden}.dice-roller-panel__history-list small{color:var(--ds-faint);font-size:var(--ds-text-2xs)}.dice-roller-panel__history-list>li>button{border-radius:var(--ds-radius-md);background:var(--ds-surface);color:var(--ds-muted);font-size:var(--ds-text-2xs);font-weight:var(--ds-weight-bold);cursor:pointer;border:0;grid-area:1/3/3;align-items:center;gap:5px;padding:6px 8px;display:inline-flex}.dice-roller-panel__history-list>li>button:hover:not(:disabled){color:var(--ds-brand)}.dice-roller-panel__history-list>li>button:disabled{cursor:wait;opacity:.5}.dice-roller-panel__history-list>li>button svg{width:15px;height:15px}@keyframes dice-roll{0%{opacity:0;transform:translateY(-36px)rotate(-22deg)scale(.7)}38%{opacity:1;transform:translate(9px,7px)rotate(17deg)scale(1.08)}68%{transform:translate(-4px,-3px)rotate(-7deg)scale(.97)}to{opacity:1;transform:translateZ(0)rotate(0)scale(1)}}@keyframes dice-flash{0%,48%{filter:drop-shadow(0 14px 14px #9826261f)}70%{filter:drop-shadow(0 18px 11px #98262647)}to{filter:drop-shadow(0 9px 9px #98262630)}}@media (max-width:1024px){.dice-roller-panel{grid-template-columns:1fr}.dice-roller-panel__settings{align-self:stretch}.dice-roller-panel__history{grid-column:auto}}@media (max-width:640px){.dice-roller-panel{gap:12px}.dice-roller-panel__history,.dice-roller-panel__settings,.dice-roller-panel__stage{padding:16px}.dice-roller-panel__stage{min-height:0}.dice-roller-panel__stage-head{flex-direction:column;align-items:stretch}.dice-roller-panel__stage-head .UiButton{align-self:flex-start}.dice-roller-panel__arena{min-height:240px;padding:18px 10px}.dice-roller-panel__stage-action{width:100%}.dice-roller-panel__die{min-width:58px}.dice-roller-panel__die-shape{width:58px;height:58px;font-size:var(--ds-text-xl)}.dice-roller-panel__die-shape--d100{font-size:var(--ds-text-lg)}.dice-roller-panel__pip{width:8px;height:8px}.dice-roller-panel__total{grid-template-columns:minmax(0,1fr) 22px minmax(0,.8fr) 22px minmax(0,1fr);gap:4px;width:100%;padding:5px}.dice-roller-panel__total--simple{grid-template-columns:minmax(132px,auto);width:auto}.dice-roller-panel__grand-total,.dice-roller-panel__total-part{min-height:50px;padding:5px}.dice-roller-panel__total-operator{width:22px;height:22px;font-size:var(--ds-text-sm)}.dice-roller-panel__grand-total span,.dice-roller-panel__total-part span{font-size:var(--ds-text-2xs);text-align:center}.dice-roller-panel__total-part strong{font-size:var(--ds-text-lg)}.dice-roller-panel__grand-total strong{font-size:var(--ds-text-xl)}.dice-roller-panel__fields,.dice-roller-panel__history-list{grid-template-columns:1fr}.dice-roller-panel__keyboard-hint{display:none}}@media (max-width:480px){.dice-roller-panel__presets{grid-template-columns:1fr}.dice-roller-panel__history-list li{grid-template-columns:minmax(0,1fr) auto}.dice-roller-panel__history-result{grid-area:auto/1/auto/-1}.dice-roller-panel__history-list>li>button{grid-area:2/2/4}}}
