/* Generated by dev/build_data.py from the game's own UI art (hd/global/ui). Don't edit. */
/* Settings > Game UI art turns it off (the d2-ui class on <html>). */

/* Buttons: the main menu's frames, stretched in the middle */
html.d2-ui .btn:not(.ghost):not(.icon):not(.primary):not(.ember) {
  border-style: solid; border-color: transparent; border-width: 0 26px; border-radius: 0;
  border-image: url(../img/ui/btn-normal.webp?v=5983134d31) 0 90 fill / 0 26px stretch;
  background: none; box-shadow: none; filter: none;
}
html.d2-ui .btn:not(.ghost):not(.icon):not(.primary):not(.ember):hover { border-image-source: url(../img/ui/btn-hover.webp?v=81942c74f3); filter: none; }
html.d2-ui .btn:not(.ghost):not(.icon):not(.primary):not(.ember):active { border-image-source: url(../img/ui/btn-active.webp?v=e556270cd3); }
html.d2-ui .btn:not(.ghost):not(.icon):not(.primary):not(.ember)[disabled] { border-image-source: url(../img/ui/btn-disabled.webp?v=af1ea344c7); opacity: 1; color: var(--text-3); }

html.d2-ui .btn.primary, html.d2-ui .btn.ember {
  border-style: solid; border-color: transparent; border-width: 0 26px; border-radius: 0;
  border-image: url(../img/ui/btn-gem-normal.webp?v=371acdc523) 0 82 fill / 0 26px stretch;
  background: none; box-shadow: none; filter: none;
}
html.d2-ui .btn.primary:hover, html.d2-ui .btn.ember:hover { border-image-source: url(../img/ui/btn-gem-hover.webp?v=799696d791); filter: none; }
html.d2-ui .btn.primary:active, html.d2-ui .btn.ember:active { border-image-source: url(../img/ui/btn-gem-active.webp?v=dfca24ee8b); }
html.d2-ui .btn.primary[disabled], html.d2-ui .btn.ember[disabled] { border-image-source: url(../img/ui/btn-gem-disabled.webp?v=2790092464); opacity: 1; color: var(--text-3); }

html.d2-ui .btn.primary, html.d2-ui .btn.ember { color: #f3e6c6; text-shadow: 0 1px 2px #000; }
html.d2-ui .btn.ember:not(:hover) { filter: sepia(.35) saturate(1.6) hue-rotate(-18deg); }

/* The panel close button */
html.d2-ui .drawer .close {
  width: 34px; min-height: 34px; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  background: url(../img/ui/close-normal.webp?v=d628865ba7) center / contain no-repeat;
}
html.d2-ui .drawer .close:hover { background-image: url(../img/ui/close-hover.webp?v=91bc521070); filter: none; }
html.d2-ui .drawer .close:active { background-image: url(../img/ui/close-active.webp?v=d6c10dd106); }
html.d2-ui .drawer .close svg { visibility: hidden; }

/* Dialogs: the game's modal frame */
html.d2-ui .palette, html.d2-ui .share {
  border-style: solid; border-width: 26px; border-radius: 0; border-color: transparent;
  border-image: url(../img/ui/modal-normal.webp?v=b9f5a64413) 64 fill / 26px stretch;
  background: none;
}

/* Item tooltips: the game's tooltip border */
html.d2-ui .tip {
  border-style: solid; border-width: 16px; border-color: transparent;
  border-image: url(../img/ui/tooltip.webp?v=1a559041f2) 48 / 16px stretch;
  padding: 4px 8px 5px;
}
