html body .nv-book-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
html body .nv-book-canvas { position: relative; width: 100%; aspect-ratio: 600 / 337; isolation: isolate; }
html body .nv-book-canvas .nv-book-art { display: block; width: 100%; height: auto; margin: 0; }
html body .nv-book-map { position: absolute; left: 11.5%; top: 9.8%; width: 35%; height: 35%; border-radius: 3px; outline: 2px solid transparent; outline-offset: 2px; }
html body .nv-book-map::before { content: none !important; }
html body .nv-book-map:hover, html body .nv-book-map:focus-visible { outline-color: #d89b35; box-shadow: 0 0 0 4px #f8d98a66; }
html body .nv-book-map-label { position: absolute; inset: auto 0 0; padding: 3px 4px; background: rgba(var(--aoy-palette-panel-rgb, 21, 36, 59), 0.9098039215686274); color: #fff; font: 600 clamp(.55rem, 1.2vw, .78rem)/1.4 sans-serif; text-align: center; opacity: 0; }
html body .nv-book-map:hover .nv-book-map-label, html body .nv-book-map:focus-visible .nv-book-map-label { opacity: 1; }
html body .nv-book-slots { position: absolute; inset: 0; pointer-events: none; }
html body .nv-book-slot { position: absolute; border-radius: 12%; }
html body .nv-book-slot--unused { background: rgba(var(--aoy-palette-panel-rgb, 247, 246, 252), 0.8117647058823529); }
html body .nv-book-card { display: flex; align-items: center; justify-content: center; padding: 1px; border: 1px solid rgb(var(--aoy-palette-border-rgb, 146, 158, 219)); background: rgb(var(--aoy-palette-panel-rgb, 214, 221, 255)); cursor: pointer; pointer-events: auto; transition: transform 140ms ease-out, box-shadow 140ms ease-out, border-color 140ms ease-out; }
html body .nv-book-card:hover, html body .nv-book-card:focus-visible, html body .nv-book-card[aria-pressed="true"] { border-color: #98621b; outline: 2px solid #f5c454; outline-offset: 1px; box-shadow: 0 0 12px #efb53b99; z-index: 2; }
html body .nv-book-card:hover, html body .nv-book-card:focus-visible { transform: translateY(-3px) scale(1.12); }
html body .nv-book-card .nv-book-card-face { width: auto; height: 94%; max-width: 94%; object-fit: contain; margin: 0; border-radius: 2px; }
html body .nv-book-card .nv-book-card-indicator { position: absolute; width: clamp(12px, 2vw, 20px); height: auto; right: -7px; top: -9px; margin: 0; opacity: 0; pointer-events: none; }
html body .nv-book-card:hover .nv-book-card-indicator, html body .nv-book-card:focus-visible .nv-book-card-indicator, html body .nv-book-card[aria-pressed="true"] .nv-book-card-indicator { opacity: 1; }
html body .nv-book-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border-color); }
html body .nv-book-controls p { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--text-secondary); font-size: .8rem; }
html body .nv-book-controls p img { display: inline-block; margin: 0; width: 20px; height: 20px; }
html body .nv-book-controls button, html body .nv-book-inspector-navigation button, html body .nv-book-dialog-heading button { min-height: 44px; padding: 8px 12px; border: 1px solid var(--button-border, var(--border-color)); border-radius: 8px; background: var(--button-bg, var(--card-bg)); color: var(--button-text, var(--text-color)); font-size: .82rem; cursor: pointer; }
html body .nv-book-controls button:hover, html body .nv-book-inspector-navigation button:hover, html body .nv-book-dialog-heading button:hover { background: var(--button-hover-bg); }
html body .nv-book-controls button:focus-visible, html body .nv-book-inspector-navigation button:focus-visible, html body .nv-book-dialog-heading button:focus-visible, html body .nv-card-database:focus-visible { outline: 2px solid var(--accent-color); outline-offset: 3px; }
html body .nv-book-pagination { display: flex; flex-wrap: wrap; gap: 6px; }
html body .nv-book-pagination button[aria-current="page"] { border-color: var(--accent-color); box-shadow: inset 0 -2px var(--accent-color); }
html body .nv-book-inspector { padding: 16px 18px; border-top: 1px solid var(--border-color); color: var(--text-color); background: var(--card-bg); }
html body .nv-book-inspector-navigation { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; color: var(--text-secondary); font-size: .8rem; }
html body .nv-book-inspector-navigation > div { display: flex; gap: 6px; }
html body .nv-book-inspector-navigation button { min-width: 44px; font-size: 1rem; }
html body .nv-card-facts-heading { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; }
html body .nv-card-facts-heading > img { flex: 0 0 64px; width: 64px; height: 88px; object-fit: contain; margin: 0; }
html body .nv-card-facts-heading > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
html body .nv-card-facts-heading small { color: var(--text-secondary); font-size: .74rem; }
html body .nv-card-facts-heading strong { color: var(--text-color); font-size: 1rem; line-height: 1.4; }
html body .nv-card-facts-heading span { color: var(--accent-color); font-size: .8rem; font-weight: 600; }
html body .nv-interactive-book .nv-bonus-list, html body .nv-book-tooltip .nv-bonus-list { padding-left: 18px; margin: 0; font-size: .84rem; line-height: 1.7; }
html body .nv-interactive-book .nv-bonus-list li, html body .nv-book-tooltip .nv-bonus-list li { margin: 4px 0; }
html body .nv-card-database { display: inline-flex; margin-top: 12px; font-size: .83rem; color: var(--accent-color); text-decoration: underline; text-underline-offset: 3px; }
html body .nv-book-instructions { margin: 10px 0 0; font-size: .8rem; line-height: 1.65; color: var(--text-secondary); }
html body .nv-book-tooltip { position: fixed; z-index: 10040; width: 350px; max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 16px; border: 1px solid var(--border-color); border-top: 3px solid #c49847; border-radius: 12px; background: #fff; color: var(--text-color); box-shadow: 0 14px 40px #0005; }
html body .nv-tooltip-hint { display: flex; align-items: center; gap: 7px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--border-color); font-size: .75rem; line-height: 1.5; color: var(--text-secondary); }
html body .nv-tooltip-hint img { flex: 0 0 18px; width: 18px; height: 18px; margin: 0; }
html body .nv-book-dialog { position: relative; z-index: 9990; }
html body .nv-book-dialog-backdrop { position: fixed; inset: 0; background: rgba(var(--aoy-palette-panel-rgb, 11, 18, 41), 0.7215686274509804); }
html body .nv-book-dialog-viewport { position: fixed; inset: 0; padding: 24px; overflow-y: auto; }
html body .nv-book-dialog-panel { width: 100%; max-width: 1100px; margin: 0 auto; border: 1px solid var(--border-color); border-radius: 14px; background: #fff; color: var(--text-color); overflow: hidden; }
html[data-aoy-color-scheme="dark"] body :is(.nv-book-tooltip, .nv-book-dialog-panel), html[data-aoy-color-scheme="dark"] body :is(.nv-book-tooltip, .nv-book-dialog-panel) { background: rgb(var(--aoy-palette-panel-rgb, 27, 34, 48)); }
html body .nv-book-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border-color); }
html body .nv-book-dialog-heading h2 { margin: 0; font-size: 1.1rem; font-weight: 600; }
html body .nv-book-dialog-heading .nv-book-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: transparent; touch-action: manipulation; transition: transform 320ms ease; }
html body .nv-book-close img { display: block; width: 34px; height: 34px; margin: 0; border: 0; border-radius: 50%; background: transparent; clip-path: circle(38% at 50% 50%); object-fit: contain; pointer-events: none; transform: scale(1.3); }
html body .nv-book-close:hover, html body .nv-book-close:focus-visible { transform: rotate(360deg) scale(1.08); }
html body .nv-book-dialog-panel .nv-book-canvas { min-width: 600px; }
html body .nv-book-dialog-panel .nv-book-inspector { min-height: 220px; }
@media (max-width: 600px) {
  html body .nv-book-controls { padding: 10px; }
  html body .nv-book-expand { width: 100%; }
  html body .nv-book-dialog-viewport { padding: 8px; }
  html body .nv-book-inspector { padding: 12px; }
  html body .nv-book-tooltip { width: 310px; }
}
@media (prefers-reduced-motion: reduce) {
  html body .nv-book-card { transition: none; }
  html body .nv-book-dialog-heading .nv-book-close { transition: none; }
  html body .nv-book-close:hover, html body .nv-book-close:focus-visible { transform: none; }
  html body .nv-book-card:hover, html body .nv-book-card:focus-visible { transform: none; }
}
@media (max-width: 767px) {
}
@media (max-width: 400px) {
}

html body .map-preview-hover {
  position: fixed;
  z-index: 9999;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding: 14px 15px 16px;
  background: transparent;
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  color: rgb(var(--aoy-palette-text-rgb, 29, 36, 48));
  isolation: isolate;
  overflow: hidden;
}

html body .map-preview-hover__skin,
html body .map-preview-hover__skin-header,
html body .map-preview-hover__skin-body,
html body .map-preview-hover__skin-foot {
  position: absolute;
  pointer-events: none;
}

html body .map-preview-hover__skin {
  inset: 0;
  z-index: -1;
}

html body .map-preview-hover__skin-header,
html body .map-preview-hover__skin-body,
html body .map-preview-hover__skin-foot {
  left: 0;
  width: 320px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
}

html body .map-preview-hover__skin-header {
  top: 0;
  height: 45px;
  background: url("/themes/default/includes/img/skilltree/skill-tooltip-header.png") top left / 320px 45px no-repeat;
}

html body .map-preview-hover__skin-body {
  top: 45px;
  bottom: 7px;
  background: url("/themes/default/includes/img/skilltree/skill-tooltip-body.png") top left / 320px 68px repeat-y;
}

html body .map-preview-hover__skin-foot {
  bottom: 0;
  height: 7px;
  background: url("/themes/default/includes/img/skilltree/skill-tooltip-foot.png") bottom left / 320px 7px no-repeat;
}

html body .map-preview-hover__loading {
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgb(var(--aoy-palette-muted-rgb, 83, 93, 109));
  text-align: center;
}

html body .map-preview-hover__head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 36px;
}

html body .map-preview-hover__head-copy {
  min-width: 0;
}

html body .map-preview-hover__badge {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: -11px;
  margin-left: -12px;
}

html body .map-preview-hover__badge img {
  display: block;
  width: 30px;
  height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
}

html body .map-preview-hover__head-copy h3 {
  margin: -8px 0 0 -18px;
  color: rgb(var(--aoy-palette-muted-rgb, 63, 72, 88));
  font-size: clamp(0.62rem, 0.42rem + 0.5vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.08;
  max-width: calc(100% + 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html body .map-preview-hover__head-copy p {
  margin: 12px 0 0 -20px;
  color: rgb(var(--aoy-palette-muted-rgb, 95, 104, 118));
  font-size: 0.68rem;
  line-height: 1.2;
}

html body .map-preview-hover__head-copy p strong {
  font-weight: 700;
  color: rgb(var(--aoy-palette-muted-rgb, 63, 72, 88));
}

html body .map-preview-hover__map {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  border-radius: 6px;
  overflow: hidden;
  border: 0;
  background: transparent;
}

html body .map-preview-hover__map img {
  display: block;
  max-width: 100%;
  max-height: 190px;
  width: auto;
  height: auto;
  object-fit: contain;
}

html body .map-preview-hover__desc-head {
  margin-top: 10px;
  margin-bottom: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgb(var(--aoy-palette-muted-rgb, 63, 72, 88));
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

html body .map-preview-hover__desc-head img {
  display: block;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

html body .map-preview-hover__desc {
  color: rgb(var(--aoy-palette-muted-rgb, 83, 93, 109));
  font-size: 0.76rem;
  line-height: 1.34;
}

html body .map-preview-hover__saved {
  margin: 8px 0 0;
  color: rgb(var(--aoy-palette-muted-rgb, 95, 104, 118));
  font-size: 0.65rem;
  line-height: 1.35;
}

html body .map-preview-hover__spawn-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  margin: 0 0 6px;
}

html body .map-preview-hover__spawn-sprite {
  width: 24px;
  height: 24px;
  object-fit: contain;
  image-rendering: pixelated;
}

html body .map-preview-hover__spawn-name {
  color: rgb(var(--aoy-palette-accent-rgb, 77, 112, 216));
  text-decoration: none;
  min-width: 0;
}

html body .map-preview-hover__spawn-count {
  color: rgb(var(--aoy-palette-muted-rgb, 63, 72, 88));
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 768px) {
  html body .map-preview-hover {
    width: 320px;
    max-width: calc(100vw - 16px);
    padding: 12px 13px 14px;
  }

  html body .map-preview-hover__head {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 8px;
  }

  html body .map-preview-hover__badge {
    width: 38px;
    height: 38px;
  }

  html body .map-preview-hover__badge img {
    width: 28px;
    height: 28px;
  }
}

/* Native website colors surround the unchanged wiki book interactions. */
html body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) {
    --border-color: var(--aoy-guide-border);
    --text-color: var(--aoy-guide-text);
    --text-secondary: var(--aoy-guide-muted);
    --accent-color: var(--aoy-guide-link);
    --card-bg: var(--aoy-guide-bg);
    --button-bg: var(--aoy-guide-soft);
    --button-text: var(--aoy-guide-text);
    --button-border: var(--aoy-guide-border);
    --button-hover-bg: var(--aoy-guide-bg);
    color: var(--text-color);
    text-shadow: none;
    text-align: left;
    font-family: Arial, sans-serif;
    line-height: 1.5;
}
html body .aoy-nexus-interactive .nv-book-canvas { width: 100%; aspect-ratio: 600 / 337; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog) .nv-book-slot { position: absolute !important; margin: 0 !important; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog) .nv-book-map { position: absolute !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog) .nv-book-card {
    min-width: 0 !important; min-height: 0 !important; padding: 1px !important;
    display: flex !important; box-sizing: border-box !important;
    border: 1px solid rgb(var(--aoy-palette-border-rgb, 146, 158, 219)) !important; border-radius: 12% !important;
    background: rgb(var(--aoy-palette-panel-rgb, 214, 221, 255)) !important; box-shadow: none;
}
html body :is(.aoy-nexus-interactive, .nv-book-dialog) .nv-book-card:is(:hover, :focus-visible, [aria-pressed="true"]) {
    border-color: #98621b !important; outline: 2px solid #f5c454 !important; outline-offset: 1px;
    box-shadow: 0 0 12px #efb53b99;
}
html body :is(.aoy-nexus-interactive, .nv-book-dialog) :is(.nv-book-controls, .nv-book-inspector-navigation) button {
    background: var(--aoy-guide-soft) !important; border: 1px solid var(--aoy-guide-border) !important;
    min-width: 44px; min-height: 44px; padding: 8px 12px; box-shadow: none !important;
}
html body :is(.aoy-nexus-interactive, .nv-book-dialog) :is(.nv-book-controls, .nv-book-inspector-navigation) button:hover { background: var(--aoy-guide-bg) !important; }
html body .aoy-nexus-interactive .nv-book-canvas .nv-book-art { width: 100%; height: auto; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog) .nv-book-card .nv-book-card-face { width: auto !important; height: 94% !important; max-width: 94% !important; min-width: 0; margin: 0 !important; box-shadow: none !important; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog) .nv-book-card .nv-book-card-indicator { width: clamp(12px, 2vw, 20px); height: auto; margin: 0; box-shadow: none; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) .nv-card-facts-heading > img { width: 64px; height: 88px; max-width: 64px; object-fit: contain; margin: 0; box-shadow: none; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) :is(.nv-book-controls p, .nv-book-instructions, .nv-tooltip-hint, .nv-card-facts-heading small, .nv-book-inspector-navigation) { color: var(--aoy-guide-muted) !important; -webkit-text-fill-color: var(--aoy-guide-muted) !important; text-shadow: none !important; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) :is(.nv-card-facts-heading strong, .nv-book-dialog-heading h2, button) { color: var(--aoy-guide-text) !important; -webkit-text-fill-color: var(--aoy-guide-text) !important; text-shadow: none !important; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) .nv-bonus-list,
html body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) .nv-bonus-list li { color: var(--aoy-guide-text) !important; -webkit-text-fill-color: var(--aoy-guide-text) !important; text-shadow: none !important; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) .nv-bonus-list span { -webkit-text-fill-color: currentColor !important; }
html body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) .nv-card-database { color: var(--aoy-guide-link) !important; -webkit-text-fill-color: var(--aoy-guide-link) !important; text-shadow: none !important; }
html body .nv-book-tooltip { background: var(--aoy-guide-bg); }
/* Stay above the website's navigation and floating shortcut layer. */
html body .nv-book-dialog { z-index: 2147483500; }
html body .nv-book-tooltip { z-index: 2147483510; }
html body .map-preview-hover { z-index: 2147483508; max-height: calc(100vh - 24px); overflow-y: auto; }
html body .nv-book-dialog-panel { background: var(--aoy-guide-bg); }
html body .nv-book-dialog-heading .nv-book-close { min-height: 44px; background: transparent !important; border: 0 !important; box-shadow: none !important; }
html body .nv-book-dialog-heading .nv-book-close img { width: 34px; height: 34px; max-width: 34px; }
html[data-aoy-color-scheme="light"] body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) .item-description span[style*="color:#7BC8FB"] { color: rgb(var(--aoy-palette-accent-rgb, 23, 97, 140)) !important; -webkit-text-fill-color: rgb(var(--aoy-palette-accent-rgb, 23, 97, 140)) !important; }
html[data-aoy-color-scheme="light"] body :is(.aoy-nexus-interactive, .nv-book-dialog, .nv-book-tooltip) .item-description span[style*="color:#33CC00"] { color: #2f7418 !important; -webkit-text-fill-color: #2f7418 !important; }
html body .map-preview-hover :is(h3, strong, span, p, a) { color: rgb(var(--aoy-palette-text-rgb, 38, 62, 84)) !important; -webkit-text-fill-color: rgb(var(--aoy-palette-text-rgb, 38, 62, 84)) !important; text-shadow: none !important; }
html body .map-preview-hover__map img { max-height: 190px; }
html body .aoy-nexus-fallback img { width: 100%; height: auto; }
