/*
 * World Yggdrasil Online — Global Scrollbar System v3.0
 * Theme-wide + addon-wide visual standard.
 *
 * Important design rule:
 * - styles every visible scrollbar;
 * - does NOT set display on scrollbar pseudo-elements, so intentionally
 *   hidden tab/breadcrumb scrollbars remain hidden.
 */
:root{
  --wyo-scroll-track:#06150f;
  --wyo-scroll-track-2:#081b13;
  --wyo-scroll-border:rgba(205,169,54,.13);
  --wyo-scroll-thumb-1:#b59836;
  --wyo-scroll-thumb-2:#6e591d;
  --wyo-scroll-thumb-3:#927626;
  --wyo-scroll-hover-1:#d1b44b;
  --wyo-scroll-hover-2:#8a7027;
}

/* Firefox: color is forced globally, width is not forced so scrollbar-width:none stays respected. */
html,body,*{
  scrollbar-color:var(--wyo-scroll-thumb-2) var(--wyo-scroll-track)!important;
}

/* Chromium / Edge / Safari */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar{
  width:9px!important;
  height:9px!important;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track{
  background:linear-gradient(90deg,var(--wyo-scroll-track),var(--wyo-scroll-track-2))!important;
  border-left:1px solid var(--wyo-scroll-border)!important;
  box-shadow:inset 0 0 7px rgba(0,0,0,.30)!important;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb{
  min-height:34px!important;
  min-width:34px!important;
  border:2px solid var(--wyo-scroll-track)!important;
  border-radius:999px!important;
  background:linear-gradient(180deg,var(--wyo-scroll-thumb-1) 0%,var(--wyo-scroll-thumb-2) 54%,var(--wyo-scroll-thumb-3) 100%)!important;
  box-shadow:inset 0 0 0 1px rgba(255,231,139,.10),0 0 6px rgba(177,147,47,.08)!important;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover{
  background:linear-gradient(180deg,var(--wyo-scroll-hover-1),var(--wyo-scroll-hover-2))!important;
}
html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner{
  background:var(--wyo-scroll-track)!important;
}

/* Small gold directional controls, matching the visual reference. */
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
*::-webkit-scrollbar-button{
  width:9px!important;
  height:11px!important;
  background-color:var(--wyo-scroll-track)!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
  background-size:6px 4px!important;
}
html::-webkit-scrollbar-button:vertical:decrement,
body::-webkit-scrollbar-button:vertical:decrement,
*::-webkit-scrollbar-button:vertical:decrement{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23b89532' d='M4 0 8 5H0z'/%3E%3C/svg%3E")!important;
}
html::-webkit-scrollbar-button:vertical:increment,
body::-webkit-scrollbar-button:vertical:increment,
*::-webkit-scrollbar-button:vertical:increment{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath fill='%23b89532' d='M0 0h8L4 5z'/%3E%3C/svg%3E")!important;
}
html::-webkit-scrollbar-button:horizontal:decrement,
body::-webkit-scrollbar-button:horizontal:decrement,
*::-webkit-scrollbar-button:horizontal:decrement{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='8' viewBox='0 0 5 8'%3E%3Cpath fill='%23b89532' d='M0 4 5 0v8z'/%3E%3C/svg%3E")!important;
}
html::-webkit-scrollbar-button:horizontal:increment,
body::-webkit-scrollbar-button:horizontal:increment,
*::-webkit-scrollbar-button:horizontal:increment{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='5' height='8' viewBox='0 0 5 8'%3E%3Cpath fill='%23b89532' d='m5 4-5 4V0z'/%3E%3C/svg%3E")!important;
}

/* Common WYO scroll areas: slightly narrower internal bars. */
.atlan-class-sidebar::-webkit-scrollbar,
.atlan-class-info::-webkit-scrollbar,
.atlan-arsenal-class-switch::-webkit-scrollbar,
.itemsell-app *::-webkit-scrollbar,
.cs-item-modal-card::-webkit-scrollbar,
.cs-is-card-bubble::-webkit-scrollbar,
.wyo-tooltip-scroll::-webkit-scrollbar,
.wyc-db-preview::-webkit-scrollbar,
.wyc-modal-card::-webkit-scrollbar,
.wys-shell *::-webkit-scrollbar{
  width:8px!important;
  height:8px!important;
}

/* Keep intentionally hidden horizontal navigation scrollbars hidden. */
.wyo-breadcrumbs::-webkit-scrollbar,
.wyo-char-filter-tab-list::-webkit-scrollbar,
.wyo-xmarket-tab-list::-webkit-scrollbar{
  display:none!important;
}
