
/* Childe DiceRoll 2.2.0 — frosted Florence theme */
.diceroll-panel{display:none;clear:both;margin:14px 0 0;padding:0;overflow:hidden;border:1px solid rgba(255,255,255,.82);border-radius:22px;background:linear-gradient(135deg,rgba(255,255,255,.92),rgba(226,241,249,.88) 52%,rgba(207,229,240,.92));box-shadow:0 12px 35px rgba(90,128,148,.13),inset 0 1px 0 rgba(255,255,255,.96);position:relative}
.diceroll-panel:before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.55;background:radial-gradient(circle at 8% 15%,rgba(255,255,255,.95),transparent 24%),radial-gradient(circle at 94% 82%,rgba(255,255,255,.8),transparent 27%),linear-gradient(115deg,transparent 0 42%,rgba(255,255,255,.26) 48%,transparent 54%)}
.diceroll-panel .inner{position:relative;z-index:1}
.diceroll-panel fieldset{border:0;margin:0;padding:0}
.diceroll-editor{padding:25px 28px 22px;font-size:12px}
.diceroll-editor-title{text-align:center;font-family:Georgia,'Times New Roman',serif;font-weight:500;letter-spacing:.18em;margin:0 0 22px;color:#55738e;font-size:22px;text-transform:uppercase}
.diceroll-editor-title:before,.diceroll-editor-title:after{content:"";display:inline-block;vertical-align:middle;width:70px;height:1px;margin:0 14px;background:linear-gradient(90deg,transparent,#9bb8ca,transparent)}
.diceroll-shapes{display:flex;justify-content:center;align-items:flex-end;flex-wrap:wrap;gap:22px;margin:0 auto 20px}
.diceroll-die-picker{-webkit-tap-highlight-color:transparent;outline:none!important;box-shadow:none!important;width:96px;height:126px;padding:0;border:0;background:transparent;color:#5f7f97;display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:8px;cursor:pointer;position:relative;transition:transform .24s ease,filter .24s ease}
.diceroll-die-picker:before{content:"";width:96px;height:96px;position:absolute;top:-2px;left:0;background-position:center;background-repeat:no-repeat;background-size:contain;filter:drop-shadow(0 8px 5px rgba(78,118,138,.12)) drop-shadow(0 0 9px rgba(190,228,242,.42));transition:filter .24s ease,transform .24s ease}
.diceroll-die-picker:hover{transform:translateY(-6px)}
.diceroll-die-picker:hover:before{filter:drop-shadow(0 10px 8px rgba(70,111,132,.18)) drop-shadow(0 0 15px rgba(190,232,246,.68)) brightness(1.04)}
.diceroll-die-picker.is-selected{transform:translateY(-5px);filter:brightness(1.03)}
.diceroll-die-picker.is-selected:after{content:"✦";position:absolute;left:50%;top:-9px;width:106px;height:106px;transform:translateX(-50%);border:0;border-radius:50%;background:radial-gradient(circle,rgba(255,255,255,.05) 0 42%,transparent 43%),radial-gradient(circle,transparent 54%,rgba(174,221,238,.55) 55%,rgba(255,255,255,.72) 58%,transparent 61%);box-shadow:0 0 18px rgba(174,221,238,.48),inset 0 0 18px rgba(255,255,255,.22);color:rgba(116,178,204,.95);font-family:Georgia,'Times New Roman',serif;font-size:10px;line-height:18px;text-align:center;text-shadow:0 0 8px rgba(255,255,255,.95);pointer-events:none}
.diceroll-die-picker:focus,.diceroll-die-picker:focus-visible{outline:none!important;box-shadow:none!important}
.diceroll-die-picker span,.diceroll-die-picker small{position:relative;z-index:3}
.diceroll-die-picker span{font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:14px;line-height:1;color:#50718a;margin-top:auto;margin-bottom:38px;text-shadow:0 1px 0 #fff}
.diceroll-die-picker small{font-size:9px;line-height:1;color:#7693a6;letter-spacing:.12em;text-transform:uppercase}
.diceroll-die-picker.diceroll-d4:before{background-image:url('./images/dice/d4.svg')}
.diceroll-die-picker.diceroll-d6:before{background-image:url('./images/dice/d6.svg')}
.diceroll-die-picker.diceroll-d8:before{background-image:url('./images/dice/d8.svg')}
.diceroll-die-picker.diceroll-d10:before{background-image:url('./images/dice/d10.svg')}
.diceroll-die-picker.diceroll-d12:before{background-image:url('./images/dice/d12.svg')}
.diceroll-die-picker.diceroll-d20:before{background-image:url('./images/dice/d20.svg')}
.diceroll-die-picker.diceroll-d100:before{background-image:url('./images/dice/d100.svg')}
.diceroll-editor-fields{display:flex;justify-content:center;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-top:6px}
.diceroll-editor-fields label{display:flex;flex-direction:column;gap:5px;color:#7893a3;font-size:9px;text-transform:uppercase;letter-spacing:.1em;font-weight:700}
.diceroll-editor-fields .diceroll-manual-field{min-width:150px}.diceroll-editor-fields .diceroll-formula{width:150px}.diceroll-editor-fields .diceroll-formula::placeholder{color:#9bb0bd}.diceroll-editor-fields .diceroll-formula.is-manual{border-color:rgba(112,165,191,.95);box-shadow:0 0 0 2px rgba(146,205,228,.14),inset 0 1px 3px rgba(100,140,157,.06)}
.diceroll-editor-fields input{box-sizing:border-box;width:88px;height:38px;border:1px solid rgba(161,193,207,.62);border-radius:11px;padding:7px 10px;background:rgba(255,255,255,.8);color:#55738b;font-size:13px;text-align:center;box-shadow:inset 0 1px 3px rgba(100,140,157,.06)}
.diceroll-editor-fields .diceroll-sides{display:none}
.diceroll-editor button.diceroll-roll-button{height:40px;border:1px solid rgba(125,167,188,.7);border-radius:22px;background:linear-gradient(180deg,#9fc6da,#719db9);color:#fff;padding:0 27px;cursor:pointer;font-family:Georgia,'Times New Roman',serif;font-size:13px;letter-spacing:.13em;box-shadow:0 7px 15px rgba(82,125,149,.2),inset 0 1px 0 rgba(255,255,255,.4);text-shadow:0 1px 2px rgba(47,82,103,.25)}
.diceroll-editor button.diceroll-roll-button:before{content:"✦  "}
.diceroll-editor button.diceroll-roll-button:after{content:"  ✦"}
.diceroll-editor button.diceroll-roll-button:hover{transform:translateY(-1px);filter:brightness(1.03)}
.diceroll-editor button.diceroll-roll-button:disabled{opacity:.65;cursor:wait;transform:none}
.diceroll-editor-result{margin:12px auto 0;text-align:center;min-height:18px;color:#607f91;font-size:11px}
/* Post result: centered frosted dice with a clear result label. */
.diceroll-result{display:flex;flex-direction:column;align-items:center;justify-content:center;width:max-content;max-width:calc(100% - 24px);margin:20px auto;padding:14px 24px 16px;border:1px solid rgba(154,194,210,.42);border-radius:24px;background:linear-gradient(135deg,rgba(247,253,255,.86),rgba(218,239,247,.72));box-shadow:0 8px 22px rgba(91,128,146,.10),inset 0 1px 0 rgba(255,255,255,.96),inset 0 -10px 30px rgba(190,224,235,.18);position:relative;overflow:hidden;text-align:center}
.diceroll-result:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 20%,rgba(255,255,255,.9),transparent 27%),radial-gradient(circle at 85% 80%,rgba(255,255,255,.72),transparent 30%),linear-gradient(120deg,transparent 38%,rgba(255,255,255,.22) 50%,transparent 62%);pointer-events:none}
.diceroll-result-label{position:relative;z-index:2;margin:0 0 8px;color:#55758d;font-family:Georgia,'Times New Roman',serif;font-size:15px;font-weight:600;letter-spacing:.08em;text-shadow:0 1px 0 #fff}
.diceroll-result-label:before,.diceroll-result-label:after{content:"✦";display:inline-block;margin:0 9px;color:#8fb6ca;font-size:9px;vertical-align:2px;text-shadow:0 0 7px rgba(173,218,234,.8)}
.diceroll-dice{position:relative;z-index:1;display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:center}
.diceroll-die{width:84px;height:84px;display:inline-flex;align-items:center;justify-content:center;background-repeat:no-repeat;background-position:center;background-size:contain;border:0;box-shadow:none;color:#365b72;font-family:Georgia,'Times New Roman',serif;font-weight:700;font-size:18px;position:relative;text-shadow:0 1px 0 #fff,0 0 2px rgba(255,255,255,.95),0 0 5px rgba(255,255,255,.72);filter:drop-shadow(0 6px 7px rgba(72,113,133,.14)) drop-shadow(0 0 8px rgba(191,229,241,.48));transition:transform .2s ease,filter .2s ease}
.diceroll-die>span{position:relative;z-index:2;margin-top:0;display:inline-flex;align-items:center;justify-content:center;min-width:22px;min-height:22px;padding:2px 5px;box-sizing:border-box;color:#365b72;font-family:Georgia,'Times New Roman',serif;font-size:18px;font-weight:700;line-height:1;text-shadow:0 1px 0 #fff,0 0 2px rgba(255,255,255,.98),0 0 6px rgba(255,255,255,.78);-webkit-text-stroke:.2px rgba(255,255,255,.7)}
.diceroll-die.diceroll-d4{background-image:url('./images/dice/d4.svg')}
.diceroll-die.diceroll-d6{background-image:url('./images/dice/d6.svg')}
.diceroll-die.diceroll-d8{background-image:url('./images/dice/d8.svg')}
.diceroll-die.diceroll-d10{background-image:url('./images/dice/d10.svg')}
.diceroll-die.diceroll-d12{background-image:url('./images/dice/d12.svg')}
.diceroll-die.diceroll-d20{background-image:url('./images/dice/d20.svg')}
.diceroll-die.diceroll-d100{background-image:url('./images/dice/d100.svg')}
.diceroll-die[class*='diceroll-d']:not(.diceroll-d4):not(.diceroll-d6):not(.diceroll-d8):not(.diceroll-d10):not(.diceroll-d12):not(.diceroll-d20):not(.diceroll-d100){width:76px;height:76px;background:linear-gradient(145deg,rgba(231,246,252,.96),rgba(152,197,216,.92));border:1px solid rgba(107,157,180,.7);border-radius:18px;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 6px 14px rgba(72,113,133,.16)}
.diceroll-die:hover{transform:translateY(-3px);filter:drop-shadow(0 8px 10px rgba(72,113,133,.18)) drop-shadow(0 0 13px rgba(191,229,241,.68))}
.diceroll-user,.diceroll-head,.diceroll-total{display:none!important}
.diceroll-missing{opacity:.7;font-style:italic}
.diceroll-result:after{content:"❄  ·  ❄  ·  ❄";position:absolute;inset:auto 10px 1px 10px;height:14px;text-align:center;color:rgba(255,255,255,.78);font-size:8px;letter-spacing:.45em;pointer-events:none;text-shadow:0 0 7px rgba(173,218,234,.8)}
@media(max-width:700px){.diceroll-editor{padding:20px 12px}.diceroll-editor-title{font-size:17px}.diceroll-editor-title:before,.diceroll-editor-title:after{width:25px;margin:0 7px}.diceroll-shapes{gap:8px}.diceroll-die-picker{width:62px;height:98px}.diceroll-die-picker:before{width:64px;height:64px;left:-1px}.diceroll-die-picker.is-selected:after{left:1px;right:1px;height:70px}.diceroll-die-picker span{margin-bottom:30px}.diceroll-editor-fields{gap:8px}}


/* Final single-die result may be negative (e.g. 1d20 - 5 = -4). */
.diceroll-die.diceroll-negative>span{
    font-size:16px;
    min-width:30px;
    padding:2px 7px;
    letter-spacing:-.02em;
}


/* Summary for multi-die rolls: sum of dice, modifier and final total. */
.diceroll-summary{
    position:relative;
    z-index:2;
    margin:10px 0 0;
    padding:8px 14px;
    border:1px solid rgba(143,182,202,.35);
    border-radius:14px;
    background:rgba(255,255,255,.52);
    color:#456b83;
    font-family:Georgia,'Times New Roman',serif;
    font-size:15px;
    font-weight:700;
    letter-spacing:.025em;
    text-align:center;
    text-shadow:0 1px 0 rgba(255,255,255,.8);
}

.diceroll-edit-locked {
    flex-basis: 100%;
    margin: 8px 0 0;
    padding: 9px 12px;
    border: 1px solid rgba(120, 145, 165, .35);
    border-radius: 9px;
    color: #71879a;
    font-size: 11px;
}

.diceroll-edit-locked {
    flex-basis: 100%;
    margin: 8px 0 0;
    padding: 9px 12px;
    border: 1px solid rgba(120, 145, 165, .35);
    border-radius: 9px;
    color: #71879a;
    font-size: 11px;
}

.diceroll-pending {
    display: inline-block;
    margin: 8px 0;
    padding: 8px 12px;
    border: 1px dashed rgba(120, 145, 165, .5);
    border-radius: 9px;
    color: #71879a;
    font-size: 12px;
    font-style: italic;
}

/* Wolf-inspired faceted dice artwork (light theme). */
.diceroll-die-picker.diceroll-d4:before,.diceroll-die.diceroll-d4{background-image:url('./images/dice/d4.svg')!important}
.diceroll-die-picker.diceroll-d6:before,.diceroll-die.diceroll-d6{background-image:url('./images/dice/d6.svg')!important}
.diceroll-die-picker.diceroll-d8:before,.diceroll-die.diceroll-d8{background-image:url('./images/dice/d8.svg')!important}
.diceroll-die-picker.diceroll-d10:before,.diceroll-die.diceroll-d10{background-image:url('./images/dice/d10.svg')!important}
.diceroll-die-picker.diceroll-d12:before,.diceroll-die.diceroll-d12{background-image:url('./images/dice/d12.svg')!important}
.diceroll-die-picker.diceroll-d20:before,.diceroll-die.diceroll-d20{background-image:url('./images/dice/d20.svg')!important}
.diceroll-die-picker.diceroll-d100:before,.diceroll-die.diceroll-d100{background-image:url('./images/dice/d100.svg')!important}


/* v12 hard override: custom dice (e.g. D13) must use faceted SVG, not the legacy rounded square. */
.diceroll-result span.diceroll-die[class*="diceroll-d"]:not(.diceroll-d4):not(.diceroll-d6):not(.diceroll-d8):not(.diceroll-d10):not(.diceroll-d12):not(.diceroll-d20):not(.diceroll-d100) {
  width:84px!important;height:84px!important;min-width:84px!important;min-height:84px!important;
  padding:0!important;margin:0 5px!important;
  background-image:url('./images/dice/custom-light.svg')!important;
  background-position:center!important;background-repeat:no-repeat!important;background-size:contain!important;
  background-color:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  filter:drop-shadow(0 5px 7px rgba(68,105,125,.22))!important;
}
html[data-theme="dark"] .diceroll-result span.diceroll-die[class*="diceroll-d"]:not(.diceroll-d4):not(.diceroll-d6):not(.diceroll-d8):not(.diceroll-d10):not(.diceroll-d12):not(.diceroll-d20):not(.diceroll-d100) {
  background-image:url('./images/dice/custom-dark.svg')!important;background-color:transparent!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;
  filter:drop-shadow(0 5px 8px rgba(0,0,0,.42))!important;
}
.diceroll-result span.diceroll-die[class*="diceroll-d"]:not(.diceroll-d4):not(.diceroll-d6):not(.diceroll-d8):not(.diceroll-d10):not(.diceroll-d12):not(.diceroll-d20):not(.diceroll-d100)>span {
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:24px!important;min-height:24px!important;padding:0 3px!important;
  color:#28485d!important;background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;text-shadow:0 1px 0 rgba(255,255,255,.92),0 0 5px rgba(255,255,255,.5)!important;
  -webkit-text-stroke:.2px rgba(255,255,255,.45)!important;
}
html[data-theme="dark"] .diceroll-result span.diceroll-die[class*="diceroll-d"]:not(.diceroll-d4):not(.diceroll-d6):not(.diceroll-d8):not(.diceroll-d10):not(.diceroll-d12):not(.diceroll-d20):not(.diceroll-d100)>span {
  color:#f0f7fb!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  text-shadow:0 1px 2px rgba(4,15,25,.95),0 0 5px rgba(4,15,25,.72)!important;
  -webkit-text-stroke:.2px rgba(5,18,29,.45)!important;
}

/* Refined die-type caption: a quiet inset label above the dice. */
.diceroll-result .diceroll-die-type {
  display:inline-block!important;align-self:center!important;
  margin:1px 0 8px!important;padding:4px 11px!important;
  border:1px solid rgba(126,168,190,.34)!important;border-radius:999px!important;
  background:rgba(132,174,195,.10)!important;color:#66869a!important;
  font-family:Georgia,'Times New Roman',serif!important;font-size:10px!important;
  font-weight:700!important;letter-spacing:.11em!important;line-height:1.2!important;
  text-transform:uppercase!important;text-shadow:none!important;
}
html[data-theme="dark"] .diceroll-result .diceroll-die-type {
  color:#c1d9e5!important;border-color:rgba(137,181,203,.34)!important;
  background:rgba(106,151,174,.12)!important;text-shadow:0 1px 2px rgba(0,0,0,.5)!important;
}


/* v14: remove the unwanted darker band/shading along the top of the light result frame. */
html[data-theme="light"] .diceroll-result,
html:not([data-theme="dark"]) .diceroll-result {
  background: linear-gradient(145deg, #f8fcfd 0%, #f0f7fa 100%) !important;
  border-color: rgba(139,181,199,.42) !important;
  box-shadow: 0 8px 22px rgba(91,128,146,.09), inset 0 1px 0 rgba(255,255,255,.92) !important;
}
html[data-theme="light"] .diceroll-result:before,
html:not([data-theme="dark"]) .diceroll-result:before {
  content: none !important;
  display: none !important;
  background: none !important;
}


/* v15: hard-disable every decorative overlay on the light post-result card.
   Flat frosted surface only; no top sheen, snowflake footer, or inset shading. */
html[data-theme="light"] body .diceroll-result,
html:not([data-theme="dark"]) body .diceroll-result {
  background: #f2f8fa !important;
  background-image: none !important;
  box-shadow: 0 7px 18px rgba(80,115,132,.08) !important;
  border: 1px solid rgba(139,181,199,.42) !important;
}
html[data-theme="light"] body .diceroll-result::before,
html[data-theme="light"] body .diceroll-result::after,
html:not([data-theme="dark"]) body .diceroll-result::before,
html:not([data-theme="dark"]) body .diceroll-result::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
}
html[data-theme="light"] body .diceroll-result-label::before,
html[data-theme="light"] body .diceroll-result-label::after,
html:not([data-theme="dark"]) body .diceroll-result-label::before,
html:not([data-theme="dark"]) body .diceroll-result-label::after {
  text-shadow: none !important;
  filter: none !important;
}
