
/* v6: cache-busted clean dice artwork + readable dark post results */
.diceroll-die-picker:before { pointer-events:none!important; }
.diceroll-die-picker.diceroll-d4:before,.diceroll-die.diceroll-d4{background-image:url('./images/dice/d4-clean-v6-light.svg')!important}
html[data-theme="dark"] .diceroll-die-picker.diceroll-d4:before,html[data-theme="dark"] .diceroll-die.diceroll-d4{background-image:url('./images/dice/d4-clean-v6-dark.svg')!important}
.diceroll-die-picker.diceroll-d6:before,.diceroll-die.diceroll-d6{background-image:url('./images/dice/d6-clean-v6-light.svg')!important}
html[data-theme="dark"] .diceroll-die-picker.diceroll-d6:before,html[data-theme="dark"] .diceroll-die.diceroll-d6{background-image:url('./images/dice/d6-clean-v6-dark.svg')!important}
.diceroll-die-picker.diceroll-d8:before,.diceroll-die.diceroll-d8{background-image:url('./images/dice/d8-clean-v6-light.svg')!important}
html[data-theme="dark"] .diceroll-die-picker.diceroll-d8:before,html[data-theme="dark"] .diceroll-die.diceroll-d8{background-image:url('./images/dice/d8-clean-v6-dark.svg')!important}
.diceroll-die-picker.diceroll-d10:before,.diceroll-die.diceroll-d10{background-image:url('./images/dice/d10-clean-v6-light.svg')!important}
html[data-theme="dark"] .diceroll-die-picker.diceroll-d10:before,html[data-theme="dark"] .diceroll-die.diceroll-d10{background-image:url('./images/dice/d10-clean-v6-dark.svg')!important}
.diceroll-die-picker.diceroll-d12:before,.diceroll-die.diceroll-d12{background-image:url('./images/dice/d12-clean-v6-light.svg')!important}
html[data-theme="dark"] .diceroll-die-picker.diceroll-d12:before,html[data-theme="dark"] .diceroll-die.diceroll-d12{background-image:url('./images/dice/d12-clean-v6-dark.svg')!important}
.diceroll-die-picker.diceroll-d20:before,.diceroll-die.diceroll-d20{background-image:url('./images/dice/d20-clean-v6-light.svg')!important}
html[data-theme="dark"] .diceroll-die-picker.diceroll-d20:before,html[data-theme="dark"] .diceroll-die.diceroll-d20{background-image:url('./images/dice/d20-clean-v6-dark.svg')!important}
.diceroll-die-picker.diceroll-d100:before,.diceroll-die.diceroll-d100{background-image:url('./images/dice/d100-clean-v6-light.svg')!important}
html[data-theme="dark"] .diceroll-die-picker.diceroll-d100:before,html[data-theme="dark"] .diceroll-die.diceroll-d100{background-image:url('./images/dice/d100-clean-v6-dark.svg')!important}

html[data-theme="dark"] .diceroll-result {
  color:#e4edf3!important;
  background:linear-gradient(145deg,rgba(18,30,43,.98),rgba(27,43,58,.98))!important;
  border:1px solid rgba(126,165,187,.34)!important;
  box-shadow:0 8px 24px rgba(0,0,0,.28),inset 0 1px 0 rgba(220,239,248,.06)!important;
}
html[data-theme="dark"] .diceroll-result:before,
html[data-theme="dark"] .diceroll-result:after { content:none!important; display:none!important; background:none!important; box-shadow:none!important; }
html[data-theme="dark"] .diceroll-result-label {
  color:#dceaf1!important;text-shadow:0 1px 2px rgba(0,0,0,.55)!important;
}
html[data-theme="dark"] .diceroll-result-label:before,
html[data-theme="dark"] .diceroll-result-label:after { color:#83a9bd!important;text-shadow:none!important; }
html[data-theme="dark"] .diceroll-dice { position:relative!important; z-index:2!important; }
html[data-theme="dark"] .diceroll-die {
  color:#f0f6f9!important;
  filter:drop-shadow(0 5px 7px rgba(0,0,0,.42))!important;
  text-shadow:0 1px 2px rgba(0,0,0,.9)!important;
  -webkit-text-stroke:0!important;
}
html[data-theme="dark"] .diceroll-die>span {
  color:#f0f6f9!important;
  text-shadow:0 1px 3px rgba(0,0,0,.95)!important;
  -webkit-text-stroke:0!important;
  background:rgba(13,25,37,.32)!important;
  border-radius:5px!important;
}
html[data-theme="dark"] .diceroll-result .diceroll-total,
html[data-theme="dark"] .diceroll-result .diceroll-total * { color:#e7f0f5!important; }


/* v7: dark post result clarity.
   Dice type labels are removed from the dark SVGs; only the real rolled value remains. */
html[data-theme="dark"] .diceroll-result {
  background: linear-gradient(145deg, rgba(13,25,37,.96), rgba(20,35,49,.96)) !important;
  border-color: rgba(130,174,197,.42) !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.32), inset 0 1px 0 rgba(207,231,242,.07) !important;
}
html[data-theme="dark"] .diceroll-result:before,
html[data-theme="dark"] .diceroll-result:after {
  content: none !important;
  display: none !important;
}
html[data-theme="dark"] .diceroll-result-label {
  color: #e2edf3 !important;
  text-shadow: 0 1px 3px rgba(0,0,0,.72) !important;
}
html[data-theme="dark"] .diceroll-die > span {
  color: #f3f8fb !important;
  background: rgba(8,18,28,.58) !important;
  border: 1px solid rgba(146,184,203,.24) !important;
  border-radius: 6px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.95) !important;
  -webkit-text-stroke: 0 !important;
}
html[data-theme="dark"] .diceroll-summary {
  margin-top: 10px !important;
  padding: 8px 14px !important;
  color: #e5f0f5 !important;
  background: rgba(8,19,30,.76) !important;
  border: 1px solid rgba(132,174,195,.48) !important;
  border-radius: 12px !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.9) !important;
  box-shadow: inset 0 1px 0 rgba(218,237,246,.08), 0 3px 10px rgba(0,0,0,.18) !important;
}


/* v9: explicit die type label above the rolled dice in post results. */
.diceroll-result .diceroll-die-type {
  position: relative;
  z-index: 2;
  margin: 0 0 5px;
  color: #607f95;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.35;
  text-transform: uppercase;
}
html[data-theme="dark"] .diceroll-result .diceroll-die-type {
  color: #a9c5d5 !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.7) !important;
}


/* v10: unknown/custom-sided dice use a matching dark faceted body. */
html[data-theme="dark"] .diceroll-result .diceroll-die: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-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.42)) !important;
}
html[data-theme="dark"] .diceroll-result .diceroll-die > span {
  color: #f3f8fb !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 2px 5px !important;
  min-width: 22px !important;
  min-height: 22px !important;
  text-shadow: 0 1px 2px #071522, 0 0 5px rgba(0,0,0,.75) !important;
  -webkit-text-stroke: .25px rgba(220,240,249,.42) !important;
  box-shadow: none !important;
}


/* v11: custom-sided dice get their own faceted crystal artwork in both themes.
   Use the background shorthand to clear the old rounded-square gradient completely. */
.diceroll-result .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;
  background: url('./images/dice/custom-light.svg') center / contain no-repeat !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 .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: url('./images/dice/custom-dark.svg') center / contain no-repeat !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 .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: 22px !important;
  min-height: 22px !important;
  padding: 0 4px !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 .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;
}


/* 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;
}
