/* Ahardice classic catalog palette and bestiary v712. */
:root {
  --ah-catalog-orange: #f27a12;
  --ah-catalog-deep: #5b2100;
  --ah-catalog-row: #7a2c00;
  --ah-catalog-active: #b64d09;
  --ah-catalog-gold: #ffcc33;
  --ah-catalog-outline: #3b1500;
  --ah-catalog-copy: #fff4d4;
}
#craftPanel.craft-panel.game-panel,
#shopPanel.craft-panel.game-panel,
#buildPanel.craft-panel.game-panel {
  background: var(--ah-catalog-orange) !important;
  background-image: none !important;
  border: 3px solid var(--ah-catalog-outline) !important;
  color: var(--ah-catalog-copy) !important;
  text-shadow: none !important;
  box-shadow: 0 5px 0 rgba(59,21,0,.55), 0 16px 34px rgba(25,10,0,.34) !important;
}
#craftPanel .craft-shell,
#shopPanel .craft-shell,
#buildPanel .craft-shell,
#craftPanel .craft-list-wrap,
#shopPanel .craft-list-wrap,
#buildPanel .craft-list-wrap,
#craftPanel .craft-list,
#shopPanel .craft-list,
#buildPanel .craft-list {
  background: var(--ah-catalog-deep) !important;
  background-image: none !important;
  border-color: var(--ah-catalog-outline) !important;
}
#craftPanel .craft-category-tab,
#shopPanel .craft-category-tab,
#buildPanel .craft-category-tab {
  background: var(--ah-catalog-deep) !important;
  background-image: none !important;
  border-color: var(--ah-catalog-outline) !important;
  color: var(--ah-catalog-copy) !important;
}
#craftPanel .craft-category-tab.active,
#craftPanel .craft-category-tab:hover,
#shopPanel .craft-category-tab.active,
#shopPanel .craft-category-tab:hover,
#buildPanel .craft-category-tab.active,
#buildPanel .craft-category-tab:hover {
  background: var(--ah-catalog-active) !important;
  border-color: var(--ah-catalog-gold) !important;
  color: #fff8e4 !important;
}
#craftPanel .craft-category-icon,
#shopPanel .craft-category-icon,
#buildPanel .craft-category-icon {
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}
#craftPanel .craft-list-item,
#shopPanel .craft-list-item,
#buildPanel .craft-list-item {
  background: var(--ah-catalog-row) !important;
  background-image: none !important;
  border-color: var(--ah-catalog-outline) !important;
  color: var(--ah-catalog-copy) !important;
}
#craftPanel .craft-list-item:hover,
#craftPanel .craft-list-item.selected,
#shopPanel .craft-list-item:hover,
#shopPanel .craft-list-item.selected,
#buildPanel .craft-list-item:hover,
#buildPanel .craft-list-item.selected {
  background: var(--ah-catalog-active) !important;
  border-color: var(--ah-catalog-gold) !important;
}
#craftPanel .craft-recipe-box,
#craftPanel .craft-loot-summary-v492,
#buildPanel .craft-recipe-box,
#buildPanel .craft-loot-summary-v492,
#shopPanel .craft-recipe-box,
#shopPanel .craft-loot-summary-v492,
#craftPanel .craft-quantity-box,
#buildPanel .craft-quantity-box,
#shopPanel .craft-quantity-box {
  background: var(--ah-catalog-row) !important;
  background-image: none !important;
  border-color: var(--ah-catalog-outline) !important;
  color: var(--ah-catalog-copy) !important;
}
#craftPanel .craft-create-button,
#shopPanel .craft-create-button,
#buildPanel .craft-create-button {
  background: var(--ah-catalog-gold) !important;
  background-image: none !important;
  border: 2px solid var(--ah-catalog-outline) !important;
  color: #542000 !important;
  text-shadow: none !important;
  box-shadow: 0 3px 0 rgba(59,21,0,.7) !important;
}
#craftPanel .craft-create-button:hover:not(:disabled),
#shopPanel .craft-create-button:hover:not(:disabled),
#buildPanel .craft-create-button:hover:not(:disabled) {
  background: #ffdc62 !important;
  filter: none !important;
}
#craftPanel .craft-create-button:disabled,
#shopPanel .craft-create-button:disabled,
#buildPanel .craft-create-button:disabled {
  background: #71512c !important;
  color: #e5d0aa !important;
  opacity: .78 !important;
}
#craftPanel .floating-close,
#shopPanel .floating-close,
#buildPanel .floating-close {
  background: var(--ah-catalog-active) !important;
  background-image: none !important;
  border: 2px solid var(--ah-catalog-outline) !important;
  color: #fff4d4 !important;
  box-shadow: 0 2px 0 rgba(59,21,0,.65) !important;
}
#craftPanel .craft-list-title,
#shopPanel .craft-list-title,
#buildPanel .craft-list-title,
#craftPanel .craft-detail-title,
#shopPanel .craft-detail-title,
#buildPanel .craft-detail-title {
  color: var(--ah-catalog-copy) !important;
}
#shopPanel .panel-balance { color: var(--ah-catalog-gold) !important; }

#bestiaryPanel.bestiary-panel-v712 {
  box-sizing: border-box !important;
  z-index: 5200 !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate(-50%, -50%) !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(820px, calc(100vw - 26px)) !important;
  height: min(560px, calc(100dvh - 30px)) !important;
  min-height: 360px;
  padding: 17px 20px 18px !important;
  overflow: hidden !important;
  background: var(--ah-catalog-orange) !important;
  background-image: none !important;
  border: 3px solid var(--ah-catalog-outline) !important;
  border-radius: 10px !important;
  color: var(--ah-catalog-copy) !important;
  box-shadow: 0 5px 0 rgba(59,21,0,.55), 0 16px 34px rgba(25,10,0,.34) !important;
  font-family: var(--font-main, Arial, sans-serif) !important;
  text-shadow: none !important;
}
#bestiaryPanel.bestiary-panel-v712.hidden { display: none !important; }
#bestiaryPanel > .floating-close { right: 12px !important; top: 12px !important; z-index: 4 !important; }
.bestiary-header-v712 { display:flex; align-items:center; justify-content:space-between; gap:50px; min-height:46px; padding:0 42px 9px 2px; border-bottom:1px solid rgba(59,21,0,.6); }
.bestiary-header-v712 h2 { margin:0; color:#fff8e4; font-size:24px; line-height:1.15; font-weight:900; }
.bestiary-header-v712 p { margin:4px 0 0; color:#ffe4b2; font-size:12px; }
.bestiary-count-v712 { flex:0 0 auto; padding:6px 10px; border:1px solid var(--ah-catalog-outline); border-radius:6px; background:var(--ah-catalog-deep); color:#ffe3a1; font-size:12px; font-weight:800; }
.bestiary-toolbar-v712 { display:flex; flex-direction:column; gap:9px; }
.bestiary-search-v712 { box-sizing:border-box; display:flex; align-items:center; gap:8px; height:38px; padding:0 11px; border:2px solid var(--ah-catalog-outline); border-radius:6px; background:var(--ah-catalog-deep); color:#ffca64; }
.bestiary-search-v712 > span { font-size:23px; line-height:1; font-weight:700; }
.bestiary-search-v712 input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:#fff5dc; font:inherit; font-size:14px; }
.bestiary-search-v712 input::placeholder { color:#dfb784; opacity:1; }
.bestiary-search-v712 input::-webkit-search-cancel-button { cursor:pointer; }
.bestiary-category-tabs-v712 { display:flex; gap:6px; overflow-x:auto; scrollbar-width:thin; scrollbar-color:#ffcc33 #5b2100; }
.bestiary-category-v712 { flex:0 0 auto; display:flex; align-items:center; gap:7px; min-height:31px; padding:4px 9px; border:1px solid var(--ah-catalog-outline); border-radius:5px; background:var(--ah-catalog-deep); color:#ffe9bf; font:inherit; font-size:12px; font-weight:800; cursor:pointer; }
.bestiary-category-v712:hover,.bestiary-category-v712.active { background:var(--ah-catalog-active); border-color:var(--ah-catalog-gold); color:#fff9e7; }
.bestiary-category-count-v712 { display:grid; place-items:center; min-width:17px; height:17px; padding:0 3px; border-radius:9px; background:rgba(0,0,0,.28); font-size:10px; }
.bestiary-layout-v712 { display:grid; grid-template-columns:minmax(230px,.88fr) minmax(0,1.35fr); gap:11px; flex:1 1 auto; min-height:0; }
.bestiary-list-v712 { display:flex; flex-direction:column; gap:5px; min-height:0; padding:7px; overflow-y:auto; border:1px solid var(--ah-catalog-outline); border-radius:7px; background:var(--ah-catalog-deep); scrollbar-width:thin; scrollbar-color:#ffcc33 #5b2100; }
.bestiary-entry-v712 { box-sizing:border-box; display:grid; grid-template-columns:37px minmax(0,1fr) auto; align-items:center; gap:8px; width:100%; min-height:49px; padding:5px 7px; border:1px solid rgba(59,21,0,.9); border-radius:5px; background:var(--ah-catalog-row); color:#fff3d0; text-align:left; font:inherit; cursor:pointer; }
.bestiary-entry-v712:hover,.bestiary-entry-v712.selected { background:var(--ah-catalog-active); border-color:var(--ah-catalog-gold); }
.bestiary-entry-icon-v712 { display:grid; place-items:center; width:34px; height:34px; border-radius:5px; background:#562400; font-size:23px; }
.bestiary-entry-copy-v712 { display:flex; min-width:0; flex-direction:column; gap:3px; }
.bestiary-entry-copy-v712 b { overflow:hidden; color:#fff9e9; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.bestiary-entry-copy-v712 small { color:#f3cf99; font-size:10px; }
.bestiary-entry-health-v712 { color:#ffe2a5; font-size:10px; font-weight:900; white-space:nowrap; }
.bestiary-empty-list-v712,.bestiary-empty-v712 { display:grid; place-items:center; min-height:100%; padding:18px; color:#ffe2b2; font-size:13px; line-height:1.45; text-align:center; }
.bestiary-detail-v712 { min-width:0; min-height:0; padding:13px; overflow-y:auto; border:1px solid var(--ah-catalog-outline); border-radius:7px; background:var(--ah-catalog-deep); scrollbar-width:thin; scrollbar-color:#ffcc33 #5b2100; }
.bestiary-hero-v712 { display:flex; align-items:center; gap:11px; min-height:64px; padding:0 0 11px; border-bottom:1px solid rgba(255,204,51,.26); }
.bestiary-hero-icon-v712 { display:grid; place-items:center; flex:0 0 54px; width:54px; height:54px; border:2px solid #3b1500; border-radius:8px; background:linear-gradient(#ffcf62,#a74708); font-size:34px; }
.bestiary-hero-copy-v712 { min-width:0; flex:1 1 auto; }
.bestiary-kicker-v712 { display:block; margin-bottom:3px; color:#ffc75e; font-size:11px; font-weight:800; }
.bestiary-name-v712 { margin:0; overflow-wrap:anywhere; color:#fff8e4; font-size:21px; line-height:1.15; }
.bestiary-rank-v712 { flex:0 0 auto; padding:5px 7px; border:1px solid #b06415; border-radius:5px; background:#7a2c00; color:#ffdf88; font-size:11px; font-weight:900; }
.bestiary-stats-v712 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; padding:11px 0 3px; }
.bestiary-stat-v712 { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:36px; padding:6px 8px; border:1px solid rgba(255,204,51,.24); border-radius:5px; background:#71300b; }
.bestiary-stat-v712 span { color:#e8c698; font-size:11px; }
.bestiary-stat-v712 b { color:#fff2ca; font-size:13px; }
.bestiary-section-v712 { margin-top:12px; }
.bestiary-section-v712 h4 { margin:0 0 7px; color:#ffcb60; font-size:13px; }
.bestiary-facts-v712 { display:grid; gap:5px; margin:0; padding-left:18px; color:#f1dab7; font-size:12px; line-height:1.35; }
.bestiary-loot-v712 { display:flex; flex-wrap:wrap; gap:6px; }
.bestiary-loot-chip-v712 { display:flex; align-items:center; gap:7px; max-width:100%; padding:5px 8px; border:1px solid rgba(255,204,51,.3); border-radius:5px; background:#7a2c00; color:#fff2cd; font-size:11px; }
.bestiary-loot-chip-v712 b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bestiary-loot-chip-v712 span { color:#ffcf62; font-weight:900; white-space:nowrap; }
.bestiary-no-loot-v712,.bestiary-data-note-v712 { color:#d8b88d; font-size:11px; line-height:1.4; }
.bestiary-data-note-v712 { margin:12px 0 0; padding-top:8px; border-top:1px solid rgba(255,204,51,.18); }
@media (max-width:640px) {
  #bestiaryPanel.bestiary-panel-v712 { inset:8px !important; left:8px !important; top:8px !important; width:auto !important; height:auto !important; min-height:0; transform:none !important; padding:13px !important; gap:9px; }
  .bestiary-header-v712 h2 { font-size:20px; }
  .bestiary-header-v712 p { max-width:220px; font-size:10px; }
  .bestiary-header-v712 { gap:8px; }
  .bestiary-count-v712 { padding:5px 6px; font-size:10px; }
  .bestiary-layout-v712 { grid-template-columns:1fr; grid-template-rows:minmax(115px,.75fr) minmax(0,1.25fr); }
  .bestiary-list-v712 { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); align-content:start; }
  .bestiary-entry-v712 { grid-template-columns:30px minmax(0,1fr); min-height:45px; gap:5px; padding:4px; }
  .bestiary-entry-icon-v712 { width:28px; height:28px; font-size:19px; }
  .bestiary-entry-health-v712 { display:none; }
  .bestiary-detail-v712 { padding:9px; }
}
@media (max-height:430px) and (min-width:641px) {
  #bestiaryPanel.bestiary-panel-v712 { height:calc(100dvh - 16px) !important; padding:10px 14px !important; gap:7px; }
  .bestiary-toolbar-v712 { gap:6px; }
  .bestiary-entry-v712 { min-height:40px; }
  .bestiary-hero-v712 { min-height:50px; }
}

#bestiaryPanel .floating-close {
  background: var(--ah-catalog-active) !important;
  background-image: none !important;
  border: 2px solid var(--ah-catalog-outline) !important;
  color: #fff4d4 !important;
  box-shadow: 0 2px 0 rgba(59,21,0,.65) !important;
}
#bestiaryPanel .floating-close:hover {
  background: #c75b0c !important;
}
@media (max-height:430px) and (min-width:641px) {
  #bestiaryPanel.bestiary-panel-v712 { min-height:0 !important; }
}

/* Keep the game utility buttons together beside the minimap. */
#minimapTools.minimap-tools { width: 318px !important; }
#minimapTools .minimap-tool-tabs {
  display: grid !important;
  grid-template-columns: repeat(5, 58px) !important;
  gap: 7px !important;
}
@media (max-width: 900px) {
  #minimapTools.minimap-tools { width: 269px !important; }
  #minimapTools .minimap-tool-tabs { grid-template-columns: repeat(5, 49px) !important; gap: 6px !important; }
}
@media (max-width: 520px) {
  #minimapTools.minimap-tools { width: min(269px, calc(100vw - 16px)) !important; }
}

/* Match the utility buttons to the dark, black-outlined side dock. */
#minimapTools .minimap-tool-tab,
#minimapTools .minimap-tool-tab.danger {
  position: relative !important;
  overflow: hidden !important;
  border: 2px solid #000 !important;
  border-radius: 8px !important;
  background: #333c50 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #f4f6f8 !important;
  filter: none !important;
  transform: none !important;
}
#minimapTools .minimap-tool-tab::before {
  content: '' !important;
  position: absolute !important;
  z-index: 0 !important;
  inset: auto 0 0 !important;
  height: 4px !important;
  border: 0 !important;
  border-radius: 0 0 6px 6px !important;
  background: #262c3c !important;
  pointer-events: none !important;
}
#minimapTools .minimap-tool-tab img {
  position: relative !important;
  z-index: 1 !important;
  width: 78% !important;
  height: 78% !important;
  transform: none !important;
  filter: none !important;
}
#minimapTools .minimap-tool-tab:hover:not(.active) {
  border-color: #000 !important;
  background: #3e4759 !important;
  box-shadow: none !important;
  filter: none !important;
}
#minimapTools .minimap-tool-tab.active,
#minimapTools .minimap-tool-tab.active:hover {
  border-color: #000 !important;
  background: #1687ad !important;
  box-shadow: none !important;
}
#minimapTools .minimap-tool-tab.active::before { background: #086384 !important; }
#minimapTools .minimap-tool-tab:focus-visible {
  outline: 2px solid #e8f8ff !important;
  outline-offset: -3px !important;
}
