.mw-scaledice-v2-07 {
  --sd207-background: linear-gradient(160deg, #26282d, #191a1d);
  --sd207-text: #fff;
  --sd207-muted: #d1d2d5;
  --sd207-line: #747780;
  --sd207-control: linear-gradient(#4c5055, #383b40);
  --sd207-button-line: #62666b;
  --sd207-reel-edge: #121418;
  --sd207-window: #191b1f;
  --sd207-dialog: #26282d;
  --sd207-focus: #fff;
  --sd207-accent: #9a0002;
  box-sizing: border-box;
  container-type: inline-size;
  position: relative;
  width: 100%;
  padding: 24px clamp(16px, 4vw, 40px);
  background: var(--sd207-background);
  color: var(--sd207-text);
  font: 400 16px/1.5 "Lato-Regular", system-ui, sans-serif;
  color-scheme: dark;
}

.mw-dark-light-block .mw-scaledice-v2-07 {
  background: transparent;
}

.mw-dark-light-block[data-mw-scaledice="v2-07"] { background: linear-gradient(160deg, #26282d, #191a1d) !important; }
.mw-dark-light-block[data-mw-scaledice="v2-07"][data-mw-theme="light"] { background: linear-gradient(135deg, #FCFBF9 0%, #F2F3F4 85%) !important; }

.mw-scaledice-v2-07[data-sd207-theme="light"] {
  --sd207-background: linear-gradient(135deg, #FCFBF9 0%, #F2F3F4 85%);
  --sd207-text: #202020;
  --sd207-muted: #202020;
  --sd207-line: #b8bbc1;
  --sd207-control: linear-gradient(#dedfe1, #c9ccd0);
  --sd207-button-line: #c3c7cc;
  --sd207-reel-edge: #121418;
  --sd207-window: #191b1f;
  --sd207-dialog: linear-gradient(135deg, #FCFBF9 0%, #F2F3F4 85%);
  --sd207-focus: #202020;
  color-scheme: light;
}

.mw-scaledice-v2-07 * { box-sizing: border-box; }
.mw-scaledice-v2-07 :is(h2, h3, p) {
  margin: 0;
  /* Blocs setzt die Textfarbe für Überschriften und Absätze mit !important. */
  color: var(--sd207-text) !important;
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
}
.mw-scaledice-v2-07 h2 { font-size: 21px; font-family: "Lato-Black", system-ui, sans-serif; font-weight: 900; font-synthesis: none; line-height: 1.25; }
.mw-scaledice-v2-07 .mw-icon {
  display: inline-block;
  flex: none;
  inline-size: var(--mw-icon-size, 24px);
  block-size: var(--mw-icon-size, 24px);
  background-color: var(--mw-icon-color, currentColor);
  -webkit-mask: var(--mw-icon-shape, none) center / contain no-repeat;
  mask: var(--mw-icon-shape, none) center / contain no-repeat;
}

.mw-scaledice-v2-07 .mw-icon--zufall {
  --mw-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M3%207h3c4%200%208%2010%2012%2010h3M17%2013l4%204-4%204M3%2017h3c1.8%200%203.5-2%205-4M14%209c1.5-1.3%202.6-2%204-2h3M17%203l4%204-4%204%22%2F%3E%3C%2Fsvg%3E");
}

.mw-scaledice-v2-07 .mw-icon--wuerfel {
  --mw-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M12%202%2021%207v10l-9%205-9-5V7Z%20M3%207l9%205%209-5%20M12%2012v10%22%2F%3E%3Cpath%20d%3D%22M12%207h.01%20M5.8%2011.5h.01%20M9.2%2017.5h.01%20M18.2%2011h.01%20M16.5%2014.5h.01%20M14.8%2018h.01%22%20stroke-width%3D%222.3%22%2F%3E%3C%2Fsvg%3E");
}

.mw-scaledice-v2-07 .mw-icon--plus {
  --mw-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M5%2012h14M12%205v14%22%2F%3E%3C%2Fsvg%3E");
}

.mw-scaledice-v2-07 .mw-icon--einstellungen {
  --mw-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%2281%22%20height=%2271%22%20viewBox=%220%200%2081%2071%22%3E%3Cpath%20d=%22M3%2011H50m18%200H78%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%226%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3Ccircle%20cx=%2259%22%20cy=%2211%22%20r=%228%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%226%22/%3E%3Cpath%20d=%22M3%2036H18m18%200H78%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%226%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3Ccircle%20cx=%2227%22%20cy=%2236%22%20r=%228%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%226%22/%3E%3Cpath%20d=%22M3%2060H46m18%200H78%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%226%22%20stroke-linecap=%22round%22%20stroke-linejoin=%22round%22/%3E%3Ccircle%20cx=%2255%22%20cy=%2260%22%20r=%228%22%20fill=%22none%22%20stroke=%22black%22%20stroke-width=%226%22/%3E%3C/svg%3E");
}

.mw-scaledice-v2-07 .mw-icon--schliessen {
  --mw-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m6%206%2012%2012M18%206%206%2018%22%2F%3E%3C%2Fsvg%3E");
}

.mw-scaledice-v2-07 .mw-icon--mond {
  --mw-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M20%2015A8%208%200%200%201%209%204a8.5%208.5%200%201%200%2011%2011Z%22%2F%3E%3C%2Fsvg%3E");
}

.mw-scaledice-v2-07 .mw-icon--sonne {
  --mw-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Ccircle%20cx%3D%2212%22%20cy%3D%2212%22%20r%3D%224%22%2F%3E%3Cpath%20d%3D%22M12%202v2m0%2016v2M2%2012h2m16%200h2M5%205l1.5%201.5m11%2011L19%2019M5%2019l1.5-1.5m11-11L19%205%22%2F%3E%3C%2Fsvg%3E");
}

.mw-scaledice-v2-07 .mw-icon--haekchen {
  --mw-icon-shape: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m5%2012%204%204L19%206%22%2F%3E%3C%2Fsvg%3E");
}
.mw-scaledice-v2-07 button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  margin: 0;
  padding: 8px 16px;
  border: 1px solid var(--sd207-button-line);
  border-radius: 12px;
  background: var(--sd207-control);
  color: var(--sd207-text) !important;
  font: 16px/1.25 "Lato-Black", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: normal;
  white-space: normal;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 8%);
  transition: filter .16s;
  transform: none;
}
.mw-scaledice-v2-07 button:is(.sd207-primary, [aria-pressed="true"]) {
  background: linear-gradient(var(--sd207-accent), #790002);
  border-color: transparent;
  color: #fff !important;
}
.mw-scaledice-v2-07 button[aria-disabled="true"] { cursor: wait; }
.mw-scaledice-v2-07 :is(button, summary, .sd207-window):focus-visible {
  outline: 2px solid var(--sd207-focus) !important;
  outline-offset: 3px;
  box-shadow: none;
}
@media (hover: hover) {
  .mw-scaledice-v2-07 button:not([aria-disabled="true"]):hover { filter: brightness(1.07); }
}
.mw-scaledice-v2-07 button:not([aria-disabled="true"]):active { filter: brightness(.94); }

.mw-scaledice-v2-07 [data-settings] {
  position: absolute;
  inset: 0 0 auto auto;
  width: 48px;
  height: 48px;
  padding: 0;
}
.mw-scaledice-v2-07 .sd207-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.mw-scaledice-v2-07 .sd207-card { min-width: 0; text-align: center; }
.mw-scaledice-v2-07 .sd207-card { width: 100%; }
.mw-scaledice-v2-07 .sd207-window {
  width: 100%;
  --sd207-row: 56px;
  --sd207-reel-height: calc(4 * var(--sd207-row));
  position: relative;
  height: var(--sd207-reel-height);
  overflow: hidden;
  isolation: isolate;
  margin: 10px 0;
  border-radius: 14px;
  background: linear-gradient(var(--sd207-reel-edge), var(--sd207-window) 39%, var(--sd207-window) 61%, var(--sd207-reel-edge));
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.mw-scaledice-v2-07 .sd207-window:active { cursor: grabbing; }
.mw-scaledice-v2-07 .sd207-track {
  position: relative;
  top: calc((var(--sd207-reel-height) - 5 * var(--sd207-row)) / 2);
  pointer-events: none;
}
.mw-scaledice-v2-07 .sd207-window::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: calc((var(--sd207-reel-height) - var(--sd207-row)) / 2) 12px;
  border-block: 1px solid #747780;
}
.mw-scaledice-v2-07 .sd207-window::after {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  inset: 0;
  background: linear-gradient(var(--sd207-reel-edge), transparent 21%, transparent 79%, var(--sd207-reel-edge));
}
.mw-scaledice-v2-07 .sd207-row {
  display: grid;
  place-items: center;
  height: var(--sd207-row);
  padding: 0 10px;
  color: #fff;
  font-size: clamp(22px, 5cqi, 37px);
  font-family: "Lato-Black", system-ui, sans-serif; font-weight: 900; font-synthesis: none;
  line-height: 1.05;
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.mw-scaledice-v2-07 [data-reel="scale"] .sd207-row { font-size: clamp(19px, 3.7cqi, 30px); }
.mw-scaledice-v2-07 .sd207-primary {
  display: flex;
  width: 100%;
  max-width: 920px;
  min-height: 54px;
  margin: 0 auto;
}

.mw-scaledice-v2-07 .sd207-footer {
  position: relative;
  max-width: 920px;
  margin: 24px auto 0;
  border-block: 1px solid var(--sd207-line);
}
.mw-scaledice-v2-07 summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  margin-right: 60px;
  padding: 10px 4px;
  color: var(--sd207-text) !important;
  list-style: none;
  cursor: pointer;
}
.mw-scaledice-v2-07 summary::-webkit-details-marker { display: none; }
.mw-scaledice-v2-07 summary .mw-icon { transition: transform 160ms ease; }
.mw-scaledice-v2-07 details[open] summary .mw-icon { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) {
  .mw-scaledice-v2-07 summary .mw-icon { transition: none; }
}
.mw-scaledice-v2-07 [data-help-text] { padding: 0 4px 16px; }
.mw-scaledice-v2-07 .sd207-help h3 { margin-top: 12px; font-size: 16px; font-family: "Lato-Black", system-ui, sans-serif; font-weight: 900; font-synthesis: none; }
.mw-scaledice-v2-07 .sd207-help p { margin-top: 6px; font-size: 14px; }
.mw-scaledice-v2-07 .sd207-version { max-width: 920px; margin: 8px auto 0; text-align: left; color: var(--sd207-muted) !important; font-size: 12px; }

.mw-scaledice-v2-07 .sd207-dialog {
  position: fixed;
  inset: 0;
  width: min(500px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 20px;
  border: 0;
  border-radius: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--sd207-dialog);
  color: var(--sd207-text);
  font: inherit;
}
.mw-scaledice-v2-07 .sd207-grip { display: none; }
.mw-scaledice-v2-07 .sd207-sound {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  margin-top: 18px;
  color: var(--sd207-text) !important;
}
.mw-scaledice-v2-07 [data-volume] {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 48px;
  margin: 0;
  accent-color: #9a0002;
}
.mw-scaledice-v2-07 [data-volume]:focus-visible {
  outline: 2px solid var(--sd207-focus);
  outline-offset: 2px;
}
.mw-scaledice-v2-07 .sd207-dialog:not([open]) { display: none; }
.mw-scaledice-v2-07 .sd207-dialog::backdrop { background: rgb(0 0 0 / 55%); }
.mw-scaledice-v2-07 .sd207-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.mw-scaledice-v2-07 .sd207-dialog > h3 { margin: 14px 0 8px; font-size: 16px; }
.mw-scaledice-v2-07 [data-close] { flex: 0 0 48px; height: 48px; padding: 0; }
.mw-scaledice-v2-07 .sd207-dialog[data-pointer-open] button:focus-visible { outline: none !important; }
.mw-scaledice-v2-07 .sd207-check { display: inline-flex; visibility: hidden; }
.mw-scaledice-v2-07 [aria-pressed="true"] > .sd207-check { visibility: visible; }
.mw-scaledice-v2-07 .sd207-check .mw-icon { --mw-icon-size: 16px; }
.mw-scaledice-v2-07 .sd207-theme-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.mw-scaledice-v2-07 .sd207-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.mw-scaledice-v2-07 .sd207-controls {
  display: grid;
  gap: 16px;
}
.mw-scaledice-v2-07 .sd207-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
}
.mw-scaledice-v2-07 .sd207-actions button { min-width: 0; min-height: 56px; font-size: 20px; }
.mw-scaledice-v2-07 .sd207-actions .sd207-primary { grid-column: 1 / -1; }
@container (max-width: 500px) {
  .mw-scaledice-v2-07 .sd207-controls { gap: 12px; }
  .mw-scaledice-v2-07 .sd207-grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    width: 100%;
    min-height: var(--sd207-reels-height, 300px);
    gap: 12px;
  }
  .mw-scaledice-v2-07 .sd207-card { width: 100%; min-width: 0; }
  .mw-scaledice-v2-07 .sd207-window {
    width: 100%;
    --sd207-row: var(--sd207-mobile-row, 34px);
    margin: 0;
  }
  .mw-scaledice-v2-07 .sd207-row { font-size: 25px; }
  .mw-scaledice-v2-07 [data-reel="scale"] .sd207-row { font-size: clamp(16px, 5.5cqi, 20px); }
  .mw-scaledice-v2-07 .sd207-actions { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .mw-scaledice-v2-07 .sd207-actions button { width: 100%; min-height: 48px; padding: 6px 12px; font-size: 16px; }
  .mw-scaledice-v2-07 .sd207-actions .sd207-primary { min-height: 48px; }
}
@media (max-width: 600px) {
  .mw-scaledice-v2-07 { padding-block: 12px; }
  .mw-scaledice-v2-07 .sd207-dialog {
    inset: auto 0 0;
    width: 100%;
    max-width: none;
    max-height: 85vh;
    max-height: 85dvh;
    margin: 0;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    border-radius: 20px 20px 0 0;
    transform: translateY(var(--mw-sheet-y, 0px));
  }
  .mw-scaledice-v2-07 .sd207-dialog.is-sheet-settling { transition: transform 180ms ease-out; }
  .mw-scaledice-v2-07 [data-sheet-drag] { touch-action: none; }
  .mw-scaledice-v2-07 .sd207-grip {
    display: block;
    width: 36px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 2px;
    background: var(--sd207-line);
  }
}
