@font-face {
  font-family: "Pixelify Sans";
  src: url("/_assets/b88d45443fa2dbfe501f/fonts/pixelify-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/_assets/b88d45443fa2dbfe501f/fonts/barlow-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/_assets/b88d45443fa2dbfe501f/fonts/barlow-600-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/_assets/b88d45443fa2dbfe501f/fonts/barlow-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Barlow";
  src: url("/_assets/b88d45443fa2dbfe501f/fonts/barlow-900-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  font-family: var(--ui-font-body);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #332018;
}
button {
  font: inherit;
  cursor: pointer;
}
button:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 2px;
}
.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: none;
  vertical-align: -0.125em;
  background: currentColor;
  -webkit-mask: var(--ui-icon) center / contain no-repeat;
  mask: var(--ui-icon) center / contain no-repeat;
}
.icon-diamond {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/diamond.svg");
}
.icon-swords {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/swords.svg");
}
.icon-backpack {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/backpack.svg");
}
.icon-book-open {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/book-open.svg");
}
.icon-zoom-in {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/zoom-in.svg");
}
.icon-zoom-out {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/zoom-out.svg");
}
.icon-compass {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/compass.svg");
}
.icon-cross {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/cross.svg");
}
.icon-pause {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/pause.svg");
}
.icon-play {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/play.svg");
}
.icon-arrow-right {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/arrow-right.svg");
}
.icon-crosshair {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/crosshair.svg");
}
.icon-x {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/x.svg");
}
.icon-lock {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/lock.svg");
}
.icon-lock-open {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/lock-open.svg");
}
.icon-package {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/package.svg");
}
.icon-circle-help {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/circle-help.svg");
}
.icon-bug {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/bug.svg");
}
.icon-feather {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/feather.svg");
}
.icon-trainer {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/trainer.svg");
}
.icon-chevron-down {
  --ui-icon: url("/_assets/b88d45443fa2dbfe501f/icons/chevron-down.svg");
}
[hidden] {
  display: none !important;
}
#world {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.world-shade {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      #050604a8 0,
      transparent 12%,
      transparent 75%,
      #0c0d0bbb 100%
    ),
    radial-gradient(circle at 50% 44%, transparent 36%, #15100a52 100%);
}
.center-mode .world-shade {
  background: linear-gradient(
    180deg,
    #06171c5c,
    transparent 15%,
    transparent 80%,
    #0b161b92
  );
}
.game-panel {
  border: 1px solid var(--ui-color-border-subtle);
  background: linear-gradient(
    145deg,
    var(--ui-color-surface-raised),
    var(--ui-color-surface)
  );
  box-shadow:
    0 0 0 2px #090a09a6,
    inset 0 0 0 1px #f2d58124,
    0 6px 18px #09080773;
  backdrop-filter: blur(3px);
}
.topbar {
  height: 51px;
  position: fixed;
  left: 8px;
  right: 8px;
  top: 7px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 13px;
  background: linear-gradient(
    180deg,
    var(--ui-color-surface-raised),
    var(--ui-color-surface)
  );
}
.brand {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #eee3c3;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-shadow: 0 1px 3px #000;
}
.brand b {
  font-size: 14px;
  color: var(--gold2);
  font-weight: 700;
}
.brand-mark {
  font-size: 28px;
  color: #e9b94d;
  line-height: 1;
  filter: drop-shadow(0 0 5px #f7ce6b99);
}
.top-actions {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
}
.nav-button {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ui-color-text-muted);
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.nav-button:not(:disabled):hover,
.nav-button.active {
  color: var(--ui-color-accent-strong);
  border-color: var(--ui-color-border);
  background: color-mix(in srgb, var(--ui-color-accent), transparent 86%);
}
.nav-button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.nav-icon {
  font-size: 17px;
  font-weight: 400;
  color: var(--ui-color-accent);
}
#nav-hunt-label {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hunt-menu {
  min-width: 0;
  color: var(--ui-color-text);
}
.hunt-menu[hidden] {
  display: none;
}
.hunt-menu-head {
  display: flex;
  align-items: center;
  padding-top: var(--ui-space-3);
}
.hunt-menu-search,
.hunt-menu-count {
  color: #cbae72;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
#hunt-menu-level {
  color: #a9cdaa;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}
.hunt-menu-search {
  display: grid;
  gap: 5px;
  margin-top: 11px;
}
.hunt-menu-search input {
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #80673b;
  background: #111713;
  color: #f4ecd6;
  font: 700 11px var(--font-ui);
}
.hunt-menu-search input::placeholder {
  color: #827f6e;
}
.hunt-menu-search input:focus-visible {
  outline: 2px solid var(--gold2);
}
.hunt-menu-tabs {
  display: flex;
  gap: 3px;
  margin: 11px 0 8px;
  border-bottom: 1px solid #67573785;
}
.hunt-menu-tabs button {
  padding: 6px 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #ada88f;
  font-size: 10px;
  font-weight: 800;
}
.hunt-menu-tabs button:hover,
.hunt-menu-tabs button.selected {
  color: #f2da9b;
  background: #d8af5421;
  border-bottom-color: #d7b260;
}
.hunt-menu-count {
  margin: 2px 0 7px;
}
.hunt-list {
  display: grid;
  gap: 5px;
  padding-right: 2px;
}
.hunt-destination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 31px;
  border: 1px solid #716b518c;
  background: #191c19;
}
.hunt-destination[data-active="true"] {
  border-color: #83ba77;
  background: linear-gradient(90deg, #263e2b, #19241d);
  box-shadow: inset 3px 0 #89cf82;
}
.hunt-destination[data-locked="true"] {
  background: #171918;
}
.hunt-destination[data-selected="true"] {
  border-color: var(--ui-color-accent-strong);
  box-shadow: inset 3px 0 var(--ui-color-accent);
}
.hunt-destination-visit {
  min-width: 0;
  min-height: 59px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #eee8d4;
  text-align: left;
}
.hunt-destination-visit:hover {
  background: #d0aa4e1b;
}
.hunt-destination-visit:focus-visible,
.hunt-favorite:focus-visible,
.hunt-type-chip:focus-visible {
  outline: var(--ui-focus-width) solid var(--ui-color-focus);
  outline-offset: -3px;
}
.hunt-destination-icon {
  width: 39px;
  height: 39px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #857044;
  background: #29342b;
  color: #bca06e;
  font-size: 22px;
}
.hunt-destination-icon :is(img, canvas) {
  width: 37px;
  height: 37px;
  object-fit: contain;
  image-rendering: pixelated;
}
.hunt-destination-detail {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
}
.hunt-destination-detail strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.hunt-destination-detail small {
  color: #b4ae95;
  font-size: 9px;
  line-height: 1.3;
}
.hunt-destination-encounters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.hunt-destination-level {
  flex: none;
}
.hunt-destination-encounter {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
}
.hunt-destination-encounter :is(img, canvas) {
  width: 17px;
  height: 17px;
  object-fit: contain;
  image-rendering: pixelated;
}
.hunt-destination-badge {
  padding: 4px 5px;
  border: 1px solid #846e3a;
  color: #e4c777;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}
.hunt-destination[data-active="true"] .hunt-destination-badge {
  border-color: #5c9462;
  color: #a9e8a4;
}
.hunt-destination[data-locked="true"] .hunt-destination-badge {
  border-color: #56584e;
  color: #92958a;
}
.hunt-destination:is([data-action="enter"], [data-action="leave"]) {
  grid-template-columns: minmax(0, 1fr) auto 31px;
}
.hunt-destination-action {
  align-self: center;
  min-height: 28px;
  margin-right: 8px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.hunt-destination-action .ui-icon {
  width: 12px;
  height: 12px;
  font-size: 12px;
}
.hunt-favorite {
  border: 0;
  border-left: 1px solid #655b41;
  background: transparent;
  color: #999380;
  font-size: 20px;
}
.hunt-favorite:hover,
.hunt-favorite[aria-pressed="true"] {
  color: #edc76b;
}
.hunt-list-empty {
  margin: 0;
  padding: 18px 8px;
  color: #aaa994;
  font-size: 11px;
  text-align: center;
}
.hunt-destination-expanded {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 42%);
  gap: var(--ui-space-3);
  padding: var(--ui-space-3);
  border-top: 1px solid var(--ui-color-border-subtle);
  background: #111813;
  color: var(--ui-color-text);
  font-size: 10px;
}
.hunt-destination-map {
  position: relative;
  display: block;
  align-self: start;
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--ui-color-border-subtle);
  background: var(--ui-color-background);
  cursor: zoom-in;
  text-align: left;
}
.hunt-destination-map:hover,
.hunt-destination-map:focus-visible {
  border-color: var(--ui-color-accent);
}
.hunt-destination-map img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  image-rendering: pixelated;
}
.hunt-map-tooltip {
  position: absolute;
  right: 6px;
  bottom: 6px;
  padding: 5px 7px;
  border: 1px solid var(--ui-color-accent);
  background: #101711ed;
  color: var(--ui-color-text);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.05em;
  opacity: 0;
  transform: translateY(3px);
  transition:
    opacity 120ms ease,
    transform 120ms ease;
  pointer-events: none;
}
.hunt-destination-map:hover .hunt-map-tooltip,
.hunt-destination-map:focus-visible .hunt-map-tooltip {
  opacity: 1;
  transform: translateY(0);
}
.hunt-map-overlay {
  position: fixed;
  z-index: 55;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 12px;
  background: #080d0bdc;
  backdrop-filter: blur(3px);
}
.hunt-map-overlay[hidden] {
  display: none;
}
.hunt-map-dialog {
  width: min(1080px, 100%);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: clamp(12px, 2vw, 20px);
  border: 1px solid var(--ui-color-accent);
  background: #151c17;
  box-shadow: 0 18px 56px #000b;
  color: var(--ui-color-text);
}
.hunt-map-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 9px;
  border-bottom: 1px solid var(--ui-color-border-subtle);
}
.hunt-map-kicker {
  color: var(--ui-color-accent);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.hunt-map-dialog h2 {
  margin: 3px 0 0;
  font: 700 clamp(19px, 3vw, 26px) var(--ui-font-display);
}
#hunt-map-close {
  flex: none;
  width: 31px;
  height: 31px;
  border: 1px solid var(--ui-color-border-subtle);
  border-radius: 0;
  background: #222820;
  color: var(--ui-color-text);
  font-size: 23px;
  line-height: 1;
}
#hunt-map-close:hover {
  border-color: var(--ui-color-accent);
}
.hunt-map-description {
  margin: 10px 0;
  color: var(--ui-color-text-muted);
  font-size: 11px;
  line-height: 1.4;
}
.hunt-map-status {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #101711;
  text-align: center;
  color: var(--ui-color-text-muted);
  font-size: 12px;
}
.hunt-map-status[hidden] {
  display: none;
}
.hunt-map-stage {
  position: relative;
  width: min(100%, calc((100dvh - 210px) * var(--hunt-map-aspect, 1)));
  aspect-ratio: var(--hunt-map-aspect, 1);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid var(--ui-color-border-subtle);
  background: #101711;
}
#hunt-map-image {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.hunt-map-annotations,
.hunt-map-annotations svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hunt-map-route {
  fill: none;
  stroke: #f3d675;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 5;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 1px 2px #10150e) drop-shadow(0 0 2px #10150e);
}
.hunt-map-entry,
.hunt-map-spawn,
.hunt-map-portal {
  position: absolute;
  z-index: 1;
  display: block;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 2px #10150e,
    0 0 5px #10150e;
}
.hunt-map-entry {
  width: 13px;
  height: 13px;
  border: 2px solid #fff0bd;
  background: #358c61;
  transform: translate(-50%, -50%) rotate(45deg);
}
.hunt-map-portal {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #72d7e9;
  color: #10282f;
  text-align: center;
  font: bold 11px/16px sans-serif;
}
.hunt-map-spawn {
  width: 9px;
  height: 9px;
  border: 1px solid #10150e;
  border-radius: 50%;
}
.hunt-map-spawn-solo {
  background: #e6ce70;
}
.hunt-map-spawn-duo {
  background: #7ccef0;
}
.hunt-map-spawn-trio {
  background: #ee8e8a;
}
.hunt-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding-top: 12px;
  color: var(--ui-color-text-muted);
  font-size: 10px;
}
.hunt-map-legend > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hunt-map-legend i {
  display: inline-block;
  flex: none;
}
.hunt-map-legend-entry {
  width: 10px;
  height: 10px;
  border: 2px solid #fff0bd;
  background: #358c61;
  transform: rotate(45deg);
}
.hunt-map-legend-route {
  width: 20px;
  border-top: 2px dashed #f3d675;
}
.hunt-map-legend-spawn {
  width: 9px;
  height: 9px;
  border: 1px solid #10150e;
  border-radius: 50%;
}
@media (max-width: 650px) {
  .hunt-map-overlay {
    padding: 6px;
  }
  .hunt-map-dialog {
    max-height: calc(100dvh - 12px);
  }
  .hunt-map-description {
    font-size: 10px;
  }
}
.hunt-destination-overview {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}
.hunt-destination-description {
  margin: 0 0 3px;
  color: var(--ui-color-text);
  line-height: 1.35;
}
.hunt-detail-heading {
  color: var(--ui-color-accent);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.hunt-destination-types,
.hunt-destination-drops {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.hunt-type-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 5px;
  border: 1px solid var(--hunt-type-color);
  background: color-mix(in srgb, var(--hunt-type-color), transparent 74%);
  color: var(--ui-color-text);
  font-size: 9px;
  font-weight: 800;
  cursor: help;
}
.hunt-type-tooltip {
  position: absolute;
  z-index: 5;
  top: calc(100% + 5px);
  left: 0;
  width: max-content;
  max-width: min(190px, calc(100vw - 40px));
  padding: 5px 7px;
  border: 1px solid var(--ui-color-border);
  background: var(--ui-color-background);
  color: var(--ui-color-text);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
  white-space: normal;
  box-shadow: 0 4px 12px #000b;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.hunt-type-tooltip {
  display: grid;
  gap: 3px;
  max-width: min(230px, calc(100vw - 40px));
}
.hunt-type-tooltip strong {
  color: var(--ui-color-accent);
}
.hunt-type-tooltip b {
  color: var(--ui-color-text-muted);
  font-weight: 800;
}
.hunt-type-chip:hover .hunt-type-tooltip,
.hunt-type-chip:focus-visible .hunt-type-tooltip {
  opacity: 1;
  visibility: visible;
}
.hunt-drop {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 22px;
  padding: 2px 5px;
  border: 1px solid var(--ui-color-border-subtle);
  background: var(--ui-color-surface-raised);
  color: var(--ui-color-text-muted);
  font-size: 9px;
}
.hunt-drop img {
  width: 17px;
  height: 17px;
  object-fit: contain;
  image-rendering: pixelated;
}
.hunt-destination-drops > small {
  color: var(--ui-color-text-muted);
  font-size: 9px;
}
.top-right {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 900;
  color: #ccb98a;
  white-space: nowrap;
}
.zoom-button {
  width: 25px;
  height: 25px;
  padding: 0;
  display: grid;
  place-items: center;
  background: #161a16;
  border: 1px solid #705c35;
  color: #e9d59e;
  font-size: 16px;
}
.zoom-button:hover {
  background: #393324;
}
.party {
  position: fixed;
  z-index: 5;
  top: 69px;
  left: 9px;
  width: 206px;
  padding: 8px 9px 9px;
}
.hunt-header {
  position: fixed;
  z-index: 5;
  top: 69px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: min(500px, calc(100vw - 576px));
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 11px;
  color: #e9ddbe;
}
.hunt-header-mark {
  flex: none;
  margin-top: 6px;
  color: #e6bf67;
  font-size: 23px;
}
.hunt-header-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}
.hunt-header-copy small {
  padding-right: 60px;
  color: #c8ad72;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.hunt-header-copy > strong {
  overflow: hidden;
  padding-right: 60px;
  color: #f2e7c7;
  font: 700 16px/1.1 var(--font-display);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hunt-header-encounters {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 5px;
  color: #c9d0b5;
  font-size: 10px;
  line-height: 1.35;
}
.hunt-header-encounter {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 4px;
  border: 1px solid #6e6546;
  border-radius: 3px;
  background: #172019dc;
}
.hunt-header-encounters span {
  white-space: nowrap;
}
.hunt-header-encounters strong {
  color: #f2d688;
  font-weight: 900;
}
.hunt-header-state {
  position: absolute;
  top: 9px;
  right: 11px;
  padding: 3px 5px;
  border: 1px solid #8b7547;
  color: #ead08b;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.panel-kicker {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1px 3px 7px;
  color: #d6b779;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  border-bottom: 1px solid #aa7a3370;
}
.panel-kicker span:last-child {
  color: #a2a18b;
}
.party-members {
  display: grid;
  gap: 4px;
  margin-top: 7px;
}
.member {
  width: 100%;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 1px solid #7a632f74;
  background: #101613d9;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.member:hover {
  border-color: #b69a5e;
  background: #243027;
}
.member:focus-visible {
  outline: 2px solid #f1d991;
  outline-offset: 2px;
}
.member-portrait {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid #84723e;
  background: #28372b;
  image-rendering: pixelated;
  overflow: hidden;
}
.member-portrait img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
}
.member-info {
  min-width: 0;
  flex: 1;
}
.member-name {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  color: #f2edda;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.member-name span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-name small {
  font-size: 8px;
  color: #e8bd65;
  white-space: nowrap;
}
/* A fainted member stays listed, greyed like its hotbar group, with its name
   and a DESMAIADO tag in the danger color so it reads as needing a heal. */
.member[data-fainted="true"] .member-portrait > * {
  filter: grayscale(1);
  opacity: 0.65;
}
.member[data-fainted="true"] .member-name,
.member[data-fainted="true"] .member-name small {
  color: var(--ui-color-danger);
}
.member-hp,
.member-xp {
  height: 5px;
  margin-top: 5px;
  background: #252a25;
  border: 1px solid #49513c;
}
.member-hp i,
.member-xp i,
.xp-track i,
.target-hp i {
  display: block;
  height: 100%;
  width: 0;
  background: #6bc978;
}
.member-xp {
  height: 3px;
  margin-top: 3px;
}
.member-xp i,
.xp-track i {
  background: #65a9d7;
}
.trainer-line {
  display: flex;
  justify-content: space-between;
  margin: 8px 2px 4px;
  color: #bfae84;
  font-size: 8px;
  letter-spacing: 0.11em;
  font-weight: 900;
}
.trainer-line strong {
  color: #e6d5a8;
  font-size: 9px;
}
.xp-track {
  height: 4px;
  background: #242b28;
  border: 1px solid #47524c;
}
.report-target small {
  font-size: 8px;
  letter-spacing: 0.12em;
  color: #ad9e7b;
  font-weight: 800;
}
.hunt-report {
  position: fixed;
  z-index: 5;
  top: 69px;
  right: 9px;
  width: 255px;
  padding: 9px 10px 10px;
}
.center-mode .hunt-report {
  display: none;
}
.center-faint-notice {
  position: fixed;
  z-index: 7;
  top: 123px;
  left: 50%;
  transform: translateX(-50%);
  width: min(430px, calc(100vw - 24px));
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-color: #db786b;
  background: linear-gradient(125deg, #382022f2, #17191be9);
  color: #fff0e8;
  text-align: center;
  box-shadow:
    0 0 0 2px #0c0b0c,
    0 7px 22px #000a;
}
.center-faint-notice strong {
  font-size: 12px;
  letter-spacing: 0.04em;
}
.center-faint-notice span {
  font-size: 10px;
  line-height: 1.4;
}
.report-top,
.loot-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  font-weight: 900;
  color: #d5b574;
  letter-spacing: 0.1em;
}
.report-top strong {
  font-size: 10px;
  color: #f1e2be;
  font-variant-numeric: tabular-nums;
}
.report-target {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 10px;
}
.report-target div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}
.report-target strong {
  font-size: 13px;
  color: #f4ead3;
}
.report-target > span:last-child {
  font-size: 9px;
  color: #e6c079;
  font-weight: 900;
}
.target-emblem {
  width: 34px;
  height: 34px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #a17a3d;
  color: #dbb578;
  background: #253027;
}
.target-emblem img {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  image-rendering: pixelated;
}
.target-emblem .ui-icon {
  width: 17px;
  height: 17px;
}
.target-hp {
  height: 7px;
  background: #292623;
  border: 1px solid #634b3b;
  margin: 7px 0 10px;
}
.target-hp i {
  background: linear-gradient(90deg, #b5524f, #e97c6d);
}
.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.report-stats div {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  background: #0e1210ad;
  border: 1px solid #6a56345c;
  text-align: center;
}
.report-stats small {
  font-size: 7px;
  color: #aa9c7c;
  letter-spacing: 0.05em;
  font-weight: 900;
}
.report-stats strong {
  font-size: 17px;
  color: #f2e9ce;
  font-variant-numeric: tabular-nums;
}
.report-divider {
  height: 1px;
  background: #89662c78;
  margin: 9px 0;
}
.loot-heading button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 0;
  background: transparent;
  color: #cfad6d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.05em;
}
.loot-heading button .ui-icon {
  width: 10px;
  height: 10px;
}
.loot-heading button:hover {
  color: #ffe3a3;
}
.hunt-drops {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid #d6aa6070;
}
.drops-source-note {
  margin: 6px 0 0;
  color: #b9a780;
  font-size: 9px;
  line-height: 1.3;
}
.loot-list {
  list-style: none;
  margin: 7px 0 0;
  padding: 0;
  max-height: min(180px, 25vh);
  overflow: auto;
  scrollbar-width: thin;
}
.loot-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  padding: 5px 0;
  border-top: 1px solid #7363423d;
  font-size: 9px;
  color: #d7d1bc;
}
.loot-list li.muted {
  color: #8e8978;
  font-style: italic;
}
.loot-list img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}
.loot-item-name {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.loot-item-name strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 800;
}
.loot-item-name small {
  color: #a99b7a;
  font-size: 8px;
}
.event-log {
  position: fixed;
  z-index: 5;
  left: 9px;
  bottom: 9px;
  width: 310px;
  max-height: 197px;
  padding: 0 9px 7px;
  display: flex;
  flex-direction: column;
}
.log-tabs {
  height: 31px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-bottom: 1px solid #7f612f8a;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #8e8976;
}
.log-tabs .selected {
  color: #f0d79b;
}
.log-live {
  margin-left: auto;
  color: #8ecd90 !important;
  font-size: 8px;
}
#event-list {
  list-style: none;
  overflow: auto;
  padding: 0;
  margin: 5px 0 0;
  min-height: 93px;
  color: #e1dcbd;
  font-size: 10px;
  line-height: 1.5;
}
#event-list li {
  padding: 2px 0;
  color: #d7d6c2;
  text-shadow: 0 1px 2px #000;
}
#event-list time {
  color: #b4a369;
  font-size: 9px;
  margin-right: 5px;
}
#event-list .good {
  color: #a6e0a0;
}
#event-list .rare {
  color: #f2d376;
}
.bottom-tools {
  position: fixed;
  z-index: 5;
  bottom: 10px;
  left: var(--hud-skills-center, 50%);
  transform: translateX(-50%);
  display: flex;
  align-items: end;
  gap: 9px;
}
.skills {
  display: flex;
  align-items: flex-end;
  width: var(
    --hud-skills-width,
    min(var(--skill-natural-width, 235px), calc(100vw - 20px))
  );
  max-width: calc(100vw - 16px);
  padding: 3px 0 7px;
  min-height: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scrollbar-color: var(--ui-color-border) transparent;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.skill-group {
  display: flex;
  flex: var(--group-move-count) 1 0;
  flex-direction: column;
  min-width: var(--group-min-width, 90px);
}
.skill-group-divided {
  min-width: calc(var(--group-min-width, 90px) + 9px);
  margin-left: 5px;
  padding-left: 8px;
  border-left: 1px solid #d8ae5c9c;
}
.skill-group-header {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  height: 31px;
  padding-bottom: 3px;
  color: #f2d998;
  text-shadow: 0 1px 2px #000;
}
.skill-group-header canvas {
  display: block;
  flex: none;
  width: 26px;
  height: 26px;
  image-rendering: pixelated;
}
.skill-group-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}
.skill-group-identity strong {
  overflow: hidden;
  font-size: clamp(6px, 0.8vw, 10px);
  font-weight: 900;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.skill-group-identity small {
  color: #d2bf89;
  font-size: clamp(6px, 0.7vw, 8px);
  font-weight: 900;
}
.skill-group-moves {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}
.skill-group-empty {
  align-self: center;
  color: #b6ae8e;
  font-size: 8px;
  font-weight: 900;
}
.skill-group[data-fainted="true"] .skill-group-header {
  filter: grayscale(1);
  opacity: 0.65;
}
.skills-empty {
  min-width: min(235px, calc(100vw - 10px));
  align-self: center;
  color: #b6ae8e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: center;
  text-shadow: 0 1px 3px #000;
}
.skill {
  position: relative;
  width: 0;
  height: auto;
  max-width: min(58px, var(--skill-max, 58px));
  aspect-ratio: 1;
  flex: 1 1 0;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff6de;
}
.skill:focus-visible {
  outline: 2px solid #f8d780;
  outline-offset: 3px;
  border-radius: 10px;
}
.skill-visual {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  image-rendering: pixelated;
}
.skill-visual img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.skill-type-glyph {
  color: var(--move-color);
  font-size: clamp(9px, 2vw, 28px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 0 5px var(--move-color);
}
.skill:hover .skill-visual,
.skill:focus-visible .skill-visual {
  filter: brightness(1.13);
}
.skill[data-locked="true"] .skill-visual {
  filter: grayscale(1) brightness(0.62);
}
.skill-cooldown-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: none;
  background: conic-gradient(
    from -90deg,
    #030809cf 0deg var(--cooldown-angle, 0deg),
    transparent var(--cooldown-angle, 0deg) 360deg
  );
  -webkit-mask-image: var(--skill-icon-mask);
  mask-image: var(--skill-icon-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  pointer-events: none;
}
.skill[data-cooling="true"] .skill-cooldown-shade {
  display: block;
}
.skill-cooldown-count {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: none;
  place-items: center;
  color: #fff6de;
  font-size: clamp(7px, 1.15vw, 14px);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 3px #000,
    1px 0 2px #000;
  pointer-events: none;
}
.skill[data-cooling="true"] .skill-cooldown-count {
  display: grid;
}
.skill-lock {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: clamp(1px, 0.15vw, 2px) clamp(1px, 0.3vw, 4px);
  border: 1px solid #a59b7c;
  background: #151b18f2;
  color: #f4dfad;
  box-shadow: 0 2px 3px #000b;
  font-size: clamp(6px, 0.85vw, 10px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}
.skill[data-locked="false"] .skill-lock {
  display: none;
}
.skill-tooltip {
  position: fixed;
  z-index: 22;
  width: max-content;
  max-width: min(240px, calc(100vw - 16px));
  display: grid;
  gap: 4px;
  padding: 9px 11px;
  color: #e6dfc9;
  pointer-events: none;
}
.skill-tooltip strong {
  color: #f5e5b5;
  font: 700 15px var(--font-display);
}
.skill-tooltip-owner {
  color: #d8b56e;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.skill-tooltip span,
.skill-tooltip em {
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}
.skill-tooltip em {
  color: #a4d4a8;
}
.toast-area {
  --hud-toast-band-width: clamp(200px, calc(100vw - 700px), 500px);
  position: fixed;
  z-index: 20;
  top: var(--hud-toast-top, 69px);
  left: min(50%, calc(100vw - 350px - var(--hud-toast-band-width) / 2));
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: var(--ui-space-2);
  width: min(var(--hud-toast-band-width), calc(100vw - 24px));
  max-width: calc(100vw - 24px);
  max-height: var(
    --hud-toast-max-height,
    calc(100dvh - var(--hud-toast-top, 69px) - 12px)
  );
  padding: 0 3px 3px 0;
  overflow-x: hidden;
  overflow-y: auto;
  pointer-events: none;
}
@media (max-width: 780px) {
  .toast-area {
    left: 50%;
    width: min(500px, calc(100vw - 24px));
  }
}
.modal-backdrop,
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #0b0c0bcc;
  backdrop-filter: blur(3px);
}
.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 20px;
}
#starter-overlay {
  background: color-mix(in srgb, var(--ui-color-background) 80%, transparent);
}
.starter-modal {
  width: min(700px, 100%);
  padding: 25px 30px 18px;
  text-align: center;
  color: var(--ui-color-text);
  background: var(--ui-color-surface-raised);
  border-color: var(--ui-color-border);
}
.starter-modal .modal-overline {
  color: var(--ui-color-accent-strong);
  font-size: 9px;
  letter-spacing: 0.25em;
  font-weight: 900;
}
.starter-modal h1 {
  margin: 8px 0;
  color: var(--ui-color-primary);
  font: 400 clamp(25px, 4vw, 35px) var(--ui-font-display);
}
.starter-modal p {
  max-width: 510px;
  margin: 0 auto 23px;
  color: var(--ui-color-text-muted);
  font-size: 12px;
  line-height: 1.6;
}
.starter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.starter-card {
  border: 1px solid var(--ui-color-border);
  background: var(--ui-color-surface);
  padding: 12px 9px 13px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--ui-color-text);
  min-height: 180px;
  transition:
    transform 0.15s,
    border-color 0.15s,
    background 0.15s;
}
.starter-card:hover {
  transform: translateY(-4px);
  border-color: var(--ui-color-primary);
  background: var(--ui-color-surface-control);
}
.starter-card:focus-visible {
  outline: var(--ui-focus-width) solid var(--ui-color-focus);
  outline-offset: var(--ui-focus-offset);
}
.starter-card:hover em,
.starter-card:focus-visible em {
  border-color: var(--ui-color-action-hover);
  background: var(--ui-color-action-hover);
}
.starter-card img {
  width: 70px;
  height: 70px;
  image-rendering: pixelated;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px #0008);
}
.starter-card strong {
  margin-top: 10px;
  font-size: 14px;
}
.starter-card small {
  margin-top: 4px;
  color: var(--ui-color-text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.starter-card em {
  margin-top: 11px;
  padding: 5px 13px;
  border: 1px solid var(--ui-color-action);
  background: var(--ui-color-action);
  color: var(--ui-color-on-primary);
  font-style: normal;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.starter-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 19px;
  color: var(--ui-color-text-muted);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.starter-foot span {
  color: var(--ui-color-primary);
}
.drawer-backdrop {
  z-index: 39;
  background: color-mix(in srgb, var(--ui-color-background), transparent 48%);
}
.drawer {
  position: fixed;
  z-index: 40;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(calc(390px + var(--ui-nav-rail-size)), 100%);
  display: flex;
  padding: 0;
  visibility: hidden;
  transform: translateX(110%);
  transition: transform 0.22s, visibility 0s linear 0.22s;
  background: transparent;
}
.drawer.open {
  visibility: visible;
  transform: translateX(0);
  transition-delay: 0s;
}
.drawer-panel {
  min-width: 0;
  height: 100%;
  flex: 1;
  overflow: auto;
  padding: var(--ui-space-4);
  scrollbar-color: var(--ui-color-border) var(--ui-color-surface);
}
/* The close button stays in reach while the panel scrolls. The shadow covers
   the panel padding above and beside the stuck header; sticky sections inside
   the panel start below it through --drawer-head-height. */
.drawer-head {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: start;
  padding-bottom: var(--ui-space-4);
  border-bottom: 1px solid var(--ui-color-border);
  background: var(--ui-color-surface-raised);
  box-shadow: 0 -24px 0 24px var(--ui-color-surface-raised);
}
.drawer-head > div {
  min-width: 0;
  flex: 1;
}
.drawer-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ui-space-1) var(--ui-space-4);
}
.drawer-head small {
  font-size: 9px;
  color: var(--ui-color-accent);
  font-weight: 900;
  letter-spacing: 0.18em;
}
.drawer-head h2 {
  margin: 6px 0 0;
  color: var(--ui-color-text);
  font: 700 27px var(--ui-font-display);
}
.drawer-head button {
  flex: none;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ui-color-border);
  background: var(--ui-color-surface-raised);
  color: var(--ui-color-text);
  font-size: 23px;
  line-height: 15px;
}
.drawer-head button .ui-icon {
  width: 16px;
  height: 16px;
}
.drawer-section {
  margin-top: var(--ui-space-4);
}
.drawer-section h3 {
  margin: 0 0 9px;
  color: var(--ui-color-accent);
  font-size: 10px;
  letter-spacing: 0.12em;
}
.drawer-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 0;
  border-top: 1px solid var(--ui-color-border-subtle);
  font-size: 11px;
  color: var(--ui-color-text);
}
.drawer-row img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  image-rendering: pixelated;
}
.drawer-row .row-main {
  flex: 1;
}
.drawer-row small {
  display: block;
  color: var(--ui-color-text-muted);
  font-size: 9px;
  margin-top: 3px;
}
.drawer-row strong {
  font-size: 12px;
  color: var(--ui-color-accent-strong);
}
.drawer-row button,
.drawer-actions button {
  padding: 5px 8px;
  border: 1px solid var(--ui-color-border);
  background: var(--ui-color-surface-control);
  color: var(--ui-color-text);
  font-size: 9px;
  font-weight: 900;
}
.drawer-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.drawer-empty {
  color: #aaa58e;
  font-size: 11px;
  font-style: italic;
  padding: 9px 0;
}
.drawer-note {
  color: #9e9b87;
  font-size: 10px;
  line-height: 1.5;
}
.debug-intro {
  margin: 14px 0 0;
  color: #b9b29b;
  font-size: 11px;
  line-height: 1.5;
}
.debug-warning {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #b76255;
  background: #442520;
  color: #ffddd1;
  font-size: 12px;
  line-height: 1.5;
}
.debug-warning strong {
  display: block;
  font-size: 13px;
}
.debug-warning p {
  margin: 7px 0 0;
}
.debug-form,
.debug-slot {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #755d38;
  background: #24271f;
}
.debug-slot {
  margin-top: 8px;
}
.debug-slot-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  color: #eee0c1;
  font-size: 12px;
}
.debug-slot-head small {
  color: #b5a175;
  font-size: 10px;
  text-align: right;
  overflow-wrap: anywhere;
}
.debug-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 9px;
}
.debug-genetics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.debug-iv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.debug-genetics-note {
  margin: 0;
}
.debug-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  color: #c7b585;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}
.debug-field input,
.debug-field select {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 5px 7px;
  border: 1px solid #82683e;
  border-radius: 2px;
  background: #141b16;
  color: #f1e6cb;
  font: 600 12px var(--font-ui);
}
.debug-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.debug-actions button {
  min-height: 31px;
  padding: 6px 9px;
  border: 1px solid #a88446;
  background: #303b2b;
  color: #f3e8cd;
  font-size: 10px;
  font-weight: 900;
}
.debug-actions button.danger {
  border-color: #b76255;
  background: #502622;
  color: #ffd8d2;
}
.debug-actions button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.debug-reset-note {
  color: #d9a69e;
  font-size: 11px;
  line-height: 1.45;
}
.drawer.debug-drawer {
  scrollbar-color: #826437 #151815;
}
.drawer.debug-drawer :is(button, input, select):focus-visible {
  outline: 2px solid #f2ce79;
  outline-offset: 2px;
}
.empty-slot {
  opacity: 0.75;
  border-style: dashed;
}
.empty-slot:hover {
  opacity: 1;
}
.empty-slot .member-portrait {
  color: #b6ad8a;
  font: 700 22px var(--font-display);
}
.empty-slot .member-name {
  color: #aaa692;
}
.screen-reader-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1000px) {
  .hunt-header {
    max-width: min(500px, calc(100vw - 506px));
  }
  .hunt-report {
    width: 220px;
  }
  .party {
    width: 188px;
  }
  .hunt-report {
    max-height: calc(100dvh - 69px - 116px);
    overflow-y: auto;
  }
}
@media (max-width: 780px) {
  .hunt-header {
    top: 64px;
    left: 9px;
    right: 9px;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 82px;
    max-height: 90px;
    overflow-y: auto;
    transform: none;
  }
  .party,
  .hunt-report {
    top: 164px;
  }
  .center-faint-notice {
    top: 230px;
  }
  .hunt-report {
    max-height: calc(100dvh - 164px - 116px);
  }
}
@media (max-width: 650px) {
  .topbar {
    height: 46px;
    left: 4px;
    right: 4px;
    top: 4px;
    padding: 0 6px;
    gap: 5px;
  }
  .brand {
    font-size: 10px;
    letter-spacing: 0;
  }
  .brand-mark {
    font-size: 19px;
  }
  .top-actions {
    justify-content: center;
  }
  .nav-button {
    height: 32px;
    padding: 0 5px;
  }
  .nav-button span:last-child {
    display: none;
  }
  #nav-hunt-label {
    display: inline;
    max-width: none;
    font-size: 9px;
  }
  .hunt-header {
    top: 55px;
    left: 5px;
    right: 5px;
    min-height: 87px;
    max-height: 92px;
    gap: 7px;
    padding: 6px 8px;
  }
  .hunt-header-mark {
    font-size: 19px;
  }
  .hunt-header-copy > strong {
    font-size: 14px;
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }
  .hunt-header-encounters {
    gap: 3px 4px;
    font-size: 9px;
  }
  .hunt-header-state {
    font-size: 7px;
  }
  #hunt-menu-level {
    font-size: 7px;
  }
  .hunt-destination-visit {
    min-height: 55px;
    gap: 5px;
    padding: 4px;
  }
  .hunt-destination-icon {
    width: 33px;
    height: 33px;
  }
  .hunt-destination-icon :is(img, canvas) {
    width: 31px;
    height: 31px;
  }
  .hunt-destination-detail strong {
    font-size: 10px;
  }
  .hunt-destination-detail small {
    font-size: 8px;
  }
  .hunt-destination-badge {
    font-size: 7px;
  }
  .top-right {
    gap: 4px;
  }
  .zoom-button {
    width: 24px;
    height: 24px;
  }
  .party {
    top: 155px;
    left: 5px;
    width: 160px;
    padding: 5px;
  }
  .member {
    height: 45px;
  }
  .member-portrait {
    width: 34px;
    height: 34px;
  }
  .member-portrait img {
    width: 32px;
    height: 32px;
  }
  .member-name {
    font-size: 9px;
  }
  .report-stats strong {
    font-size: 14px;
  }
  .hunt-report {
    top: 155px;
    right: 5px;
    width: 157px;
    padding: 5px;
  }
  .center-faint-notice {
    top: 400px;
    padding: 7px;
  }
  .center-faint-notice strong {
    font-size: 10px;
  }
  .center-faint-notice span {
    font-size: 8px;
  }
  .report-top {
    font-size: 7px;
  }
  .report-target {
    gap: 4px;
    padding-top: 5px;
  }
  .report-target strong {
    font-size: 10px;
  }
  .report-stats div {
    padding: 4px 1px;
  }
  .report-stats small {
    font-size: 6px;
  }
  .loot-heading {
    font-size: 7px;
  }
  .loot-heading button {
    display: none;
  }
  .loot-list {
    max-height: clamp(42px, 10vh, 90px);
  }
  .event-log {
    left: 5px;
    bottom: 121px;
    width: min(220px, 61vw);
    max-height: 120px;
    padding: 0 5px 4px;
  }
  .log-tabs {
    height: 24px;
    gap: 8px;
    font-size: 7px;
  }
  .log-live {
    font-size: 6px;
  }
  #event-list {
    font-size: 8px;
    min-height: 60px;
  }
  .bottom-tools {
    bottom: 5px;
  }
  .hunt-report {
    max-height: calc(100dvh - 155px - 112px);
  }
  .starter-modal {
    padding: 18px 12px;
  }
  .starter-modal p {
    font-size: 11px;
  }
  .starter-grid {
    gap: 4px;
  }
  .starter-card {
    padding: 7px 3px;
    min-height: 145px;
  }
  .starter-card img {
    width: 49px;
    height: 49px;
  }
  .starter-card strong {
    font-size: 10px;
  }
  .starter-card small {
    font-size: 7px;
  }
  .starter-card em {
    font-size: 7px;
    padding: 4px;
  }
  .starter-foot {
    font-size: 7px;
  }
}
@media (max-width: 350px) {
  .topbar {
    gap: 3px;
    padding: 0 3px;
  }
  .brand {
    gap: 3px;
    font-size: 9px;
  }
  .brand b {
    display: none;
  }
  .nav-button {
    gap: 3px;
    padding: 0 3px;
  }
  .zoom-button {
    width: 21px;
    height: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .toast,
  .starter-card,
  .drawer {
    animation: none;
    transition: none;
  }
}
.auto-helper {
  display: grid;
  gap: 5px;
}
.helper-potion-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 61px;
  gap: 5px;
  min-width: 0;
}
.helper-potion-row #potion-select .custom-select-menu {
  width: calc(100% + 66px);
}
.helper-control {
  position: relative;
  min-width: 0;
}
.helper-control > div {
  width: 100%;
}
.helper-control[data-tooltip]::after {
  position: absolute;
  right: 0;
  bottom: calc(100% + 5px);
  z-index: 80;
  width: max-content;
  max-width: min(245px, 90vw);
  padding: 6px 8px;
  border: 1px solid #9c8150;
  background: #171c18;
  color: #f2e3bd;
  box-shadow: 0 4px 13px #000a;
  content: attr(data-tooltip);
  font-size: 10px;
  line-height: 1.3;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 100ms ease;
}
.helper-control[data-tooltip]:hover:not(
    :has(.custom-select-trigger[aria-expanded="true"])
  )::after {
  opacity: 1;
  visibility: visible;
}
.helper-control:has(.custom-select-trigger[aria-expanded="true"]) {
  z-index: 40;
}
.shop-card-actions button:disabled,
.drawer-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
.drawer.collection-drawer {
  width: min(calc(650px + var(--ui-nav-rail-size)), 100%);
}
.drawer.bag-drawer {
  width: min(calc(620px + var(--ui-nav-rail-size)), 100%);
}
.drawer.hunt-drawer {
  width: min(calc(650px + var(--ui-nav-rail-size)), 100%);
}
.drawer.profile-drawer {
  width: min(calc(650px + var(--ui-nav-rail-size)), 100%);
}
@media (max-width: 820px) {
  #drawer {
    width: 100%;
    flex-direction: column;
  }
  .drawer-panel {
    height: auto;
    min-height: 0;
  }
}
.ot-item-icon {
  width: 28px;
  height: 28px;
  flex: none;
  object-fit: contain;
  image-rendering: pixelated;
}
.item-icon-fallback {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: none;
  color: #b99a5f;
}
.pokemon-icon-fallback {
  width: 42px;
  height: 42px;
  max-width: 100%;
  max-height: 100%;
  color: #b99a5f;
}
.loot-list .ot-item-icon,
.loot-list .item-icon-fallback {
  width: 18px;
  height: 18px;
}
.wallet-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding: 10px 12px;
  background: #27251b;
  border: 1px solid #80643a;
  color: #d6bd81;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.wallet-strip strong {
  color: #ffe3a1;
  font-size: 18px;
  letter-spacing: 0;
}
.drawer-tabs {
  position: sticky;
  top: -18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 11px;
  padding: 4px 0;
  background: #151815;
}
.drawer-tabs button,
.collection-sort button {
  border: 1px solid #6e5b3b;
  background: #1c211b;
  color: #aa9c80;
  padding: 7px 4px;
  font-size: 8px;
  font-weight: 900;
}
.drawer-tabs button.active,
.collection-sort button.active {
  border-color: #b28a4c;
  background: #423720;
  color: #f5dda1;
}
.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}
.shop-card {
  min-width: 0;
  padding: 8px;
  border: 1px solid #665b3b;
  background: linear-gradient(150deg, #22251e, #131915);
}
.shop-card-main {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}
.shop-card-main .ot-item-icon {
  width: 36px;
  height: 36px;
}
.shop-card-main > div {
  min-width: 0;
}
.shop-card-main strong {
  display: block;
  color: #f0e7d2;
  font-size: 10px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shop-card-main small {
  display: block;
  color: #a9a78c;
  font-size: 8px;
  line-height: 1.2;
  margin-top: 3px;
}
.shop-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 7px 0;
  color: #e4c27d;
  font-size: 8px;
  font-weight: 900;
}
.shop-card-meta strong {
  font-size: 10px;
  color: #ede6ce;
}
.shop-card-actions {
  display: flex;
  gap: 3px;
}
.shop-card-actions button {
  flex: 1;
  padding: 5px 2px;
  border: 1px solid #91723d;
  background: #3c3020;
  color: #f5d791;
  font-size: 8px;
  font-weight: 900;
}
.shop-card-actions button.use-action {
  background: #2a4b30;
  color: #c9efc9;
}
.collection-summary {
  display: none;
  gap: 2px;
  margin: 6px 0 0;
  color: var(--ui-color-text-muted);
  font-size: 8px;
  font-weight: 600;
}
.collection-drawer .collection-summary {
  display: grid;
}
.collection-summary > strong {
  font-size: 17px;
  color: var(--ui-color-text);
}
.collection-capacity-note {
  display: grid;
  gap: var(--ui-space-2);
  margin: var(--ui-space-2) 0;
}
.collection-capacity-note[hidden] {
  display: none;
}
.collection-capacity-note > strong {
  color: var(--ui-color-text);
}
.collection-capacity-note > .ui-button {
  justify-self: start;
}
.collection-summary small {
  margin-left: auto;
  max-width: 210px;
  color: #aaa48d;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.3;
  text-align: right;
}
.collection-sort {
  display: flex;
  gap: 3px;
  align-items: center;
}
.collection-sort > span {
  margin-right: auto;
  color: #a89a77;
  font-size: 8px;
  font-weight: 900;
}
.collection-sort button {
  padding: 5px;
  font-size: 7px;
}
.pokemon-card {
  margin-top: 9px;
  padding: 10px;
  border: 1px solid #6d684f;
  border-left: 3px solid #b9a466;
  background: linear-gradient(150deg, #252721, #151a17);
}
.pokemon-card.tier-rare {
  border-left-color: #6bb8d8;
}
.pokemon-card.tier-epic {
  border-left-color: #be8ade;
}
.pokemon-card.tier-legendary {
  border-left-color: #f1c25e;
}
.pokemon-card.tier-mythic {
  border-left-color: #f18fbe;
}
.pokemon-card.tier-ancient {
  border-left-color: #e38970;
}
.pokemon-card.tier-divine {
  border-left-color: #fff3a1;
}
.pokemon-card-head {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pokemon-card-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid #7a754a;
  background: #26372c;
}
.ot-pokemon-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  image-rendering: pixelated;
}
.pokemon-card-title {
  flex: 1;
  min-width: 0;
}
.pokemon-card-title small,
.pokemon-power small {
  display: block;
  color: #b5a778;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.pokemon-card-title > strong {
  display: block;
  margin: 2px 0 4px;
  color: #f1e7cc;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border: 1px solid
    color-mix(in srgb, var(--quality-color, #d8c185) 55%, transparent);
  background: transparent;
  color: var(--quality-color, #d8c185);
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.quality-badge::before {
  content: none;
}
:is(.tier-legendary, .tier-mythic, .tier-ancient, .tier-divine) .quality-badge {
  background: color-mix(
    in srgb,
    var(--quality-color, #d8c185) 12%,
    transparent
  );
}
.pokemon-power {
  text-align: right;
}
.pokemon-power strong {
  display: block;
  color: #f4d68d;
  font-size: 17px;
}
.iv-heading {
  display: flex;
  justify-content: space-between;
  margin: 11px 0 5px;
  color: #afaa91;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.iv-heading strong {
  color: #ead69d;
  font-size: 10px;
}
.iv-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
.iv-cell {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px;
  min-width: 0;
  padding: 5px;
  border: 1px solid #655f473d;
  background: #101511a8;
  color: #b5ae93;
  font-size: 8px;
  font-weight: 800;
}
.iv-cell strong {
  color: #f1daa3;
}
.iv-cell > i {
  width: 100%;
  height: 3px;
  background: #3b3f31;
}
.iv-cell > i > b {
  display: block;
  height: 100%;
  background: #92bd78;
}
.iv-cell small {
  color: #817f6d;
  font-size: 7px;
  font-weight: 800;
}
.pokemon-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid #72684770;
}
.pokemon-card-foot > span {
  color: #b2aa8b;
  font-size: 8px;
  font-weight: 900;
}
.pokemon-card-foot > span strong {
  display: block;
  color: #f4d994;
  font-size: 11px;
  margin-top: 2px;
}
.equipped-tag {
  padding: 6px;
  color: #86d59c;
  font-size: 8px;
  font-weight: 900;
}
.drawer-actions .sell-pokemon {
  background: #3f2826;
  color: #efc5b9;
}
.drawer-actions .sell-pokemon.confirming {
  border-color: #e3946a;
  background: #73422f;
  color: #fff0ce;
}
.show-more {
  width: 100%;
  margin-top: 12px;
  padding: 9px;
  border: 1px solid #97753d;
  background: #302d20;
  color: #e6ca8a;
  font-size: 9px;
  font-weight: 900;
}
@media (max-width: 650px) {
  .helper-potion-row {
    grid-template-columns: minmax(0, 1fr) 58px;
  }
  .helper-potion-row #potion-select .custom-select-menu {
    width: calc(100% + 63px);
  }
  .drawer-panel {
    padding: 12px;
  }
  .drawer-tabs {
    top: -12px;
  }
  .collection-summary small {
    display: none;
  }
}

/* Collection and shop: a compact working ledger over the OT world. */
.drawer.collection-drawer,
.drawer.bag-drawer {
  scrollbar-color: #826437 #151815;
}
.drawer.collection-drawer :is(button, input, select, summary):focus-visible,
.drawer.bag-drawer :is(button, input, select, summary):focus-visible {
  outline: 2px solid #f2ce79;
  outline-offset: 2px;
}
.type-badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-wrap: wrap;
  min-width: 0;
}
.type-badge {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  padding: 2px 5px 1px;
  border: 1px solid #85744d;
  background: #514a34;
  color: #fff2cc;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
  text-transform: uppercase;
}
.type-badge:is(.type-grass, [data-type="GRASS"]) {
  background: #305c37;
  border-color: #6fae67;
  color: #e0f5d3;
}
.type-badge:is(.type-fire, [data-type="FIRE"]) {
  background: #793d29;
  border-color: #d48a4d;
  color: #ffe0b9;
}
.type-badge:is(.type-water, [data-type="WATER"]) {
  background: #285a76;
  border-color: #6daac8;
  color: #daf1ff;
}
.type-badge:is(.type-normal, [data-type="NORMAL"]) {
  background: #514f45;
  border-color: #99917c;
  color: #f1eacb;
}
.type-badge:is(.type-poison, [data-type="POISON"]) {
  background: #563d72;
  border-color: #aa80c7;
  color: #f1defd;
}
.type-badge:is(.type-ground, [data-type="GROUND"]) {
  background: #70522b;
  border-color: #bc9854;
  color: #f8e8bf;
}
.type-badge:is(.type-electric, [data-type="ELECTRIC"]) {
  background: #69551d;
  border-color: #d9bd49;
  color: #fff5bc;
}
.type-badge:is(.type-ice, [data-type="ICE"]) {
  background: #275e66;
  border-color: #73c3c8;
  color: #e4fcff;
}
.type-badge:is(.type-fighting, [data-type="FIGHTING"]) {
  background: #683a30;
  border-color: #b9705e;
  color: #ffe1d4;
}
.type-badge:is(.type-flying, [data-type="FLYING"]) {
  background: #435674;
  border-color: #94a9cc;
  color: #e6edff;
}
.type-badge:is(.type-psychic, [data-type="PSYCHIC"]) {
  background: #793c65;
  border-color: #ca79b1;
  color: #ffe0f2;
}
.type-badge:is(.type-bug, [data-type="BUG"]) {
  background: #495721;
  border-color: #9bae56;
  color: #f0f5c9;
}
.type-badge:is(.type-rock, [data-type="ROCK"]) {
  background: #5f5037;
  border-color: #ad9670;
  color: #f1e6d1;
}
.type-badge:is(.type-ghost, [data-type="GHOST"]) {
  background: #413b65;
  border-color: #8279b1;
  color: #e9e4ff;
}
.type-badge:is(.type-dragon, [data-type="DRAGON"]) {
  background: #403f83;
  border-color: #8382d3;
  color: #e6e5ff;
}
.type-badge:is(.type-dark, [data-type="DARK"]) {
  background: #383632;
  border-color: #7b736a;
  color: #e5e0d8;
}
.type-badge:is(.type-steel, [data-type="STEEL"]) {
  background: #465558;
  border-color: #8ba7ac;
  color: #e1f1f1;
}
.type-badge:is(.type-fairy, [data-type="FAIRY"]) {
  background: #754a66;
  border-color: #c793b6;
  color: #ffe5f6;
}

.team-card {
  margin-top: 7px;
  border: 1px solid #706448;
  border-left: 3px solid #c5a45e;
  background: linear-gradient(115deg, #252921, #171c18);
  color: #e9e2c8;
}
.team-card[open] {
  border-color: #ac8c4f;
}
.team-card summary {
  cursor: pointer;
  list-style: none;
}
.team-card summary::-webkit-details-marker {
  display: none;
}
.team-card-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 59px;
  padding: 6px 9px;
}
.team-card-main .depot-sprite {
  width: 44px;
  height: 44px;
  flex: none;
}
.team-card-main .depot-sprite .ot-pokemon-icon {
  width: 42px;
  height: 42px;
}
.team-card-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  flex: 1;
  min-width: 0;
}
.team-card-title > small,
.team-card-power > small {
  color: #b5a778;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}
.team-card-title > strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f1e7cc;
  font-size: 12px;
}
.team-card-title .quality-badge {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.team-quality-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
  color: #b9ae91;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.team-card-power {
  display: grid;
  gap: 2px;
  flex: none;
  align-self: center;
  color: #c5bb9c;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.team-card-power strong {
  color: #f4d68d;
  font-size: 15px;
}
.team-chevron {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex: none;
  color: #d2b671;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}
.team-chevron .ui-icon {
  width: 14px;
  height: 14px;
}
.team-card[open] .team-chevron {
  color: #f0d692;
}
.team-card[open] .team-chevron .ui-icon {
  transform: rotate(180deg);
}
.team-card-body {
  padding: 0 11px 11px;
  border-top: 1px solid #75674570;
}
.team-card-body .iv-heading {
  margin-top: 9px;
}
.team-card-body .pokemon-card-foot {
  margin-top: 9px;
}
.team-card-body .drawer-actions button:disabled {
  opacity: 0.6;
  cursor: default;
}
.team-replace-panel {
  display: grid;
  gap: 6px;
  margin: 9px 0;
  padding: 10px;
  border: 1px solid #bd9658;
  background: #30291d;
  color: #e9dec3;
  font-size: 10px;
}
.team-replace-panel > strong {
  color: #f1d48c;
  font-size: 11px;
}
.team-replace-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.team-replace-options button {
  padding: 6px 8px;
  border: 1px solid #a18350;
  background: #26392a;
  color: #e5e7c9;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.team-replace-options button:hover,
.team-replace-options button:focus-visible {
  border-color: #e7ca83;
  background: #39523c;
}

.depot-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 8px;
  color: #c6b183;
  font-size: 9px;
  font-weight: 800;
}
.depot-search {
  display: flex;
  flex: 1 1 155px;
  align-items: center;
  gap: 5px;
  min-width: 130px;
  max-width: 260px;
  white-space: nowrap;
}
.depot-search input {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 5px 8px;
  border: 1px solid #6d6040;
  border-radius: 0;
  background: #101510;
  color: #eee5cc;
  font: inherit;
  font-size: 11px;
}
.depot-search input::placeholder {
  color: #8d8978;
}
.depot-toolbar .collection-sort {
  flex: none;
  min-width: 0;
}
.quality-filter {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.quality-filter > span:first-child {
  color: #a89a77;
  font-size: 8px;
  font-weight: 900;
}
.quality-filter-control {
  display: flex;
  align-items: center;
  width: 135px;
  height: 30px;
  padding-left: 7px;
  border: 1px solid #6d6040;
  background: #101510;
}
.quality-filter-control i {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--quality-color, #d8c185);
}
.quality-filter-control select {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding-left: 5px;
  border: 0;
  background: transparent;
  color: #eee5cc;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.depot-list {
  display: grid;
  gap: 4px;
}
.depot-row {
  display: grid;
  grid-template-columns: 16px 43px minmax(0, 1fr) minmax(105px, auto) auto;
  align-items: center;
  gap: 7px;
  min-height: 61px;
  padding: 7px 8px;
  border: 1px solid #595743;
  border-left: 2px solid #a58a53;
  background: #20251f;
  color: #e9e3ce;
  font-size: 11px;
}
.depot-row:hover {
  border-color: #aa8c52;
  background: #292d24;
}
.depot-row.capture-focused,
.team-card.capture-focused {
  border-color: var(--quality-color, #d8c185);
  box-shadow: inset 0 0 0 1px var(--quality-color, #d8c185);
}
.depot-row.capture-focused:focus,
.team-card.capture-focused summary:focus {
  outline: 2px solid var(--quality-color, #d8c185);
  outline-offset: 2px;
}
.depot-detail {
  padding: 9px 10px 11px;
  margin-top: -4px;
  border: 1px solid
    color-mix(in srgb, var(--quality-color, #d8c185) 60%, #443c2e);
  border-top: 0;
  background: color-mix(in srgb, var(--quality-color, #d8c185) 7%, #171b17);
}
.depot-detail-heading,
.depot-detail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.depot-detail-heading span,
.depot-detail-foot span {
  color: #bcae89;
  font-size: 9px;
  font-weight: 800;
}
.depot-detail-heading strong,
.depot-detail-foot strong {
  color: var(--quality-color, #d8c185);
}
.depot-detail .iv-grid {
  margin: 9px 0;
}
.depot-row.selected,
.depot-row:has(.depot-check input:checked) {
  background: #323122;
  border-color: #c3a456;
}
.depot-check {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin: 0;
  flex: none;
  cursor: pointer;
}
.depot-check input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #d9b962;
  cursor: pointer;
}
.depot-check input:disabled {
  opacity: 0.4;
  cursor: default;
}
.depot-sprite {
  width: 41px;
  height: 41px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #625f45;
  background: #1d3327;
}
.depot-sprite .ot-pokemon-icon,
.depot-sprite img {
  width: 39px;
  height: 39px;
  object-fit: contain;
  image-rendering: pixelated;
}
.depot-identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.depot-identity .quality-badge {
  justify-self: start;
}
.depot-identity > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f0e9d5;
  font-size: 13px;
}
.depot-identity > strong small {
  color: #bca977;
  font-size: 10px;
}
.depot-identity > small {
  color: #b9ae91;
  font-size: 9px;
}
.depot-metrics {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  color: #c5b78e;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.depot-metrics strong {
  color: #f3d994;
  font-size: 12px;
}
/* The IV total doubles as the toggle for the row's IV distribution. */
.depot-iv-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.depot-iv-toggle .ui-icon {
  width: 12px;
  height: 12px;
  color: #d2b671;
}
.depot-iv-toggle[aria-expanded="true"] .ui-icon {
  transform: rotate(180deg);
}
.depot-iv-toggle:hover strong,
.depot-iv-toggle[aria-expanded="true"] strong {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.depot-iv-toggle:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}
.collection-drawer .depot-row {
  cursor: pointer;
}
.depot-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  max-width: 160px;
  font-variant-numeric: tabular-nums;
}
.depot-actions > strong {
  flex-basis: 100%;
  color: #f2d997;
  font-size: 11px;
  text-align: right;
  white-space: nowrap;
}
.depot-actions button {
  padding: 5px 6px;
  border: 1px solid #897249;
  background: #28382b;
  color: #dcebd1;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.depot-actions button:hover {
  background: #3b543e;
  border-color: #bfa05d;
}
.depot-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}
/* Lock toggle: quiet when open, accent when the Pokémon is protected. */
.depot-actions .pokemon-lock {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border-color: #5f5640;
  background: transparent;
  color: #9c937c;
}
.depot-actions .pokemon-lock .ui-icon {
  width: 14px;
  height: 14px;
}
.depot-actions .pokemon-lock[aria-pressed="true"] {
  border-color: #d4a848;
  background: #423720;
  color: #f6d979;
}
.depot-actions .pokemon-lock:focus-visible {
  outline: 2px solid var(--ui-color-focus);
  outline-offset: 2px;
}
.depot-actions .sell-pokemon {
  background: #422c26;
  color: #f2c6b9;
}
.depot-actions .sell-pokemon.confirming {
  background: #70432c;
  color: #fff0cb;
}

/* The palette matches quality tags in the MultiPoke capture log. */
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-weak {
  --quality-color: #a7a7a7;
}
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-common {
  --quality-color: #7dc77a;
}
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-uncommon {
  --quality-color: #5ed7b9;
}
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-rare {
  --quality-color: #69b7ff;
}
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-epic {
  --quality-color: #d985ff;
}
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-legendary {
  --quality-color: #f1c644;
}
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-mythic {
  --quality-color: #ff6680;
}
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-ancient {
  --quality-color: #ff9800;
}
:is(
    .collection-drawer,
    .bag-drawer,
    .breeding-drawer,
    .family-depot-panel,
    .chat-insight,
    .game-chat,
    .ranking,
    .trade,
    .market-drawer,
    .gym-domination-dialog,
    .player-notices,
    .refinement-panel
  )
  .tier-divine {
  --quality-color: #00bcd4;
}
:is(.collection-drawer, .bag-drawer, .breeding-drawer) :is(.team-card, .depot-row) {
  border-left-color: var(--quality-color, #c5a45e);
}
:is(.collection-drawer, .bag-drawer, .breeding-drawer) :is(.team-card, .depot-row) .depot-sprite {
  border-color: color-mix(in srgb, var(--quality-color, #c5a45e) 55%, #625f45);
  background: color-mix(in srgb, var(--quality-color, #c5a45e) 9%, #1d3327);
}

.bulk-bar {
  position: sticky;
  z-index: 4;
  top: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  margin: 8px 0;
  padding: 8px 10px;
  border: 1px solid #907647;
  background: #242a21f7;
  box-shadow: 0 5px 16px #090d0aa3;
  color: #f1dfb1;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.bulk-bar > div:first-child {
  flex: 1;
  min-width: 0;
}
.bulk-bar > div:first-child strong,
.bulk-bar > div:first-child small {
  display: block;
}
.bulk-bar > div:first-child small {
  margin-top: 3px;
  color: #bcb092;
  font-size: 9px;
}
.bulk-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  flex-wrap: wrap;
}
.bulk-controls button,
.bulk-bar > button {
  min-height: 28px;
  padding: 5px 8px;
  border: 1px solid #a0824b;
  background: #3b3223;
  color: #f4dfab;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.bulk-controls button:hover,
.bulk-bar > button:hover {
  border-color: #d7b66d;
  background: #514027;
}
.bulk-controls button:disabled,
.bulk-bar > button:disabled {
  opacity: 0.45;
  cursor: default;
}
.bulk-controls .danger,
.bulk-bar .danger {
  background: #5b342b;
  border-color: #b7745a;
  color: #ffe2d5;
}
.bulk-controls .bulk-sell {
  background: #493523;
  border-color: #b89452;
  color: #ffe6b0;
}
.bulk-controls .bulk-sell.confirming {
  background: #75412d;
  border-color: #de9863;
  color: #fff1ce;
}

.bag-totals {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 7px 14px;
  margin-top: 9px;
  padding: 7px 10px;
  border: 1px solid #655c3f;
  background: #20241d;
  color: #bcb296;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}
.bag-totals > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.bag-totals > div:last-child {
  text-align: right;
}
.bag-totals small {
  color: #bcb296;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.07em;
}
.bag-totals strong {
  color: #f1d994;
  font-size: 15px;
}
.bag-totals em {
  color: #c5b68b;
  font-size: 9px;
  font-style: normal;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-bottom: 8px;
}
.section-heading h3 {
  margin: 0;
}
.section-heading > strong {
  color: #b6a779;
  font-size: 9px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.shop-list {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}
.shop-row {
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #625c43;
  border-left: 2px solid #ba995a;
  background: #20251f;
}
.shop-row:hover {
  border-color: #a68a51;
  background: #272c23;
}
.shop-row.shop-targeted,
.shop-row.shop-targeted:hover {
  border-color: #e1bd66;
  border-left-color: #ffdf8b;
  background: #303326;
  box-shadow:
    inset 0 0 0 1px #f5d58257,
    0 0 13px #d3a3483d;
}
.shop-row.shop-targeted:focus {
  outline: none;
}
.shop-row-head,
.shop-buy-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.shop-row-head .ot-item-icon,
.shop-row-head .item-icon-fallback {
  width: 32px;
  height: 32px;
}
.shop-row-main {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.shop-row-main > div {
  flex: 1;
  min-width: 0;
}
.shop-row-main strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f1ead7;
  font-size: 11px;
}
.shop-row-main small {
  display: block;
  margin-top: 3px;
  color: #afa98e;
  font-size: 9px;
}
.shop-row-meta {
  flex: none;
  color: #d9c394;
  font-size: 10px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.shop-row-meta strong {
  display: block;
  color: #f6d991;
  font-size: 11px;
}
.shop-buy-line {
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid #645b413d;
  font-variant-numeric: tabular-nums;
}
.shop-steps {
  display: flex;
  flex: none;
  gap: 3px;
  flex-wrap: nowrap;
}
.shop-steps button {
  min-width: 34px;
  padding: 5px 6px;
  border: 1px solid #756641;
  background: #303124;
  color: #e1d0a4;
  font-size: 10px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.shop-steps button:hover {
  border-color: #c19e55;
  background: #4a412c;
}
.shop-exact {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 4px;
  color: #ada38a;
  font-size: 9px;
}
.shop-exact input {
  width: 84px;
  height: 27px;
  padding: 4px 5px;
  border: 1px solid #897247;
  border-radius: 0;
  background: #111813;
  color: #f4e5c0;
  font: inherit;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.shop-total {
  flex: none;
  color: #b6aa86;
  font-size: 9px;
  text-align: right;
  white-space: nowrap;
}
.shop-total small {
  display: block;
  color: #a99d7e;
  font-size: 8px;
}
.shop-total strong {
  display: block;
  color: #ffe09a;
  font-size: 12px;
}
.shop-buy,
.shop-use {
  flex: none;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid #c39b51;
  background: #554020;
  color: #fff0c7;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}
.shop-buy:hover,
.shop-use:hover {
  background: #74582d;
  border-color: #e6c17c;
}
.shop-use {
  background: #2b472e;
  border-color: #638e5a;
  color: #e5f4d4;
}
.shop-row-head > .shop-use {
  align-self: center;
  min-height: 25px;
  padding: 4px 7px;
  margin-left: 2px;
}
.shop-buy:disabled,
.shop-use:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (max-width: 650px) {
  .drawer.collection-drawer .drawer-panel,
  .drawer.bag-drawer .drawer-panel,
  .drawer.debug-drawer .drawer-panel {
    padding: 12px;
  }
  .bulk-bar {
    top: 26px;
    padding: 8px;
  }
  .depot-toolbar {
    flex-wrap: wrap;
  }
  .depot-search {
    flex: 1 1 160px;
    max-width: none;
  }
  .depot-toolbar .collection-sort {
    flex: 1 1 auto;
    flex-wrap: wrap;
  }
  .depot-row {
    grid-template-columns: 16px 38px minmax(0, 1fr) auto;
    gap: 6px;
    padding: 5px;
  }
  .depot-sprite {
    width: 38px;
    height: 38px;
  }
  .depot-sprite .ot-pokemon-icon,
  .depot-sprite img {
    width: 36px;
    height: 36px;
  }
  .depot-metrics {
    grid-column: 4;
    font-size: 8px;
  }
  .depot-actions {
    grid-column: 3 / -1;
    justify-content: flex-start;
    max-width: none;
  }
  .depot-actions > strong {
    flex-basis: auto;
    margin-right: 3px;
    text-align: left;
  }
  .depot-actions button {
    padding: 4px 5px;
  }
  .shop-buy-line {
    flex-wrap: wrap;
  }
  .shop-steps {
    margin-right: auto;
  }
  .shop-exact input {
    width: 78px;
  }
  .shop-total {
    margin-left: auto;
  }
  .bulk-bar {
    flex-wrap: wrap;
  }
  .bulk-bar > div:first-child {
    flex-basis: 100%;
  }
  .bulk-controls {
    justify-content: flex-start;
  }
}
@media (max-width: 390px) {
  .team-card-main {
    gap: 6px;
    padding: 5px;
  }
  .team-card-power strong {
    font-size: 13px;
  }
  .depot-search {
    max-width: none;
    flex-basis: 100%;
  }
  .depot-identity > strong {
    font-size: 10px;
  }
  .depot-metrics strong {
    font-size: 10px;
  }
  .shop-row {
    padding: 7px;
  }
  .shop-row-meta {
    font-size: 9px;
  }
  .shop-buy-line {
    justify-content: flex-start;
  }
  .team-chevron {
    margin-left: -2px;
  }
}
@media (max-width: 320px) {
  .shop-steps {
    flex-wrap: wrap;
  }
  .shop-row-head {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drawer {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}
:is(.member-portrait, .depot-sprite).recovery-anchor {
  position: relative;
  overflow: visible;
}

.recovery-visual {
  position: absolute;
  width: 64px;
  height: 64px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  image-rendering: pixelated;
  z-index: 1;
}

.pokemon-rank {
  display: block;
  margin: 3px 0;
  color: var(--ui-color-text-muted);
  font-size: 0.7rem;
  line-height: 1.4;
}

.ui-chip.pokemon-shiny,
.member[data-shiny] .member-label {
  color: #f8d566;
}

.ui-chip.pokemon-shiny {
  justify-self: start;
  width: fit-content;
  border-color: #8b783f;
  background: #292617;
}
.boss-art { display:inline-block; position:relative; flex:none; vertical-align:middle; }
.boss-art img { width:100%; height:100%; object-fit:contain; image-rendering:pixelated; }
[data-boss-panel] { display:grid; gap:var(--ui-space-3,12px); }
.boss-intro { display:flex; align-items:center; gap:12px; padding-block:2px 8px; }
.boss-intro h3 { margin:0; font:30px/1.1 var(--ui-font-display); }
.boss-intro p { margin:4px 0 0; color:var(--ui-color-text-muted); }
.boss-eyebrow { font-size:12px; color:var(--ui-color-text-muted); }
.boss-access { margin-left:auto; white-space:nowrap; }
.boss-token-balance,.boss-guaranteed { display:flex; align-items:center; gap:12px; padding:12px; border:1px solid var(--ui-color-border); background:var(--ui-color-surface); }
.boss-token-balance { border-color:#9c603c; background:linear-gradient(110deg,#38251699,#111b2a); }
.boss-token-balance>div,.boss-guaranteed>div { display:grid; gap:4px; min-width:0; }
.boss-token-balance small,.boss-guaranteed small { color:var(--ui-color-text-muted); line-height:1.3; }
.boss-token-stock { margin-left:auto; font:30px/1 var(--ui-font-display); color:#f3bd83; white-space:nowrap; }
.boss-guaranteed { border-color:#44657b; }
.boss-cards { display:grid; gap:12px; }
.boss-card { display:grid; grid-template-columns:64px minmax(0,1fr) auto; align-items:center; gap:12px; padding:12px; border-left:3px solid var(--boss-type); }
.boss-card-portrait { display:block; position:relative; width:64px; height:64px; background:#0a1320; }
.boss-card-portrait img { width:64px; height:64px; object-fit:contain; image-rendering:pixelated; }
.boss-card-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.boss-card-heading h3 { margin:0; font:27px/1 var(--ui-font-display); }
.boss-level { color:var(--ui-color-text-muted); font-size:13px; white-space:nowrap; }
.boss-card-identity { min-width:0; }
.boss-card-identity p { margin:5px 0 8px; color:var(--ui-color-text-muted); font-size:14px; }
.boss-card-identity .type-badges { gap:5px; }
[data-boss-panel] .boss-card .boss-prepare { min-height:44px; }
.boss-type-choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.boss-type-choices button { display:flex; align-items:center; gap:10px; min-height:48px; border-left:3px solid var(--boss-type); }
.boss-choice h3,.boss-receipt h3 { margin-top:0; }
.boss-receipt ul { padding:0; margin:0; list-style:none; display:grid; gap:8px; }
.boss-receipt li { display:flex; align-items:center; gap:10px; min-height:32px; }
.boss-receipt li>span:not(.boss-art) { flex:1; }
.boss-rules summary { cursor:pointer; min-height:32px; display:list-item; }
@media(max-width:540px) {
  .boss-card { grid-template-columns:64px minmax(0,1fr); }
  .boss-prepare { grid-column:1/-1; }
  .boss-access { font-size:12px; }
  .boss-intro { gap:8px; }
  .boss-intro h3 { font-size:27px; }
}
.pokemon-tms { margin-block:12px; padding:12px; border:1px solid var(--ui-color-border); }
.pokemon-tms h4 { margin:0 0 8px; }
