:root {
  color-scheme: dark;
  background: #000;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
  background: #000;
}

.webclient-page,
.webclient-client,
.webclient-game-viewport {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  min-width: 0;
  min-height: 0;
}

.webclient-client {
  position: fixed;
  inset: 0;
  overflow: hidden;
}

.webclient-game-viewport {
  --runelite-rail-width: 36px;
  --runelite-panel-width: clamp(210px, 19vw, 244px);
  --runelite-reserved-width: 0px;
  position: fixed;
  z-index: 1;
  inset: 0;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  padding:
    env(safe-area-inset-top, 0px)
    calc(env(safe-area-inset-right, 0px) + var(--runelite-reserved-width))
    env(safe-area-inset-bottom, 0px)
    env(safe-area-inset-left, 0px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #000;
  touch-action: none;
  overscroll-behavior: none;
}

.webclient-game-viewport.runelite-sidebar-expanded {
  --runelite-reserved-width: calc(var(--runelite-rail-width) + var(--runelite-panel-width));
}

#game-canvas,
#game-gpu-canvas {
  grid-area: 1 / 1;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  flex: none;
  outline: none;
  background: #000;
  /* Android build 594 enables smooth bitmap scaling. */
  image-rendering: auto;
  /* Promote fullscreen scaling to the browser compositor where supported. */
  will-change: transform;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
  contain: layout paint size;
}

/* Keep the fixed 766x503 login raster crisp while it is fitted fullscreen.
   Gameplay can still use the user's Smooth scaling preference. */
#game-canvas[width="766"][height="503"],
#game-gpu-canvas[width="766"][height="503"] {
  image-rendering: pixelated;
}

#game-canvas {
  z-index: 0;
}

#game-gpu-canvas {
  z-index: 1;
  pointer-events: none;
}

#game-gpu-canvas[hidden] {
  display: none;
}

.webclient-game-viewport.webclient-gpu-presenter-disabled #game-gpu-canvas {
  display: none !important;
}

#game-canvas:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(243, 203, 113, 0.9);
}

#game-canvas:focus-visible + #game-gpu-canvas:not([hidden]) {
  box-shadow: inset 0 0 0 2px rgba(243, 203, 113, 0.9);
}

.webclient-game-viewport::backdrop {
  background: #000;
}

.webclient-keyboard-toggle {
  position: fixed;
  z-index: 10;
  left: max(10px, env(safe-area-inset-left, 0px));
  right: auto;
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border: 1px solid rgba(255, 220, 137, 0.42);
  border-radius: 999px;
  padding: 0;
  color: #fff3cb;
  background: rgba(13, 6, 23, 0.82);
  font: 800 0.74rem/1 system-ui, sans-serif;
  cursor: pointer;
  opacity: 0.78;
  backdrop-filter: blur(8px);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.webclient-keyboard-icon {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

body.webclient-runtime-active .webclient-keyboard-toggle {
  display: inline-flex;
}

.webclient-keyboard-toggle:hover,
.webclient-keyboard-toggle:focus-visible {
  opacity: 1;
}

.webclient-keyboard-toggle:focus-visible {
  outline: 2px solid #f3cb71;
  outline-offset: 2px;
}

.webclient-mobile-keyboard {
  position: fixed;
  left: -10000px;
  width: 1px;
  height: 1px;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  font-size: 16px;
}

.webclient-visually-hidden {
  position: fixed !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.webclient-client-error {
  position: fixed;
  z-index: 20;
  top: 50%;
  left: 50%;
  width: min(460px, calc(100vw - 32px));
  max-height: min(70vh, 360px);
  overflow: auto;
  border: 1px solid rgba(255, 102, 102, 0.72);
  border-radius: 12px;
  padding: 14px 16px;
  color: #ffe4e4;
  background: rgba(75, 12, 19, 0.96);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.65);
  font: 600 0.9rem/1.5 system-ui, sans-serif;
  text-align: center;
  transform: translate(-50%, -50%);
}

.webclient-client-error[hidden] {
  display: none;
}

.runelite-sidebar {
  position: fixed;
  z-index: 30;
  top: env(safe-area-inset-top, 0px);
  right: env(safe-area-inset-right, 0px);
  bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  width: calc(var(--runelite-rail-width) + var(--runelite-panel-width));
  color: #d9d9d9;
  background: #202020;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.35);
  font: 500 13px/1.35 Inter, Roboto, system-ui, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition: transform 160ms ease;
}

.runelite-sidebar[data-expanded="false"] {
  width: var(--runelite-rail-width);
  transform: none;
  background: #050308;
  box-shadow: -5px 0 18px rgba(0, 0, 0, 0.48);
}

.runelite-sidebar[data-expanded="false"] .runelite-drawer {
  display: none;
}

.runelite-sidebar[data-expanded="false"] .runelite-rail {
  width: var(--runelite-rail-width);
  border-left: 1px solid rgba(103, 39, 128, 0.28);
  background: linear-gradient(180deg, #09060d, #040306);
}

.runelite-sidebar[data-expanded="false"] .runelite-tab:not(.runelite-collapse):not(.runelite-loot-tab):not(.runelite-tool-tab) {
  display: none;
}

.runelite-sidebar[data-expanded="false"] .runelite-brand > img {
  width: 30px;
  height: 30px;
}

.runelite-sidebar[data-expanded="false"] .runelite-collapse {
  width: 100%;
  height: 44px;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(163, 87, 195, 0.2);
  border-radius: 0;
  color: #ead2ff;
  background: linear-gradient(180deg, rgba(63, 25, 79, 0.82), rgba(25, 10, 32, 0.9));
  box-shadow: inset 2px 0 rgba(187, 93, 230, 0.32);
}

.runelite-plugin-controls {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.runelite-plugin-action {
  min-width: 42px;
  border: 1px solid rgba(190, 116, 255, 0.42);
  border-radius: 6px;
  padding: 5px 7px;
  color: #dcc2f4;
  background: rgba(93, 37, 143, 0.38);
  font: 750 10px/1 system-ui, sans-serif;
  cursor: pointer;
}

.runelite-plugin-action:hover,
.runelite-plugin-action:focus-visible,
.runelite-plugin-action.is-armed {
  border-color: #c276ff;
  color: #fff;
  background: #7937b7;
  box-shadow: 0 0 14px rgba(174, 79, 255, 0.34);
}

.runelite-drawer {
  display: flex;
  width: var(--runelite-panel-width);
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid #090909;
  background: linear-gradient(180deg, #252525, #1c1c1c 76px);
}

.runelite-drawer-header {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #111;
  padding: 7px 8px 7px 14px;
  background: #222;
}

.runelite-wordmark {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 7px;
}

.runelite-wordmark b {
  color: #f0c75e;
  font-size: 15px;
  letter-spacing: 0.02em;
}

.runelite-wordmark small {
  overflow: hidden;
  color: #8d8d8d;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.runelite-icon-button,
.runelite-tab {
  display: grid;
  place-items: center;
  border: 0;
  color: #9a9a9a;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.runelite-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 4px;
}

.runelite-icon-button:hover,
.runelite-icon-button:focus-visible,
.runelite-tab:hover,
.runelite-tab:focus-visible {
  color: #fff;
  background: #343434;
  outline: none;
}

.runelite-icon-button svg,
.runelite-tab svg,
.runelite-search svg,
.runelite-wide-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.runelite-native-icon {
  display: block;
  width: auto;
  max-width: 21px;
  height: auto;
  max-height: 21px;
  object-fit: contain;
  pointer-events: none;
}

.runelite-native-icon--close {
  width: 10px;
  height: 20px;
}

.runelite-native-icon--search {
  width: 16px;
  height: 16px;
  opacity: 0.72;
}

.runelite-native-icon--loot {
  width: 20px;
  height: 20px;
}

.runelite-panel-stack {
  min-height: 0;
  flex: 1;
  overflow: hidden;
}

.runelite-panel {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 13px 24px;
  scrollbar-color: #565656 #202020;
  scrollbar-width: thin;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.runelite-panel[hidden] {
  display: none;
}

.runelite-panel-heading {
  display: flex;
  min-height: 42px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.runelite-panel-heading h2 {
  margin: 1px 0 0;
  color: #eee;
  font-size: 18px;
  font-weight: 650;
}

.runelite-eyebrow {
  color: #868686;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.runelite-count {
  min-width: 23px;
  border-radius: 10px;
  padding: 2px 7px;
  color: #b6b6b6;
  background: #333;
  font-size: 11px;
  text-align: center;
}

.runelite-search {
  display: flex;
  height: 36px;
  align-items: center;
  gap: 8px;
  border: 1px solid #3b3b3b;
  border-radius: 3px;
  padding: 0 10px;
  color: #777;
  background: #181818;
}

.runelite-search:focus-within {
  border-color: #d1a83f;
  color: #c8a64f;
  box-shadow: 0 0 0 1px rgba(209, 168, 63, 0.18);
}

.runelite-search svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.runelite-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #e4e4e4;
  background: transparent;
  font: inherit;
  user-select: text;
  -webkit-user-select: text;
}

.runelite-plugin-list {
  display: grid;
  gap: 1px;
  margin-top: 13px;
  overflow: hidden;
  border: 1px solid #313131;
  border-radius: 4px;
  background: #111;
}

.runelite-plugin {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 9px;
  padding: 8px 9px;
  background: #242424;
}

.runelite-plugin[hidden] {
  display: none;
}

.runelite-plugin--unavailable {
  opacity: 0.68;
}

.runelite-plugin-icon {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  border-radius: 5px;
  color: #c9c9c9;
  background: #383838;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.runelite-plugin-icon--gold { color: #241b08; background: #d0a844; }
.runelite-plugin-icon--blue { color: #d8eeff; background: #326a8f; }
.runelite-plugin-icon--green { color: #ddf7df; background: #3f7647; }
.runelite-plugin-icon--purple { color: #eee4ff; background: #674d8f; }

.runelite-plugin-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.runelite-plugin-copy b,
.runelite-setting b {
  overflow: hidden;
  color: #e1e1e1;
  font-size: 12px;
  font-weight: 620;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runelite-plugin-copy small,
.runelite-setting small {
  overflow: hidden;
  color: #858585;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runelite-plugin-state {
  border: 1px solid #414141;
  border-radius: 9px;
  padding: 2px 6px;
  color: #969696;
  font-size: 9px;
  font-weight: 650;
  text-transform: uppercase;
}

.runelite-plugin-state--on {
  border-color: rgba(215, 174, 68, 0.35);
  color: #e0bb5c;
  background: rgba(198, 151, 38, 0.09);
}

.runelite-switch {
  position: relative;
  display: inline-flex;
  width: 32px;
  height: 18px;
  flex: 0 0 auto;
  cursor: pointer;
}

.runelite-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.runelite-switch > span {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #4a4a4a;
  box-shadow: inset 0 0 0 1px #555;
  transition: background 120ms ease;
}

.runelite-switch > span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #bbb;
  content: "";
  transition: transform 120ms ease, background 120ms ease;
}

.runelite-switch input:checked + span {
  background: #a98022;
  box-shadow: inset 0 0 0 1px #c49d3f;
}

.runelite-switch input:checked + span::after {
  background: #fff3c9;
  transform: translateX(14px);
}

.runelite-switch input:focus-visible + span {
  outline: 2px solid #e5bd59;
  outline-offset: 2px;
}

.runelite-empty {
  margin: 0;
  padding: 18px;
  color: #888;
  background: #242424;
  text-align: center;
}

.runelite-empty[hidden] { display: none; }

.runelite-panel-note {
  margin: 14px 2px 0;
  color: #777;
  font-size: 10px;
  line-height: 1.5;
}

.runelite-settings-group {
  margin: 10px 0 17px;
  border: 1px solid #303030;
  border-radius: 4px;
  background: #202020;
}

.runelite-settings-group h3 {
  margin: 0;
  border-bottom: 1px solid #303030;
  padding: 8px 10px;
  color: #a7a7a7;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.runelite-setting {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
}

.runelite-setting + .runelite-setting {
  border-top: 1px solid #303030;
}

.runelite-setting > span:first-child {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.runelite-wide-button {
  display: flex;
  width: calc(100% - 18px);
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 9px;
  border: 1px solid #464646;
  border-radius: 3px;
  padding: 8px 10px;
  color: #d8d8d8;
  background: #303030;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.runelite-wide-button:hover,
.runelite-wide-button:focus-visible {
  border-color: #696969;
  color: #fff;
  background: #393939;
  outline: none;
}

.runelite-wide-button svg {
  width: 16px;
  height: 16px;
}

.runelite-wide-button--gold {
  width: 100%;
  margin: 15px 0 0;
  border-color: #8c6b20;
  color: #f4d781;
  background: #5a4518;
}

.runelite-info-grid {
  display: grid;
  gap: 1px;
  margin: 10px 0 0;
  overflow: hidden;
  border: 1px solid #303030;
  border-radius: 4px;
  background: #111;
}

.runelite-info-grid > div {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  background: #222;
}

.runelite-info-grid dt { color: #8e8e8e; }
.runelite-info-grid dd { margin: 0; color: #dedede; text-align: right; }

.runelite-rail {
  display: flex;
  width: var(--runelite-rail-width);
  flex: 0 0 var(--runelite-rail-width);
  flex-direction: column;
  align-items: stretch;
  border-left: 1px solid #0b0b0b;
  background: #181818;
}

.runelite-brand {
  display: grid;
  height: 48px;
  place-items: center;
  border-bottom: 1px solid #0b0b0b;
  color: #191306;
  background: linear-gradient(145deg, #f1d477, #aa7720);
  font: 900 21px/1 Georgia, serif;
  text-shadow: 0 1px rgba(255, 255, 255, 0.22);
}

.runelite-tab {
  position: relative;
  width: 100%;
  height: 46px;
  flex: 0 0 46px;
}

.runelite-tab.is-active {
  color: #e7c15c;
  background: #292929;
}

.runelite-tab.is-active::before {
  position: absolute;
  top: 7px;
  left: 0;
  bottom: 7px;
  width: 2px;
  background: #e2b849;
  content: "";
}

.runelite-rail-spacer { flex: 1; }

.runelite-chevron {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  transition: transform 160ms ease;
}

.runelite-chevron img {
  display: block;
  width: 10px;
  height: 20px;
  transform: scaleX(-1);
  pointer-events: none;
}

.runelite-sidebar[data-expanded="true"] .runelite-chevron {
  transform: rotate(180deg);
}

.runelite-fps {
  position: fixed;
  z-index: 12;
  top: max(8px, env(safe-area-inset-top, 0px));
  right: calc(var(--runelite-reserved-width) + env(safe-area-inset-right, 0px) + 8px);
  border: 1px solid rgba(235, 198, 94, 0.46);
  border-radius: 3px;
  padding: 4px 7px;
  color: #f3d77d;
  background: rgba(16, 16, 16, 0.78);
  font: 700 11px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
  pointer-events: none;
}

.runelite-fps[hidden] { display: none; }

.webclient-game-viewport.webclient-pixelated #game-canvas,
.webclient-game-viewport.webclient-pixelated #game-gpu-canvas {
  image-rendering: pixelated;
}

/* RuneLite-inspired web shell: charcoal chrome, OSRS gold and orange states. */
.runelite-sidebar {
  --rl-orange: #dc8a00;
  --rl-gold: #d7b45a;
  --rl-panel: #1b1b1b;
  --rl-raised: #242424;
  --rl-edge: #090909;
  color: #dedede;
  border-left: 1px solid #050505;
  background: #141414;
  box-shadow: -14px 0 40px rgba(0, 0, 0, 0.68);
}

.runelite-sidebar[data-expanded="false"] {
  border-left-color: #050505;
  background: #111;
  box-shadow: -5px 0 18px rgba(0, 0, 0, 0.56);
}

.runelite-sidebar[data-expanded="false"] .runelite-rail {
  border-left-color: #050505;
  background: linear-gradient(180deg, #1b1b1b, #101010 58%);
}

.runelite-sidebar[data-expanded="false"] .runelite-collapse {
  border-bottom-color: #080808;
  color: var(--rl-orange);
  background: linear-gradient(180deg, #2b251e, #191715);
  box-shadow: inset 2px 0 #bd7118, inset 0 -1px rgba(255, 152, 31, 0.12);
}

.runelite-drawer {
  position: relative;
  border-left: 0;
  background:
    radial-gradient(circle at 76% -8%, rgba(255, 152, 31, 0.07), transparent 31%),
    linear-gradient(180deg, #202020 0, #181818 78px, #151515 100%);
}

.runelite-drawer::before {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #6b3e12, var(--rl-orange) 44%, #d7b45a 72%, #4c2e10);
  box-shadow: 0 1px 5px rgba(255, 152, 31, 0.2);
  content: "";
  pointer-events: none;
}

.runelite-drawer-header {
  min-height: 50px;
  border-bottom-color: #090909;
  background: linear-gradient(180deg, #292724, #1c1b19);
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.025);
}

.runelite-wordmark {
  gap: 8px;
  align-items: center;
  line-height: 1;
}

.runelite-slayora-logo {
  display: block;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(180, 65, 255, 0.42));
}

.runelite-wordmark-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.runelite-wordmark b {
  color: var(--rl-gold);
  font: 800 12px/1.1 Georgia, "Times New Roman", serif;
  letter-spacing: 0.025em;
  text-shadow: 0 1px #000, 0 0 8px rgba(215, 180, 90, 0.16);
  white-space: nowrap;
}

.runelite-wordmark small {
  color: #8f8b83;
  letter-spacing: 0.09em;
}

.runelite-icon-button,
.runelite-tab {
  color: #8f8f8f;
}

.runelite-icon-button {
  border-radius: 3px;
}

.runelite-icon-button:hover,
.runelite-icon-button:focus-visible,
.runelite-tab:hover,
.runelite-tab:focus-visible {
  color: #f1f1f1;
  background: #303030;
}

.runelite-panel {
  scrollbar-color: #555 #181818;
}

.runelite-panel-heading h2 {
  color: #f0f0f0;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.runelite-eyebrow {
  color: #a8894b;
}

.runelite-count {
  border: 1px solid #3b3832;
  border-radius: 3px;
  color: #cbbd9e;
  background: #282622;
}

.runelite-search {
  border-color: #3a3a3a;
  border-radius: 3px;
  color: #747474;
  background: #111;
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.runelite-search:focus-within {
  border-color: #b76d19;
  color: var(--rl-orange);
  background: #0d0d0d;
  box-shadow: 0 0 0 1px rgba(255, 152, 31, 0.12);
}

.runelite-search input {
  color: #e4e4e4;
}

.runelite-search input::placeholder {
  color: #666;
}

.runelite-plugin-list {
  gap: 1px;
  border-color: #0c0c0c;
  border-radius: 2px;
  background: #090909;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.22);
}

.runelite-plugin {
  grid-template-columns: 21px minmax(0, 1fr) auto;
  min-height: 55px;
  gap: 6px;
  border-left: 2px solid transparent;
  padding: 7px 7px 7px 6px;
  background: linear-gradient(180deg, #292929, #232323);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
  transition: border-color 100ms ease, background 100ms ease;
}

.runelite-plugin:hover {
  border-left-color: #8c571d;
  background: linear-gradient(180deg, #303030, #292929);
}

.runelite-plugin:has(.runelite-switch input:checked) {
  border-left-color: var(--rl-orange);
}

.runelite-plugin-pin {
  display: grid;
  width: 21px;
  height: 30px;
  place-items: center;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.runelite-plugin-pin img {
  display: block;
  width: 18px;
  height: 18px;
  filter: grayscale(1) brightness(0.77);
  opacity: 0.86;
  transition: filter 100ms ease, opacity 100ms ease, transform 100ms ease;
  pointer-events: none;
}

.runelite-plugin-pin:hover img,
.runelite-plugin-pin:focus-visible img {
  opacity: 1;
  filter: grayscale(0.25) brightness(0.9);
  transform: scale(1.08);
}

.runelite-plugin-pin:focus-visible {
  border-radius: 2px;
  outline: 1px solid var(--rl-orange);
  outline-offset: 1px;
}

.runelite-plugin-pin[aria-pressed="true"] img {
  filter: none;
  opacity: 1;
}

.runelite-plugin-copy b,
.runelite-setting b {
  color: #e8e8e8;
}

.runelite-plugin-copy small,
.runelite-setting small {
  color: #8c8c8c;
}

.runelite-plugin-copy b,
.runelite-plugin-copy small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.runelite-plugin-copy small {
  line-height: 1.28;
}

.runelite-plugin-state {
  border-color: #414141;
  border-radius: 3px;
  color: #9b9b9b;
  background: #202020;
}

.runelite-plugin-state--on {
  border-color: #72501f;
  color: #e6bd65;
  background: #2c2418;
}

.runelite-plugin-action {
  display: grid;
  width: 27px;
  min-width: 27px;
  height: 27px;
  place-items: center;
  border-color: #3e3e3e;
  border-radius: 3px;
  padding: 0;
  color: #d3d3d3;
  background: #1e1e1e;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.045);
}

.runelite-plugin-action img {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.runelite-plugin-action:hover,
.runelite-plugin-action:focus-visible,
.runelite-plugin-action.is-armed {
  border-color: #db831d;
  color: #fff;
  background: #3a3022;
  box-shadow: 0 0 0 1px rgba(255, 152, 31, 0.14);
}

.runelite-switch > span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 25px;
  height: 15px;
  border-radius: 0;
  background: url('/assets/vendor/runelite/switcher_on.png?v=ac79ed8') center / 25px 15px no-repeat;
  box-shadow: none;
  filter: grayscale(1) brightness(0.61);
  transform: translate(-50%, -50%) scaleX(-1);
  transition: filter 100ms ease, transform 100ms ease;
}

.runelite-switch > span::after {
  display: none;
  content: none;
}

.runelite-switch input:checked + span {
  background: url('/assets/vendor/runelite/switcher_on.png?v=ac79ed8') center / 25px 15px no-repeat;
  box-shadow: none;
  filter: none;
  transform: translate(-50%, -50%);
}

.runelite-switch input:checked + span::after {
  display: none;
}

.runelite-switch input:focus-visible + span {
  outline-color: var(--rl-orange);
}

.runelite-empty {
  color: #898989;
  background: #1c1c1c;
}

.runelite-panel-note {
  color: #777;
}

.runelite-settings-group,
.runelite-info-grid {
  border-color: #0d0d0d;
  border-radius: 2px;
  background: #111;
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.18);
}

.runelite-settings-group {
  background: #202020;
}

.runelite-settings-group h3,
.runelite-setting + .runelite-setting {
  border-color: #111;
}

.runelite-settings-group h3 {
  color: #b29b6a;
}

.runelite-wide-button {
  border-color: #444;
  border-radius: 3px;
  color: #dedede;
  background: linear-gradient(180deg, #303030, #242424);
}

.runelite-wide-button:hover,
.runelite-wide-button:focus-visible {
  border-color: #9f641f;
  color: #fff;
  background: linear-gradient(180deg, #3a342c, #29251f);
  box-shadow: none;
}

.runelite-wide-button--gold {
  border-color: #8d6428;
  color: #f3d99e;
  background: linear-gradient(180deg, #4b3a21, #302717);
}

.runelite-info-grid > div {
  background: linear-gradient(180deg, #282828, #232323);
}

.runelite-info-grid dt { color: #949494; }
.runelite-info-grid dd { color: #e3e3e3; }

.runelite-client-info .runelite-info-grid {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.runelite-client-info .runelite-wide-button {
  margin: 10px;
  width: calc(100% - 20px);
}

.runelite-client-info .runelite-panel-note {
  margin-right: 10px;
  margin-left: 10px;
}

.runelite-rail {
  border-left-color: #070707;
  background: linear-gradient(180deg, #202020, #151515 58%);
  box-shadow: inset 1px 0 rgba(255, 255, 255, 0.025);
}

.runelite-brand {
  border-bottom-color: #090909;
  background: radial-gradient(circle at 50% 42%, #2d1238, #171019 62%, #0d0a0e);
  box-shadow: inset 0 -1px #070707, inset 0 1px rgba(211, 121, 255, 0.1);
}

.runelite-brand > img {
  display: block;
  width: 37px;
  height: 37px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(184, 70, 255, 0.4));
}

.runelite-tab.is-active {
  color: var(--rl-orange);
  background: linear-gradient(90deg, #2d2924, #242321);
}

.runelite-tab.is-active::before {
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--rl-orange);
  box-shadow: 0 0 7px rgba(255, 152, 31, 0.35);
}

.runelite-fps {
  border-color: rgba(255, 152, 31, 0.52);
  border-radius: 3px;
  color: #ffc267;
  background: rgba(16, 16, 16, 0.88);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.38);
}

.runelite-collapse {
  border-bottom: 1px solid #0b0b0b;
  color: #c48a3c;
  background: #201e1b;
}

.runelite-collapse:hover,
.runelite-collapse:focus-visible {
  color: var(--rl-orange);
  background: #302a23;
}

.runelite-loot-tab {
  color: #d9a3ac;
  background: linear-gradient(180deg, rgba(88, 25, 39, 0.82), rgba(49, 13, 23, 0.86));
  box-shadow: inset 0 1px rgba(255, 188, 201, 0.08), inset 0 -1px rgba(31, 4, 10, 0.72);
}

.runelite-loot-tab:hover,
.runelite-loot-tab:focus-visible {
  color: #ffe9ed;
  background: linear-gradient(180deg, rgba(123, 38, 55, 0.9), rgba(70, 18, 30, 0.94));
}

.runelite-loot-tab.is-active {
  color: #ffd7de;
  background: linear-gradient(180deg, #702237, #3e101f);
}

.runelite-loot-tab.is-active::before {
  background: #e1647e;
  box-shadow: 0 0 11px rgba(225, 75, 108, 0.72);
}

.runelite-loot-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 14px;
  border: 1px solid rgba(255, 190, 201, 0.3);
  border-radius: 8px;
  padding: 1px 3px;
  color: #fff1f3;
  background: #8f2b41;
  box-shadow: 0 2px 7px rgba(21, 1, 6, 0.56);
  font: 800 7px/1.1 system-ui, sans-serif;
  text-align: center;
}

.runelite-loot-badge[hidden] {
  display: none;
}

.runelite-sidebar[data-expanded="false"] .runelite-loot-tab {
  display: grid;
  width: 100%;
  height: 50px;
  flex-basis: 50px;
  border-bottom: 1px solid rgba(151, 48, 69, 0.36);
}

.runelite-loot-panel {
  padding-right: 10px;
  padding-left: 10px;
}

.runelite-loot-heading {
  align-items: center;
}

.runelite-compact-button {
  border: 1px solid rgba(191, 76, 98, 0.38);
  border-radius: 7px;
  padding: 5px 8px;
  color: #d9a5ae;
  background: rgba(92, 25, 39, 0.28);
  font: 700 9px/1 system-ui, sans-serif;
  cursor: pointer;
}

.runelite-compact-button:hover,
.runelite-compact-button:focus-visible {
  border-color: #ba5369;
  color: #fff0f3;
  background: rgba(125, 36, 54, 0.54);
  outline: none;
}

.runelite-loot-summary {
  margin: 3px 1px 12px;
  color: #756979;
  font-size: 10px;
  line-height: 1.45;
}

.runelite-loot-list {
  display: grid;
  gap: 8px;
}

.runelite-loot-list[hidden] {
  display: none;
}

.runelite-loot-entry {
  overflow: hidden;
  border: 1px solid rgba(144, 60, 78, 0.35);
  border-radius: 4px;
  background: linear-gradient(145deg, rgba(34, 20, 25, 0.96), rgba(17, 14, 16, 0.98));
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.22);
}

.runelite-loot-entry > header {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid rgba(146, 57, 75, 0.2);
  padding: 6px 8px;
  background: linear-gradient(180deg, rgba(89, 31, 44, 0.32), rgba(51, 22, 29, 0.24));
}

.runelite-loot-category-title {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.runelite-loot-entry > header b {
  min-width: 0;
  overflow: hidden;
  color: #f0dce1;
  font-size: 11px;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runelite-loot-kill-count {
  color: #a78f95;
  font: 650 8px/1 system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.runelite-loot-entry > header time {
  flex: 0 0 auto;
  color: #806b72;
  font: 600 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.runelite-loot-entry .runelite-loot-item-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  padding: 7px;
  list-style: none;
}

.runelite-loot-entry .runelite-loot-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 67px;
  place-items: center;
  align-content: start;
  gap: 2px;
  border: 1px solid rgba(125, 91, 99, 0.2);
  border-radius: 3px;
  padding: 6px 2px 4px;
  color: #c8bdca;
  background: linear-gradient(180deg, rgba(47, 40, 43, 0.82), rgba(28, 24, 26, 0.9));
  font-size: 9px;
}

.runelite-loot-entry .runelite-loot-item:hover {
  border-color: rgba(220, 138, 0, 0.34);
  background: linear-gradient(180deg, rgba(58, 48, 41, 0.9), rgba(32, 28, 27, 0.96));
}

.runelite-loot-entry .runelite-loot-item-quantity {
  position: absolute;
  z-index: 2;
  top: 2px;
  right: 3px;
  max-width: calc(100% - 6px);
  overflow: hidden;
  color: #fff0b8;
  font: 800 9px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  text-shadow: 1px 1px #000, -1px -1px #000, 1px -1px #000, -1px 1px #000;
  white-space: nowrap;
}

.runelite-loot-entry .runelite-loot-item-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  min-width: 38px;
  place-items: center;
  overflow: visible;
}

.runelite-loot-item-icon img {
  display: block;
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
}

.runelite-loot-entry .runelite-loot-item-missing {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #4d4648;
  border-radius: 3px;
  color: #8a8083;
  background: #1c191a;
  font: 700 7px/1.1 system-ui, sans-serif;
  text-align: center;
  white-space: normal;
}

.runelite-loot-entry .runelite-loot-item-missing[hidden] {
  display: none;
}

.runelite-loot-entry .runelite-loot-item-name {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  min-height: 20px;
  overflow: hidden;
  color: #bcb3b6;
  line-height: 1.15;
  text-align: center;
  text-overflow: ellipsis;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.runelite-loot-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border: 1px dashed rgba(154, 81, 98, 0.27);
  border-radius: 10px;
  padding: 20px 12px;
  color: #8f7d84;
  background: rgba(38, 15, 23, 0.2);
  text-align: center;
}

.runelite-loot-empty[hidden] {
  display: none;
}

.runelite-loot-empty-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: drop-shadow(0 0 7px rgba(166, 55, 80, 0.32));
}

.runelite-loot-empty b {
  color: #cbb9be;
  font-size: 11px;
}

.runelite-loot-empty small {
  max-width: 175px;
  color: #756970;
  font-size: 9px;
  line-height: 1.45;
}

/* Native-style tool tabs: visible in the collapsed rail directly below Loot Tracker. */
.runelite-sidebar[data-expanded="false"] .runelite-tool-tab {
  display: grid;
  width: 100%;
  height: 46px;
  flex-basis: 46px;
  border-bottom: 1px solid #090909;
}

.runelite-tool-tab .runelite-native-icon {
  max-width: 23px;
  max-height: 23px;
}

.runelite-pixel-icon {
  image-rendering: pixelated;
}

.runelite-tool-tab.is-active {
  color: var(--rl-orange);
  background: linear-gradient(90deg, #30291f, #23211e);
}

.runelite-tool-badge {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 188, 88, 0.34);
  border-radius: 8px;
  padding: 1px 3px;
  color: #fff0c2;
  background: #8a5410;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.55);
  font: 800 7px/1.1 system-ui, sans-serif;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runelite-tool-badge[hidden] {
  display: none;
}

.runelite-xp-panel,
.runelite-notes-panel {
  padding-right: 10px;
  padding-left: 10px;
}

.runelite-tool-heading {
  align-items: center;
}

.runelite-compact-button--neutral {
  border-color: #4d4539;
  color: #c8b890;
  background: #27231d;
}

.runelite-compact-button--neutral:hover,
.runelite-compact-button--neutral:focus-visible {
  border-color: #9d6d27;
  color: #ffe0a0;
  background: #3a2c1c;
}

.runelite-xp-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 4px 0 11px;
}

.runelite-xp-summary > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  border: 1px solid #37332c;
  border-radius: 3px;
  padding: 7px 4px;
  background: linear-gradient(180deg, #282623, #1d1c1a);
  text-align: center;
}

.runelite-xp-summary span {
  overflow: hidden;
  color: #88837b;
  font-size: 7px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.runelite-xp-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #e7c36b;
  font: 750 10px/1.1 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runelite-xp-list {
  display: grid;
  gap: 6px;
}

.runelite-xp-list[hidden] {
  display: none;
}

.runelite-xp-skill {
  overflow: hidden;
  border: 1px solid #393530;
  border-radius: 3px;
  background: linear-gradient(180deg, #282725, #1c1c1b);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.runelite-xp-skill-main {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  padding: 7px;
}

.runelite-xp-skill-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.75));
}

.runelite-xp-skill-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.runelite-xp-skill-copy b {
  overflow: hidden;
  color: #dfdfdf;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runelite-xp-skill-copy small {
  overflow: hidden;
  color: #85817b;
  font: 650 8px/1.25 ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.runelite-xp-skill-gain {
  color: #f0c96c;
  font: 800 10px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
  white-space: nowrap;
}

.runelite-xp-progress {
  height: 3px;
  background: #101010;
}

.runelite-xp-progress > span {
  display: block;
  width: var(--xp-progress, 0%);
  height: 100%;
  background: linear-gradient(90deg, #9e5d08, #e69a20, #f0c967);
  box-shadow: 0 0 5px rgba(230, 154, 32, 0.32);
}

.runelite-tool-empty {
  display: grid;
  min-height: 160px;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px dashed #39352f;
  border-radius: 6px;
  padding: 20px 12px;
  color: #837f78;
  background: rgba(31, 29, 26, 0.58);
  text-align: center;
}

.runelite-tool-empty[hidden] {
  display: none;
}

.runelite-tool-empty-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  opacity: 0.82;
  filter: drop-shadow(0 2px 5px #000);
}

.runelite-tool-empty b {
  color: #c9c4bc;
  font-size: 11px;
}

.runelite-tool-empty small {
  max-width: 180px;
  color: #77736d;
  font-size: 9px;
  line-height: 1.45;
}

.runelite-notes-field {
  display: block;
  margin-top: 4px;
}

.runelite-notes-editor,
#runelite-notes-editor {
  display: block;
  width: 100%;
  min-height: min(54vh, 420px);
  resize: vertical;
  border: 1px solid #403b34;
  border-radius: 3px;
  padding: 10px;
  color: #dedbd4;
  caret-color: var(--rl-orange);
  background: #111;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.58);
  font: 500 11px/1.5 Inter, Roboto, system-ui, sans-serif;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
  touch-action: pan-y;
}

#runelite-notes-editor::placeholder {
  color: #68645e;
}

#runelite-notes-editor:focus {
  border-color: #96601c;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.58), 0 0 0 1px rgba(220, 138, 0, 0.18);
}

.runelite-notes-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 2px 2px;
  color: #74706a;
  font: 650 8px/1 ui-monospace, SFMono-Regular, Consolas, monospace;
}

.runelite-notes-meta .is-error {
  color: #d47d75;
}

@media (max-width: 760px) {
  .webclient-game-viewport.runelite-sidebar-expanded {
    --runelite-reserved-width: 0px;
  }

  .webclient-game-viewport {
    --runelite-panel-width: min(238px, calc(100vw - var(--runelite-rail-width) - env(safe-area-inset-left, 0px)));
  }

  .runelite-sidebar[data-expanded="true"] {
    box-shadow: -14px 0 42px rgba(0, 0, 0, 0.68);
  }
}

@media (max-height: 420px) {
  .runelite-drawer-header,
  .runelite-brand { height: 40px; min-height: 40px; }
  .runelite-tab { height: 40px; flex-basis: 40px; }
  .runelite-panel { padding-top: 10px; }
  .runelite-plugin { min-height: 49px; padding-top: 5px; padding-bottom: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  .runelite-sidebar,
  .runelite-chevron,
  .runelite-switch > span,
  .runelite-switch > span::after {
    transition: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .webclient-keyboard-toggle {
    opacity: 0.48;
  }
}
