:root {
  color-scheme: dark;
  --bg: #161b24;
  --ink: #f4f7fb;
  --muted: #aeb8c8;
  --panel: rgba(38, 46, 63, 0.94);
  --panel-strong: rgba(48, 56, 76, 0.96);
  --panel-soft: rgba(31, 38, 52, 0.88);
  --field: #273140;
  --field-2: #303a4d;
  --line: rgba(126, 143, 168, 0.22);
  --line-strong: rgba(191, 207, 228, 0.2);
  --blue: #9ac4ef;
  --mint: #71e6c1;
  --accent-2: #ffe16f;
  --meat: #ff8d68;
  --gold: #f7c84b;
  --gold-dark: #b97f17;
  --danger: #ff8b82;
  --shadow: 0 20px 54px rgba(0, 0, 0, 0.36);
  --inset-glow: inset 0 1px 0 rgba(255, 255, 255, 0.075), inset 0 -16px 42px rgba(6, 10, 17, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  overflow-y: scroll;
  scrollbar-gutter: stable;
  background: #11151d;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(14, 19, 28, 0.92), rgba(13, 17, 25, 0.98)),
    linear-gradient(135deg, rgba(113, 230, 193, 0.075), transparent 28%, rgba(247, 200, 75, 0.055) 63%, transparent 100%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 30px),
    #151a23;
  color: var(--ink);
  font-size: 17px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(11, 15, 23, 0.86), rgba(11, 15, 23, 0.54), rgba(11, 15, 23, 0.9)),
    url("/assets/world-map.png") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 120px),
    linear-gradient(90deg, rgba(113, 230, 193, 0.08), transparent 28%, transparent 70%, rgba(247, 200, 75, 0.055));
  pointer-events: none;
}

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(113, 230, 193, 0.2);
  background:
    linear-gradient(180deg, rgba(35, 44, 61, 0.94), rgba(23, 30, 43, 0.92)),
    rgba(23, 30, 43, 0.96);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: fit-content;
  color: inherit;
  text-decoration: none;
}

.brand:hover,
.brand:focus-visible {
  filter: brightness(1.08);
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(113, 230, 193, 0.28), 0 10px 24px rgba(0, 0, 0, 0.34), 0 0 28px rgba(113, 230, 193, 0.1);
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.nav-link {
  display: grid;
  place-items: center;
  min-width: 118px;
  height: 42px;
  border: 1px solid rgba(170, 190, 218, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(64, 75, 99, 0.76), rgba(34, 43, 59, 0.88)),
    rgba(38, 47, 64, 0.9);
  color: var(--ink);
  padding: 0 17px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.13), 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 140ms ease, filter 140ms ease;
}

.nav-link:hover {
  border-color: rgba(113, 230, 193, 0.38);
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.nav-link.active {
  border-color: rgba(113, 230, 193, 0.62);
  background:
    linear-gradient(180deg, rgba(66, 170, 149, 0.95), rgba(35, 117, 104, 0.98)),
    #2e8373;
  color: #f5fffb;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 24px rgba(21, 102, 88, 0.3);
}

.whats-new {
  position: relative;
  margin-left: auto;
}

.whats-new-button {
  height: 42px;
  border-color: rgba(113, 230, 193, 0.34);
  background:
    linear-gradient(180deg, rgba(30, 55, 72, 0.92), rgba(21, 31, 45, 0.96)),
    #1f2b3c;
  color: #dffcf4;
  padding: 0 16px;
  white-space: nowrap;
}

.whats-new-button[aria-expanded="true"] {
  border-color: rgba(113, 230, 193, 0.72);
  background:
    linear-gradient(180deg, rgba(66, 170, 149, 0.88), rgba(35, 117, 104, 0.94)),
    #2e8373;
}

.whats-new-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 130;
  width: min(420px, calc(100vw - 36px));
  max-height: min(560px, calc(100vh - 132px));
  border: 1px solid rgba(113, 230, 193, 0.32);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(38, 48, 66, 0.98), rgba(19, 26, 38, 0.98)),
    #192231;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.46);
  overflow: hidden;
}

.whats-new-panel-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(126, 143, 168, 0.22);
  background: rgba(14, 20, 30, 0.48);
}

.whats-new-panel-head strong {
  color: #f6fbff;
  font-size: 18px;
}

.whats-new-panel-head span {
  color: #8ee8ce;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.whats-new-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px;
  border-bottom: 1px solid rgba(126, 143, 168, 0.18);
  background: rgba(14, 20, 30, 0.34);
}

.whats-new-tab {
  height: 34px;
  border-color: rgba(126, 143, 168, 0.24);
  border-radius: 7px;
  background:
    linear-gradient(180deg, rgba(38, 49, 68, 0.92), rgba(24, 32, 46, 0.94)),
    #1b2636;
  color: #c7d6e6;
  font-size: 13px;
}

.whats-new-tab.active {
  border-color: rgba(113, 230, 193, 0.62);
  background:
    linear-gradient(180deg, rgba(66, 170, 149, 0.9), rgba(35, 117, 104, 0.96)),
    #2e8373;
  color: #f6fffb;
}

.whats-new-list {
  display: grid;
  gap: 1px;
  max-height: 422px;
  overflow-y: auto;
  background: rgba(126, 143, 168, 0.12);
}

.whats-new-list article {
  display: grid;
  gap: 6px;
  background:
    linear-gradient(180deg, rgba(34, 43, 59, 0.98), rgba(24, 32, 46, 0.98)),
    #1b2534;
  padding: 16px 18px;
}

.whats-new-list time {
  color: #8ee8ce;
  font-size: 12px;
  font-weight: 950;
}

.whats-new-list h2 {
  color: #f6fbff;
  font-size: 17px;
}

.whats-new-list p {
  margin: 0;
  color: #bfcede;
  font-size: 14px;
  line-height: 1.45;
}

.whats-new-items {
  display: grid;
  gap: 1px;
  max-height: 422px;
  overflow-y: auto;
  background: rgba(126, 143, 168, 0.12);
}

.whats-new-items section {
  display: grid;
  gap: 12px;
  background:
    linear-gradient(180deg, rgba(34, 43, 59, 0.98), rgba(24, 32, 46, 0.98)),
    #1b2534;
  padding: 16px 18px;
}

.new-items-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.new-items-heading > span {
  display: grid;
  gap: 4px;
}

.new-items-heading h2 {
  color: #f6fbff;
  font-size: 17px;
}

.new-items-heading time {
  color: #9fb4ca;
  font-size: 12px;
  font-weight: 800;
}

.new-items-heading > b {
  color: #8ee8ce;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.new-items-grid {
  display: grid;
  gap: 7px;
}

.new-items-grid a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.08), transparent 42%),
    rgba(17, 25, 38, 0.72);
  color: #f6fbff;
  padding: 9px 11px;
  text-decoration: none;
}

.new-items-grid a:hover,
.new-items-grid a:focus-visible {
  border-color: rgba(113, 230, 193, 0.48);
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.13), transparent 44%),
    rgba(24, 35, 52, 0.9);
}

.new-items-grid img {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(154, 196, 239, 0.12);
  border-radius: 6px;
  background: rgba(8, 13, 20, 0.48);
  object-fit: contain;
}

.new-items-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.new-items-grid b {
  overflow: hidden;
  color: #f6fbff;
  font-size: 14px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-items-grid small {
  color: #8ee8ce;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.new-items-empty {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(34, 43, 59, 0.98), rgba(24, 32, 46, 0.98)),
    #1b2534;
  color: #bfcede;
  padding: 18px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--mint);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: 36px;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.26);
}

h2 {
  font-size: 20px;
}

.status {
  min-width: 220px;
  color: #d4e7ff;
  text-align: right;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.22);
}

main {
  padding: 34px 24px 38px;
}

.home-view {
  width: min(1560px, calc(100vw - 64px));
  margin: 0 auto;
}

.home-hero {
  position: relative;
  min-height: 520px;
  border: 1px solid rgba(126, 143, 168, 0.24);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(12, 17, 26, 0.94), rgba(14, 21, 32, 0.78) 48%, rgba(14, 21, 32, 0.28)),
    linear-gradient(180deg, rgba(113, 230, 193, 0.12), transparent 42%, rgba(247, 200, 75, 0.08)),
    url("/assets/world-map.png") center / cover no-repeat;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(180deg, transparent, rgba(12, 17, 26, 0.78));
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 760px;
  min-height: 520px;
  padding: 64px;
}

.home-kicker {
  width: fit-content;
  border: 1px solid rgba(113, 230, 193, 0.38);
  border-radius: 999px;
  background: rgba(14, 25, 34, 0.72);
  color: #9ef4d6;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-hero h2 {
  max-width: 720px;
  color: #f7fbff;
  font-size: 54px;
  line-height: 1.02;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.52);
}

.home-hero p {
  max-width: 660px;
  margin: 0;
  color: #d3e1f2;
  font-size: 20px;
  line-height: 1.55;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.48);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.home-primary-action,
.home-secondary-action {
  display: inline-grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(226, 247, 255, 0.18);
  border-radius: 8px;
  padding: 0 18px;
  color: #f7fbff;
  font-weight: 950;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 22px rgba(0, 0, 0, 0.24);
}

.home-primary-action {
  background:
    linear-gradient(180deg, rgba(71, 177, 156, 0.96), rgba(42, 126, 112, 0.98)),
    #2e8373;
}

.home-secondary-action {
  background:
    linear-gradient(180deg, rgba(65, 77, 102, 0.92), rgba(45, 55, 75, 0.96)),
    #313b4f;
}

.home-primary-action:hover,
.home-primary-action:focus-visible,
.home-secondary-action:hover,
.home-secondary-action:focus-visible,
.home-feature-card:hover,
.home-feature-card:focus-visible {
  border-color: rgba(113, 230, 193, 0.48);
  filter: brightness(1.08);
}

.home-hero-art {
  position: absolute;
  right: 42px;
  bottom: 38px;
  z-index: 1;
  display: grid;
  justify-items: end;
  pointer-events: none;
}

.home-world-map {
  display: none;
}

.home-market-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  width: min(420px, 34vw);
  border: 1px solid rgba(113, 230, 193, 0.28);
  border-radius: 10px;
  background: rgba(18, 25, 36, 0.78);
  padding: 14px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(10px);
}

.home-market-card img {
  width: 64px;
  height: 64px;
  border-radius: 14px;
}

.home-market-card span {
  display: grid;
  gap: 4px;
}

.home-market-card strong {
  color: #f7fbff;
  font-size: 20px;
}

.home-market-card small {
  color: #c8d5e6;
  font-size: 13px;
  font-weight: 800;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.home-feature-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
  min-height: 148px;
  border: 1px solid rgba(126, 143, 168, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(44, 54, 73, 0.92), rgba(26, 34, 48, 0.94)),
    rgba(30, 38, 52, 0.92);
  color: inherit;
  padding: 18px;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.home-feature-card img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 22px rgba(0, 0, 0, 0.22);
}

.home-feature-card span {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.home-feature-card strong {
  color: #f5fbff;
  font-size: 19px;
}

.home-feature-card small {
  color: #b9c8dc;
  font-size: 14px;
  line-height: 1.45;
}

.home-workflow {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.home-workflow-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 300px;
  border: 1px solid rgba(126, 143, 168, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(25, 35, 50, 0.95), rgba(23, 31, 44, 0.92)),
    rgba(28, 36, 50, 0.94);
  padding: 28px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
}

.home-workflow-copy h2 {
  max-width: 520px;
  color: #f6fbff;
  font-size: 34px;
  line-height: 1.08;
}

.home-workflow-copy p {
  max-width: 560px;
  margin: 0;
  color: #c7d6e9;
  font-size: 17px;
  line-height: 1.55;
}

.home-workflow-list {
  display: grid;
  gap: 10px;
}

.home-workflow-list div {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 92px;
  border: 1px solid rgba(126, 143, 168, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(44, 54, 73, 0.88), rgba(24, 32, 46, 0.94)),
    rgba(30, 38, 52, 0.92);
  padding: 18px 18px 18px 52px;
  overflow: hidden;
}

.home-workflow-list div::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 23px;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(113, 230, 193, 0.72);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(113, 230, 193, 0.24);
}

.home-workflow-list div::after {
  content: "";
  position: absolute;
  left: 27px;
  top: 42px;
  bottom: -12px;
  width: 1px;
  background: linear-gradient(180deg, rgba(113, 230, 193, 0.48), transparent);
}

.home-workflow-list div:last-child::after {
  display: none;
}

.home-workflow-list strong {
  color: #f6fbff;
  font-size: 18px;
}

.home-workflow-list span {
  color: #b9c8dc;
  font-size: 14px;
  line-height: 1.45;
}

.home-info-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  border: 1px solid rgba(126, 143, 168, 0.22);
  border-radius: 8px;
  background: rgba(126, 143, 168, 0.14);
  overflow: hidden;
}

.home-info-band div {
  display: grid;
  gap: 5px;
  min-height: 92px;
  background: rgba(21, 28, 40, 0.94);
  padding: 18px;
}

.home-info-band span {
  color: #86dbc6;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-info-band strong {
  color: #f2f7ff;
  font-size: 18px;
}

.split {
  width: min(1960px, calc(100vw - 64px));
  margin: 0 auto;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

label {
  display: grid;
  gap: 7px;
  color: #c8d3e3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

select,
input {
  width: 100%;
  height: 50px;
  border: 1px solid rgba(170, 190, 218, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(57, 69, 91, 0.68), rgba(35, 45, 62, 0.9)),
    var(--field);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -3px 8px rgba(0, 0, 0, 0.16);
}

select {
  cursor: pointer;
}

.search-field {
  position: relative;
}

.search-field span {
  position: absolute;
  left: 13px;
  top: 50%;
  color: #c8d3e3;
  font-size: 22px;
  line-height: 1;
  transform: translateY(-52%);
  pointer-events: none;
}

.search-field input {
  padding-left: 42px;
}

select:focus,
input:focus {
  border-color: rgba(113, 230, 193, 0.72);
  box-shadow: 0 0 0 3px rgba(113, 230, 193, 0.13), inset 0 -3px 8px rgba(0, 0, 0, 0.16);
}

.button-row {
  display: flex;
  gap: 8px;
  min-width: 0;
}

button {
  height: 50px;
  border: 1px solid rgba(226, 247, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(71, 177, 156, 0.96), rgba(42, 126, 112, 0.98)),
    #2e8373;
  color: var(--ink);
  padding: 0 17px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 18px rgba(0, 0, 0, 0.2);
  transition: border-color 140ms ease, transform 140ms ease, filter 140ms ease, background 140ms ease;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

button.secondary {
  border-color: rgba(170, 190, 218, 0.18);
  background:
    linear-gradient(180deg, rgba(65, 77, 102, 0.92), rgba(45, 55, 75, 0.96)),
    #313b4f;
}

.panel-heading span {
  color: #b7c8dc;
  font-size: 12px;
}

.split {
  display: grid;
  grid-template-columns: 420px minmax(900px, 1fr) 310px;
  gap: 20px;
  margin-top: 0;
}

.favorites-panel {
  min-height: 660px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(29, 35, 48, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.favorites-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 778px;
  overflow: auto;
  padding: 10px;
}

.favorite-chip {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  width: 100%;
  min-width: 0;
  min-height: 52px;
  border: 1px solid rgba(255, 198, 77, 0.36);
  border-radius: 8px;
  background: rgba(56, 63, 84, 0.94);
  padding: 6px 12px 6px 8px;
}

.favorite-chip img {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.favorite-chip span {
  overflow: hidden;
  font-size: 15px;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-chip small {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.favorite-chip-remove {
  display: grid;
  grid-column: 3;
  grid-row: 1 / span 2;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.favorite-chip-remove:hover {
  background: rgba(255, 255, 255, 0.08);
}

.empty-inline {
  align-self: center;
  color: var(--muted);
  padding: 0 8px;
}

.favorite-chip,
.world-option,
.monster-chip,
.drop-card,
.item-option,
.map-tile,
.detail-link-button,
.inline-link-button,
.gear-head,
.socket-card {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.inventory,
.results {
  min-height: 660px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(29, 35, 48, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.world-view,
.database-view,
.map-view,
.character-view,
.resources-view {
  width: min(1960px, calc(100vw - 64px));
  margin: 0 auto;
}

.world-view,
.database-view,
.character-view {
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 20px;
}

.map-view {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 16px;
  width: min(2240px, calc(100vw - 40px));
}

.resources-view {
  display: grid;
}

.world-list-panel,
.world-detail-panel,
.map-panel,
.map-detail-panel,
.resources-panel {
  min-height: 660px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(29, 35, 48, 0.88);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.resources-panel {
  min-height: 0;
}

.resource-sections {
  display: grid;
  gap: 18px;
  padding: 16px;
}

.resource-section {
  display: grid;
  gap: 10px;
}

.resource-section h3 {
  margin: 0;
  color: #dbe8f7;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.database-type-row {
  border-bottom: 1px solid var(--line);
  padding: 12px;
}

.database-filter-row {
  min-height: 65px;
  border-bottom: 1px solid var(--line);
}

.database-list-panel .item-search-row {
  border-bottom: 1px solid var(--line);
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 14px;
}

.resource-section[aria-label="Community links"] .resource-grid {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
}

.resource-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 96px;
  border: 1px solid rgba(154, 196, 239, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.08), rgba(19, 25, 35, 0.24)),
    rgba(19, 25, 35, 0.55);
  color: var(--ink);
  padding: 16px;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.resource-card::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 2px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, rgba(113, 230, 193, 0.66), transparent);
  opacity: 0;
  transition: opacity 120ms ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: rgba(113, 230, 193, 0.48);
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.13), rgba(19, 25, 35, 0.28)),
    rgba(30, 41, 55, 0.72);
  transform: translateY(-1px);
}

.resource-card.discord-card {
  border-color: rgba(88, 101, 242, 0.28);
}

.resource-card.youtube-card {
  border-color: rgba(255, 0, 0, 0.24);
}

.resource-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at 35% 28%, rgba(113, 230, 193, 0.12), transparent 48%),
    rgba(12, 18, 28, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.22);
}

.resource-icon img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.resource-card[href$="elemental-chart.png"] .resource-icon img {
  width: 44px;
  height: 44px;
  border-radius: 5px;
}

.resource-card span:last-child {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.resource-card strong {
  color: #f8fbff;
  font-size: 20px;
  line-height: 1.1;
}

.resource-card small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.map-panel {
  overflow: auto;
}

.chart-button {
  min-width: 142px;
}

.database-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.database-density-toggle {
  margin-left: 0;
}

body.modal-open {
  overflow: hidden;
}

.chart-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 26px;
}

.chart-modal.hidden {
  display: none;
}

.chart-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 15, 0.78);
  backdrop-filter: blur(4px);
}

.chart-modal-panel {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(784px, calc(100vw - 52px));
  max-height: calc(100vh - 52px);
  border: 1px solid rgba(113, 230, 193, 0.34);
  border-radius: 10px;
  background: rgba(24, 31, 43, 0.98);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.54);
  overflow: hidden;
}

.chart-modal-body {
  overflow: auto;
  padding: 14px;
}

.price-history-modal-body {
  overflow-x: hidden;
  overflow-y: auto;
}

.chart-modal-body img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.6);
}

.map-detail-panel {
  overflow: visible;
}

.world-list,
.world-details {
  padding: 12px;
}

.world-details {
  position: relative;
}

.world-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 732px;
  overflow: auto;
}

.world-option {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 62px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(47, 55, 74, 0.9);
  color: var(--ink);
  padding: 9px 12px;
  text-align: left;
}

.world-option span,
.world-hero {
  display: grid;
  gap: 4px;
}

.monster-avatar {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.58);
  object-fit: contain;
  padding: 5px;
}

.monster-avatar.large {
  width: 58px;
  height: 58px;
}

.monster-avatar.small {
  width: 34px;
  height: 34px;
  padding: 4px;
}

.world-option small,
.world-hero > span,
.monster-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.world-option b {
  color: var(--gold);
  font-size: 12px;
}

.world-option.active,
.monster-chip:hover,
.character-option:hover {
  border-color: rgba(255, 198, 77, 0.55);
  background: rgba(64, 72, 96, 0.98);
}

.character-option {
  grid-template-columns: 52px 1fr auto;
}

.leaderboard-character-main {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.leaderboard-class-icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  opacity: 0.94;
  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.35));
}

.character-option > b {
  display: grid;
  justify-items: end;
  gap: 2px;
}

.character-option > b small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(247, 200, 75, 0.25);
  border-radius: 8px;
  background: rgba(247, 200, 75, 0.1);
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.character-detail-panel {
  overflow: visible;
}

.character-hero {
  grid-template-columns: minmax(190px, max-content) minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  min-height: 0;
  border-color: rgba(113, 230, 193, 0.28);
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.1), rgba(19, 25, 35, 0.52) 42%),
    rgba(19, 25, 35, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.character-title-block {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.character-title-block strong {
  color: #f8fbff;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.24);
}

.character-title-block small {
  color: #a8d9ff;
  font-size: 12px;
  font-weight: 950;
}

.attribute-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(64px, 1fr));
  align-items: center;
  gap: 8px;
}

.attribute-chip {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.55);
  padding: 6px 8px;
}

.attribute-chip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.attribute-chip span {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.attribute-chip b,
.mini-row b {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.attribute-chip strong {
  color: var(--ink);
  font-size: 16px;
  line-height: 1;
}

.character-gear-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
}

.gear-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.55);
  padding: 10px;
  transition: border-color 140ms ease, background 140ms ease;
}

.gear-card:hover,
.gear-card:focus-within {
  z-index: 15;
  border-color: rgba(113, 230, 193, 0.42);
  background: rgba(28, 37, 52, 0.82);
}

.gear-card > .empty-inline {
  align-self: start;
  padding: 0;
}

.gear-head {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: auto;
  min-height: 82px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  padding: 4px 6px 4px 4px;
  color: inherit;
  text-align: left;
}

.gear-head:hover,
.gear-head:focus-visible {
  border-color: rgba(113, 230, 193, 0.44);
  background: rgba(47, 67, 78, 0.45);
}

.gear-head img {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.44);
  object-fit: contain;
  padding: 5px;
}

.gear-head > span {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.gear-head > span > strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.gear-head > span > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.gear-head > b {
  min-width: 38px;
  border: 1px solid rgba(113, 230, 193, 0.3);
  border-radius: 7px;
  background: rgba(113, 230, 193, 0.09);
  color: var(--mint);
  padding: 6px 8px;
  text-align: center;
}

.gear-head > b:empty {
  display: none;
}

.gear-head em {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  font-style: normal;
}

.gear-card-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  border: 1px solid rgba(247, 200, 75, 0.22);
  border-radius: 5px;
  background: rgba(247, 200, 75, 0.08);
  color: #ffe58a;
  padding: 5px 8px 5px 6px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.gear-card-pill.boss-card {
  border-color: rgba(255, 93, 101, 0.3);
  background: rgba(255, 93, 101, 0.1);
}

.gear-card-pill img {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  object-fit: contain;
  padding: 0;
}

.gear-card-pill span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gear-card-empty {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.gear-popover {
  position: absolute;
  top: calc(100% - 4px);
  left: 10px;
  z-index: 30;
  display: none;
  width: min(420px, calc(100vw - 48px));
  border: 1px solid rgba(113, 230, 193, 0.34);
  border-radius: 8px;
  background: rgba(16, 23, 33, 0.98);
  padding: 12px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.44);
}

.gear-card:nth-child(even) .gear-popover {
  right: 10px;
  left: auto;
}

.gear-card:hover .gear-popover,
.gear-card:focus-within .gear-popover {
  display: grid;
  gap: 10px;
}

.gear-popover-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.gear-popover-head img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.gear-popover-head span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gear-popover-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.gear-popover-head strong {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.15;
}

.gear-popover-head > b {
  border: 1px solid rgba(113, 230, 193, 0.3);
  border-radius: 7px;
  background: rgba(113, 230, 193, 0.09);
  color: var(--mint);
  padding: 6px 8px;
  text-align: center;
}

.mini-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  color: #dbe8f7;
  font-size: 13px;
  line-height: 1.35;
}

.mini-row span {
  overflow-wrap: anywhere;
}

.socket-list {
  display: grid;
  align-content: start;
  gap: 7px;
}

.socket-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  align-self: start;
  width: 100%;
  height: auto;
  min-height: 56px;
  border: 1px solid rgba(247, 200, 75, 0.16);
  border-radius: 7px;
  background: rgba(247, 200, 75, 0.06);
  padding: 8px;
  color: inherit;
  text-align: left;
}

.socket-card:hover,
.socket-card:focus-visible {
  border-color: rgba(247, 200, 75, 0.42);
  background: rgba(247, 200, 75, 0.12);
}

.socket-card.boss-card {
  border-color: rgba(255, 93, 101, 0.28);
  background: rgba(255, 93, 101, 0.08);
}

.socket-card img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.socket-card span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.socket-card b {
  color: #ffe58a;
  font-size: 13px;
  line-height: 1.15;
}

.socket-card small,
.socket-card em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.3;
}

.socket-card em .stat-green,
.gear-stats .stat-green {
  color: #67e85d;
  font-weight: 950;
}

.socket-card em .stat-red,
.gear-stats .stat-red {
  color: #ff5d65;
  font-weight: 950;
}

.gear-stats {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gear-stats li {
  border-radius: 6px;
  background: rgba(10, 15, 24, 0.36);
  color: #dbe8f7;
  padding: 7px 8px;
  font-size: 12px;
  line-height: 1.3;
}

.skill-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.skill-chip-grid span,
.unmapped-skill-list span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 999px;
  background: rgba(19, 25, 35, 0.55);
  padding: 8px 10px;
}

.skill-chip-grid b,
.unmapped-skill-list b {
  overflow: hidden;
  color: #dbe8f7;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-chip-grid small,
.unmapped-skill-list small {
  flex: 0 0 auto;
  color: var(--mint);
  font-size: 12px;
  font-weight: 950;
}

.unmapped-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.unmapped-skill-list span {
  min-width: 70px;
  justify-content: center;
  border-style: dashed;
  opacity: 0.72;
}

.class-tree-stack {
  display: grid;
  gap: 14px;
}

.class-tree {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.42);
  padding: 12px;
}

.class-tree-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.class-tree-title strong {
  color: var(--ink);
  font-size: 17px;
}

.class-tree-title small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.skill-reference-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 8px;
}

.skill-reference-grid span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid rgba(154, 196, 239, 0.12);
  border-radius: 8px;
  background: rgba(10, 15, 24, 0.36);
  padding: 7px 9px;
}

.skill-reference-grid img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: contain;
}

.skill-reference-grid b {
  overflow: hidden;
  color: #dbe8f7;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.skill-reference-grid small {
  color: var(--mint);
  font-size: 11px;
  font-weight: 950;
}

.skill-reference-grid em {
  border: 1px solid rgba(247, 200, 75, 0.22);
  border-radius: 999px;
  background: rgba(247, 200, 75, 0.08);
  color: #ffe58a;
  padding: 2px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.map-tile.active,
.map-tile:hover,
.map-tile:focus-visible {
  border-color: rgba(73, 231, 139, 0.95);
  background: rgba(73, 231, 139, 0.06);
  box-shadow: 0 0 0 2px rgba(73, 231, 139, 0.3);
}

.world-hero {
  border: 1px solid rgba(154, 196, 239, 0.16);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.45);
  padding: 14px;
}

.world-hero-image {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
}

.world-hero > span > strong {
  font-size: 24px;
}

.map-grid {
  position: relative;
  aspect-ratio: 1719 / 915;
  min-width: 980px;
  padding: 0;
  background:
    linear-gradient(rgba(15, 20, 30, 0.08), rgba(15, 20, 30, 0.08)),
    url("/assets/world-map.png") center / cover no-repeat;
}

.map-tile {
  position: absolute;
  left: var(--tile-x);
  top: var(--tile-y);
  width: var(--tile-w);
  height: var(--tile-h);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  min-height: 0;
  border: 3px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  padding: 8px;
  text-align: center;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
}

.map-tile strong {
  opacity: 0;
  font-size: 14px;
  line-height: 1.05;
  white-space: normal;
  transition: opacity 120ms ease;
}

.map-tile span {
  opacity: 0;
  color: #f3f4f6;
  font-size: 12px;
  font-weight: 900;
  transition: opacity 120ms ease;
}

.monster-grid,
.drop-grid,
.tag-list {
  display: grid;
  gap: 8px;
}

.monster-chip {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  height: auto;
  min-height: 52px;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.55);
  padding: 7px 10px;
  text-align: left;
}

.monster-chip .monster-avatar.small {
  width: 34px;
  height: 34px;
}

.monster-chip span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.monster-chip strong {
  font-size: 14px;
  line-height: 1.1;
}

.boss-monster-name,
.boss-monster-link strong {
  color: #ff8f8a;
}

.boss-only-item-name,
.item-copy .boss-only-item-name,
.detail-head .boss-only-item-name,
.drop-card .boss-only-item-name,
.favorite-chip .boss-only-item-name,
.gear-head .boss-only-item-name,
.gear-popover-head .boss-only-item-name,
.socket-card .boss-only-item-name,
.gear-card-pill .boss-only-item-name,
.row-item-name.boss-only-item-name {
  color: #ff9a8f;
}

.monster-chip small {
  font-size: 11px;
  line-height: 1.15;
}

.monster-profit-heading {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 0;
  margin: -22px 4px 8px 0;
  color: #b8c9dc;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.monster-profit-help {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid rgba(113, 230, 193, 0.34);
  border-radius: 999px;
  background: rgba(113, 230, 193, 0.1);
  color: #8ee8ce;
  font-size: 10px;
  cursor: help;
}

.monster-profit-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 30;
  display: none;
  width: min(270px, calc(100vw - 48px));
  border: 1px solid rgba(113, 230, 193, 0.28);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.98);
  color: #dce8f7;
  padding: 9px 10px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
  text-transform: none;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.monster-profit-help:hover .monster-profit-tooltip,
.monster-profit-help:focus-visible .monster-profit-tooltip {
  display: block;
}

.monster-value-badge {
  display: inline-flex;
  grid-column: 3;
  grid-row: 1 / span 2;
  align-items: center;
  gap: 5px;
  align-self: center;
  justify-self: end;
  border: 1px solid rgba(247, 200, 75, 0.18);
  border-radius: 999px;
  background: rgba(247, 200, 75, 0.07);
  color: #ffe16f;
  padding: 4px 7px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.monster-value-badge .coin {
  width: 12px;
  height: 12px;
  border-width: 1px;
}

.boss-monster-chip {
  border-color: rgba(255, 116, 112, 0.46);
  background:
    linear-gradient(90deg, rgba(255, 116, 112, 0.1), transparent 38%),
    rgba(19, 25, 35, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 116, 112, 0.1);
}

.boss-monster-chip:hover,
.boss-monster-chip:focus-visible {
  border-color: rgba(255, 116, 112, 0.5);
  background:
    linear-gradient(90deg, rgba(255, 116, 112, 0.12), transparent 40%),
    rgba(47, 55, 74, 0.9);
}

.boss-monster-option {
  border-color: rgba(255, 116, 112, 0.42);
  background:
    linear-gradient(90deg, rgba(255, 116, 112, 0.1), transparent 38%),
    rgba(47, 55, 74, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 116, 112, 0.08);
}

.element-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--element-color);
  font-weight: 900;
}

.element-pill img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.35));
}

.weakness-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.weakness-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border: 1px solid rgba(154, 196, 239, 0.18);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.55);
  padding: 7px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.weakness-chip.strong {
  border-color: rgba(113, 230, 193, 0.34);
  background: rgba(38, 77, 65, 0.35);
}

.weakness-chip.resist {
  border-color: rgba(255, 139, 130, 0.32);
  background: rgba(79, 38, 48, 0.32);
}

.weakness-chip b {
  color: var(--mint);
  font-size: 13px;
}

.weakness-chip.resist b {
  color: var(--danger);
}

.hover-drop-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.hover-drop-grid span {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  min-width: 0;
  border: 1px solid rgba(154, 196, 239, 0.12);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.46);
  padding: 5px;
}

.hover-drop-grid img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hover-drop-grid b {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
  overflow-wrap: anywhere;
  white-space: normal;
}

.hover-drop-grid small {
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
}

.empty-hover {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.map-drop-kicker {
  color: var(--mint);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-drop-preview-head {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 1px solid rgba(154, 196, 239, 0.13);
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.08), transparent 60%),
    rgba(13, 19, 29, 0.42);
  padding: 8px;
}

.map-drop-preview-head .monster-avatar {
  width: 44px;
  height: 44px;
}

.map-drop-preview-head span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.map-drop-preview-head strong {
  overflow: hidden;
  font-size: 17px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-drop-preview-head small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.map-drop-average {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  align-self: center;
  border: 1px solid rgba(247, 200, 75, 0.2);
  border-radius: 999px;
  background: rgba(247, 200, 75, 0.08);
  color: #ffe16f;
  padding: 5px 8px;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.map-drop-average .coin {
  width: 13px;
  height: 13px;
  border-width: 1px;
}

.map-drop-popout {
  position: absolute;
  top: var(--popout-y, 70px);
  right: calc(100% + 14px);
  z-index: 50;
  display: none;
  width: min(560px, calc(100vw - 510px));
  max-height: min(520px, calc(100vh - 190px));
  overflow-x: hidden;
  overflow-y: auto;
  border: 1px solid rgba(113, 230, 193, 0.34);
  border-radius: 10px;
  background: rgba(18, 24, 34, 0.98);
  padding: 12px;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.46);
}

.map-drop-popout.visible {
  display: grid;
  gap: 10px;
}

.map-drop-popout h3 {
  margin: 0;
  color: #dbe8f7;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}

.map-drop-popout::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -8px;
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(113, 230, 193, 0.34);
  border-right: 1px solid rgba(113, 230, 193, 0.34);
  background: rgba(18, 24, 34, 0.98);
  transform: rotate(45deg);
}

.drop-grid {
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.drop-grid span,
.drop-card {
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 9px;
  width: 100%;
  height: auto;
  min-height: 56px;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.55);
  padding: 8px;
  color: inherit;
  text-align: left;
}

.drop-card:hover,
.detail-link-button:hover,
.inline-link-button:hover {
  border-color: rgba(113, 230, 193, 0.55);
  background: rgba(47, 67, 78, 0.72);
}

.drop-grid img {
  grid-row: span 2;
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.drop-grid small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.tag-list {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
}

.tag-list span {
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 999px;
  background: rgba(19, 25, 35, 0.55);
  padding: 7px 10px;
  color: #dbe8f7;
  font-size: 12px;
  font-weight: 900;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(31, 39, 55, 0.92);
}

.listing-heading {
  align-items: end;
  flex-wrap: wrap;
}

.listing-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  min-width: 0;
}

.listing-controls button {
  height: 38px;
}

.listing-controls button {
  padding-inline: 12px;
}

.inventory-heading {
  display: flex;
}

.inventory-heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.clear-button-compact {
  height: 34px;
  padding-inline: 12px;
  font-size: 12px;
}

.item-filter-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(24, 31, 43, 0.72);
}

.item-search-row {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: rgba(24, 31, 43, 0.52);
}

.item-filter-row select {
  height: 44px;
}

.item-filter-row label {
  gap: 5px;
}

.item-panel-search {
  min-width: 0;
}

.item-panel-search .search-field input {
  height: 42px;
  border-color: rgba(113, 230, 193, 0.28);
  background:
    linear-gradient(180deg, rgba(39, 54, 76, 0.96), rgba(25, 35, 50, 0.98)),
    #1e2a3c;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(113, 230, 193, 0.07), 0 10px 22px rgba(0, 0, 0, 0.16);
  font-size: 15px;
}

.item-panel-search .search-field span {
  color: #8ee8ce;
  font-size: 18px;
}

.item-panel-search .search-field input::placeholder {
  color: #90a7bd;
}

.item-panel-search .search-field input:hover {
  border-color: rgba(113, 230, 193, 0.5);
}

.market-search-field input {
  padding-right: 94px;
}

.search-boss-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #ff8f8a;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
  transform: translateY(-50%);
  cursor: pointer;
}

.search-boss-toggle input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #ff8f8a;
}

.item-list {
  display: grid;
  gap: 8px;
  max-height: 706px;
  overflow: auto;
  padding: 10px;
}

.item-option {
  position: relative;
  display: grid;
  grid-template-columns: 50px 1fr auto 36px;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: auto;
  min-height: 76px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(47, 55, 74, 0.9);
  padding: 10px 12px;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.item-tooltip {
  position: absolute;
  right: 44px;
  bottom: calc(100% - 6px);
  z-index: 20;
  display: none;
  max-width: 310px;
  border: 1px solid rgba(113, 230, 193, 0.32);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.98);
  color: #dbe8f7;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.45;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
  pointer-events: none;
  white-space: normal;
}

.item-option:hover .item-tooltip,
.item-option:focus-visible .item-tooltip {
  display: block;
}

.item-option:hover {
  border-color: rgba(255, 255, 255, 0.13);
  background: rgba(57, 66, 88, 0.96);
}

.item-option.active {
  border-color: rgba(255, 198, 77, 0.55);
  background: rgba(64, 72, 96, 0.98);
}

.item-option img {
  width: 48px;
  height: 48px;
  border-radius: 9px;
  background: rgba(15, 18, 25, 0.42);
  object-fit: contain;
  padding: 2px;
}

.database-item-option {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 62px;
  border-radius: 8px;
  padding: 9px 12px;
}

.database-item-option img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.database-item-option .item-copy {
  gap: 4px;
}

.database-item-option .item-copy strong {
  font-size: 14px;
  line-height: 1.1;
}

.database-item-option .item-stock {
  min-width: 18px;
  font-size: 12px;
}

.item-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.item-copy strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.item-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
}

.item-copy small,
.card-slot-badge {
  width: fit-content;
  border: 1px solid rgba(154, 196, 239, 0.22);
  border-radius: 999px;
  color: #c7ddf8;
  background: rgba(34, 45, 63, 0.7);
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 800;
}

.card-slot-badge {
  border-color: rgba(113, 230, 193, 0.28);
  background: rgba(113, 230, 193, 0.1);
  color: var(--mint);
}

.boss-type-badge {
  border-color: rgba(255, 93, 101, 0.32);
  background: rgba(255, 93, 101, 0.12);
  color: #ffb7bd;
}

.detail-head .card-slot-badge {
  display: inline-flex;
  margin-left: 6px;
  vertical-align: middle;
}

.item-stock {
  min-width: 34px;
  border-radius: 999px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-align: right;
}

.favorite-toggle {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  color: #b8c4d5;
  font-size: 20px;
  line-height: 1;
}

.favorite-toggle.active {
  color: var(--gold);
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.favorite-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.result-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 auto;
  margin-left: 0;
  min-width: 0;
}

.density-toggle {
  display: inline-flex;
  gap: 4px;
  margin-left: auto;
  border: 1px solid rgba(154, 196, 239, 0.16);
  border-radius: 9px;
  background: rgba(13, 19, 29, 0.4);
  padding: 4px;
}

.density-toggle button {
  height: 28px;
  border-color: transparent;
  background: transparent;
  color: #b9cee4;
  padding: 0 9px;
  box-shadow: none;
  font-size: 12px;
}

.density-toggle button.active {
  border-color: rgba(113, 230, 193, 0.42);
  background: rgba(46, 131, 115, 0.55);
  color: #f6fbff;
}

.freshness-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(154, 196, 239, 0.18);
  border-radius: 8px;
  background: rgba(19, 25, 35, 0.48);
  color: #b9cee4;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.databank-link {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1px solid rgba(113, 230, 193, 0.42);
  border-radius: 8px;
  color: #dffbef;
  background: rgba(46, 131, 115, 0.55);
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.databank-link:hover {
  filter: brightness(1.08);
}

.listing-body {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) minmax(280px, 320px);
  gap: 10px;
  padding: 10px;
  background: rgba(29, 35, 48, 0.98);
}

.table-wrap {
  position: relative;
  overflow: auto;
  max-height: 744px;
  background: transparent;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.price-col {
  width: 300px;
}

.refine-col {
  width: 104px;
}

.count-col {
  width: 116px;
}

th,
td {
  padding: 16px 18px;
  text-align: left;
  white-space: nowrap;
}

th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #1d2635;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.32);
}

thead {
  position: relative;
  z-index: 5;
}

th button {
  width: 100%;
  height: auto;
  min-height: 26px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #b9cee4;
  padding: 0;
  text-align: left;
}

th button:hover {
  transform: none;
}

.column-filter {
  display: grid;
  gap: 6px;
  width: 82px;
  min-width: 82px;
}

.column-filter select {
  height: 28px;
  border-radius: 7px;
  padding: 0 9px;
  font-size: 12px;
}

tbody tr {
  background: rgba(47, 55, 74, 0.92);
}

tbody tr:hover {
  background: rgba(58, 67, 90, 0.98);
}

tbody td:first-child {
  border-radius: 10px 0 0 10px;
}

tbody td:last-child {
  border-radius: 0 10px 10px 0;
}

td.price {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffe58a;
  font-weight: 950;
}

.row-item-name {
  min-width: 96px;
  max-width: 190px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 900;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.row-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: rgba(12, 16, 23, 0.45);
  object-fit: contain;
  padding: 2px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.coin {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #ffef6b;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #fff489 0 14%, transparent 15%),
    radial-gradient(circle, #ffd84e 0 45%, #efaa1f 46% 70%, #9f6c12 71%);
  box-shadow: 0 0 0 2px rgba(126, 87, 14, 0.45), 0 2px 0 rgba(0, 0, 0, 0.22);
}

td.empty {
  height: 180px;
  color: var(--muted);
  text-align: center;
}

.listing-fallback {
  white-space: normal;
}

.listing-fallback strong,
.listing-fallback span {
  display: block;
}

.listing-fallback strong {
  color: #f6fbff;
  font-size: 17px;
}

.listing-fallback span {
  margin-top: 6px;
  color: #b8c8dc;
  font-size: 14px;
  line-height: 1.35;
}

.item-details {
  min-height: 210px;
  border: 1px solid rgba(126, 143, 168, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(38, 48, 66, 0.96), rgba(26, 33, 46, 0.96));
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.detail-head {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: -2px -2px 14px;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.08), transparent 44%, rgba(247, 200, 75, 0.055)),
    rgba(13, 19, 29, 0.38);
  padding: 10px;
}

.detail-head img {
  width: 82px;
  height: 82px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 34% 24%, rgba(113, 230, 193, 0.14), transparent 45%),
    rgba(12, 16, 23, 0.62);
  object-fit: contain;
  padding: 5px;
}

.detail-head strong {
  display: block;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
}

.detail-head .detail-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.detail-badge-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border: 1px solid rgba(154, 196, 239, 0.2);
  border-radius: 999px;
  background: rgba(34, 45, 63, 0.72);
  color: #c7ddf8;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 900;
}

.detail-badge-row .boss-detail-badge {
  border-color: rgba(255, 116, 112, 0.36);
  background: rgba(255, 116, 112, 0.12);
  color: #ffb1ad;
}

.detail-head-actions {
  display: flex;
  align-self: stretch;
  align-items: start;
  justify-content: end;
}

.price-check-button {
  align-self: start;
  border: 1px solid rgba(113, 230, 193, 0.34);
  border-radius: 8px;
  background: rgba(113, 230, 193, 0.1);
  color: var(--mint);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.price-check-button:hover,
.price-check-button:focus-visible {
  border-color: rgba(113, 230, 193, 0.58);
  background: rgba(113, 230, 193, 0.16);
}

.item-details p,
.database-view .world-details p {
  margin: 0 0 12px;
  color: #d3ddea;
  font-size: 15px;
  line-height: 1.5;
}

.slot-badge {
  width: fit-content;
  margin: -2px 0 12px;
  border: 1px solid rgba(247, 200, 75, 0.28);
  border-radius: 7px;
  background: rgba(247, 200, 75, 0.1);
  color: #ffe58a;
  padding: 6px 9px;
  font-size: 12px;
  font-weight: 900;
}

.item-details ul,
.database-view .world-details > ul {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 33, 48, 0.86), rgba(14, 21, 32, 0.86));
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.item-details li,
.database-view .world-details > ul > li {
  border: 0;
  border-bottom: 1px solid rgba(154, 196, 239, 0.11);
  border-radius: 0;
  background: transparent;
  color: #dbe8f7;
  padding: 8px 11px;
  font-size: 14px;
  line-height: 1.35;
}

.item-details li:last-child,
.database-view .world-details > ul > li:last-child {
  border-bottom: 0;
}

.item-details .stat-green,
.database-view .world-details .stat-green {
  color: #67e85d;
  font-weight: 950;
}

.item-details .stat-red,
.database-view .world-details .stat-red {
  color: #ff5d65;
  font-weight: 950;
}

.detail-section {
  margin-top: 16px;
  border-top: 1px solid rgba(126, 143, 168, 0.18);
  padding-top: 14px;
}

.detail-section h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.2;
}

.detail-section p {
  margin: 0 0 8px;
}

.price-history-section {
  display: grid;
  gap: 10px;
}

.price-history-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.price-history-heading h3 {
  margin-bottom: 0;
}

.price-history-heading span {
  color: #9fb0c6;
  font-size: 12px;
  font-weight: 800;
}

.price-history-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.price-history-summary > span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(154, 196, 239, 0.13);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.38);
  padding: 9px;
}

.price-history-summary small {
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-history-summary b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f6fbff;
  font-size: 15px;
  font-weight: 950;
}

.price-history-summary b.up {
  color: #67e85d;
}

.price-history-summary b.down {
  color: #ff5d65;
}

.price-history-summary b.flat {
  color: #dce8f7;
}

.price-history-summary .coin {
  width: 13px;
  height: 13px;
  border-width: 1px;
}

.price-history-graph-button {
  height: auto;
  min-height: 0;
  padding: 0 13px;
}

.price-history-empty {
  margin: 0;
  border: 1px solid rgba(154, 196, 239, 0.12);
  border-radius: 7px;
  background: rgba(19, 25, 35, 0.45);
  color: #b8c8dc;
  padding: 12px;
}

.price-history-chart {
  position: relative;
  border: 1px solid rgba(154, 196, 239, 0.13);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.38);
  padding: 12px;
}

.price-history-chart svg {
  display: block;
  width: 100%;
  height: 240px;
}

.price-history-modal-panel {
  width: min(920px, calc(100vw - 36px));
}

.price-history-modal-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.price-history-modal-title img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(154, 196, 239, 0.18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(30, 38, 52, 0.8), rgba(13, 18, 27, 0.92));
  object-fit: contain;
  padding: 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 12px rgba(0, 0, 0, 0.22);
}

.price-history-modal-title span {
  min-width: 0;
  overflow: hidden;
  font-size: 24px;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-history-modal-body .price-history-chart svg {
  height: 360px;
}

.price-history-modal-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.price-history-modal-stats > span {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(154, 196, 239, 0.13);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.42);
  padding: 10px;
}

.price-history-modal-stats small {
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-history-modal-stats b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f6fbff;
  font-size: 15px;
  font-weight: 950;
}

.price-history-modal-stats b.up {
  color: #67e85d;
}

.price-history-modal-stats b.down {
  color: #ff5d65;
}

.price-history-modal-stats b.flat {
  color: #dce8f7;
}

.price-history-mode-row {
  display: inline-flex;
  gap: 6px;
  align-self: start;
  border: 1px solid rgba(154, 196, 239, 0.16);
  border-radius: 9px;
  background: rgba(13, 19, 29, 0.42);
  padding: 5px;
}

.price-history-mode-row button {
  height: 32px;
  border-color: transparent;
  background: transparent;
  color: #b9cee4;
  padding: 0 12px;
  box-shadow: none;
  font-size: 12px;
}

.price-history-mode-row button small {
  color: inherit;
  opacity: 0.72;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.price-history-mode-row button.active {
  border-color: rgba(113, 230, 193, 0.46);
  background: rgba(46, 131, 115, 0.58);
  color: #f6fbff;
}

.price-history-mode-row button:hover {
  transform: none;
}

.price-history-chart .axis-line {
  stroke: rgba(180, 202, 230, 0.22);
  stroke-width: 1;
}

.price-history-chart .grid-line {
  stroke: rgba(180, 202, 230, 0.1);
  stroke-width: 1;
}

.price-history-chart .axis-label {
  fill: #b8c8dc;
  font-size: 13px;
  font-weight: 950;
}

.price-history-chart .axis-tick {
  fill: #8192aa;
  font-size: 11px;
  font-weight: 850;
}

.price-history-chart .x-tick {
  fill: #a8b8cd;
}

.price-history-chart polyline {
  fill: none;
  stroke: var(--mint);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 5;
  filter: drop-shadow(0 0 5px rgba(113, 230, 193, 0.28));
}

.price-history-chart .history-area {
  fill: url(#priceHistoryFill);
  stroke: none;
}

.price-history-chart circle {
  fill: #ffe16f;
  stroke: rgba(10, 13, 19, 0.92);
  stroke-width: 2.5;
  cursor: help;
}

.price-history-chart circle:hover {
  fill: #fff08b;
  stroke: rgba(113, 230, 193, 0.9);
}

.price-history-outlier-note {
  margin: 8px 0 0;
  color: #9fb0c6;
  font-size: 12px;
  font-weight: 850;
}

.price-history-tooltip {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -100%);
  border: 1px solid rgba(113, 230, 193, 0.38);
  border-radius: 7px;
  background: rgba(13, 19, 29, 0.98);
  color: #f6fbff;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.price-history-tooltip::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(113, 230, 193, 0.38);
  border-bottom: 1px solid rgba(113, 230, 193, 0.38);
  background: rgba(13, 19, 29, 0.98);
  transform: translateX(-50%) rotate(45deg);
}

.price-history-single-point {
  display: grid;
  gap: 4px;
  border-radius: 7px;
  background: rgba(19, 25, 35, 0.58);
  color: #b8c8dc;
  padding: 10px;
}

.price-history-single-point span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.price-history-single-point b {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f6fbff;
  font-size: 16px;
}

.price-history-single-point small {
  color: #9fb0c6;
  font-size: 12px;
}

.price-history-single-point .coin {
  width: 13px;
  height: 13px;
  border-width: 1px;
}

.crafting-cost-card,
.farming-value-head,
.farming-drop-row,
.farming-drop-header,
.issue-option,
.issue-card {
  border: 1px solid rgba(154, 196, 239, 0.13);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.38);
}

.crafting-cost-card {
  display: grid;
  gap: 10px;
  margin-top: 9px;
  padding: 10px;
}

.crafting-cost-head {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.farming-value-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.crafting-cost-head strong,
.farming-value-head span {
  color: #dce8f7;
  font-weight: 950;
}

.farming-value-head small {
  margin-left: 6px;
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 850;
}

.crafting-cost-head b,
.farming-value-head b,
.farming-drop-row > b {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #ffe16f;
  font-weight: 950;
  text-align: right;
}

.crafting-cost-head b {
  justify-content: flex-start;
  text-align: left;
}

.crafting-cost-lines,
.farming-drop-list,
.issue-list {
  display: grid;
  gap: 6px;
}

.crafting-cost-lines > span,
.farming-drop-row,
.farming-drop-header,
.issue-list a {
  display: grid;
  grid-template-columns: 28px minmax(0, 1.35fr) minmax(86px, 0.5fr) minmax(82px, 0.45fr);
  align-items: center;
  gap: 8px;
  border-radius: 7px;
  background: rgba(19, 25, 35, 0.58);
  color: #dce8f7;
  padding: 7px;
  text-decoration: none;
}

.crafting-cost-lines > span {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 3px 9px;
  padding: 8px;
}

.farming-drop-header {
  min-height: 30px;
  background: rgba(11, 17, 27, 0.5);
  color: #9fb0c6;
  padding-block: 6px;
}

.farming-drop-header span {
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

.farming-drop-header span:nth-child(3),
.farming-drop-header span:nth-child(4) {
  text-align: right;
}

.crafting-cost-lines img,
.farming-drop-row img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.crafting-cost-lines img {
  grid-row: 1 / span 2;
}

.crafting-cost-lines small,
.farming-drop-row small,
.issue-list small {
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 850;
}

.crafting-cost-lines small,
.farming-drop-row small {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.crafting-cost-lines b,
.crafting-cost-lines small {
  min-width: 0;
  line-height: 1.18;
}

.crafting-cost-lines b {
  overflow-wrap: anywhere;
}

.crafting-cost-lines small {
  grid-column: 2;
}

.farming-drop-row > span {
  min-width: 0;
}

.farming-drop-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.farming-item-price {
  color: #dce8f7;
}

.farming-kill-value {
  font-size: 15px;
}

.price-confidence {
  display: inline-flex;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
  color: #c7d7e8;
}

.price-confidence.medium {
  color: #ffe16f;
}

.price-confidence.low,
.price-confidence.unknown {
  color: #ffb1aa;
}

.crafting-cost-lines .coin,
.farming-drop-row .coin,
.crafting-cost-head .coin,
.farming-value-head .coin {
  width: 13px;
  height: 13px;
  border-width: 1px;
}

.farming-planner {
  display: grid;
  gap: 9px;
}

.farming-title {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.farming-info {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(113, 230, 193, 0.34);
  border-radius: 999px;
  background: rgba(113, 230, 193, 0.1);
  color: #8ee8ce;
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  cursor: help;
}

.farming-info-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 30;
  display: none;
  width: min(330px, calc(100vw - 48px));
  border: 1px solid rgba(113, 230, 193, 0.28);
  border-radius: 8px;
  background: rgba(16, 23, 34, 0.98);
  color: #dce8f7;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
  text-transform: none;
  transform: translateX(-50%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.farming-info:hover .farming-info-tooltip,
.farming-info:focus-visible .farming-info-tooltip {
  display: block;
}

.farming-value-head {
  padding: 10px;
}

.issue-grid {
  display: grid;
  gap: 12px;
}

.debug-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.debug-summary-grid span {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(154, 196, 239, 0.13);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.38);
  padding: 10px;
}

.debug-summary-grid small {
  color: #9fb0c6;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.debug-summary-grid b {
  color: #ffe16f;
  font-size: 18px;
  font-weight: 950;
}

.debug-health h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.debug-health h3 small {
  color: #9fb0c6;
  font-size: 12px;
}

.health-check-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.health-check-list > span {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 10px;
  border: 1px solid rgba(154, 196, 239, 0.13);
  border-radius: 8px;
  background: rgba(13, 19, 29, 0.38);
  padding: 10px;
}

.health-check-list b {
  color: #f6fbff;
  font-size: 14px;
  font-weight: 950;
}

.health-check-list small {
  grid-column: 1 / -1;
  color: #9fb0c6;
  font-size: 12px;
  font-weight: 850;
}

.health-status {
  align-self: start;
  border: 1px solid rgba(154, 196, 239, 0.14);
  border-radius: 999px;
  padding: 3px 7px;
  text-transform: uppercase;
}

.health-status.ok {
  border-color: rgba(103, 232, 93, 0.34);
  color: #67e85d;
}

.health-status.bad {
  border-color: rgba(255, 93, 101, 0.34);
  color: #ff7077;
}

.issue-card h3 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.issue-card h3 small {
  color: #ffe16f;
  font-size: 13px;
}

.issue-list a {
  grid-template-columns: minmax(0, 1fr) auto;
}

.detail-section p span,
.detail-link-list span,
.detail-link-button,
.inline-link-button {
  color: #5fa6ff;
  font-weight: 900;
}

.detail-link-button,
.inline-link-button {
  display: inline-grid;
  width: 100%;
  height: auto;
  min-height: 0;
  justify-content: start;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 4px 6px;
  text-align: left;
}

.inline-link-button {
  display: inline;
  width: auto;
  padding: 0;
  vertical-align: baseline;
}

.detail-link-list {
  display: grid;
  gap: 5px;
  color: #dce8f7;
  font-size: 15px;
  line-height: 1.35;
}

.detail-link-list b {
  color: var(--ink);
}

.detail-link-list small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.monster-drop-link {
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 6px;
}

.monster-drop-link span {
  display: grid;
  gap: 2px;
}

.monster-drop-link span > b {
  color: #dbe8f7;
}

.monster-drop-link .monster-avatar {
  width: 30px;
  height: 30px;
}

.material-link-button {
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
}

.material-link-button img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(12, 16, 23, 0.45);
  object-fit: contain;
  padding: 2px;
}

.compact-density .item-list {
  gap: 6px;
  max-height: 736px;
  padding: 8px;
}

.compact-density .item-option {
  grid-template-columns: 42px 1fr auto 30px;
  min-height: 58px;
  gap: 9px;
  border-radius: 8px;
  padding: 7px 9px;
}

.compact-density .item-option img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.compact-density .item-copy {
  gap: 2px;
}

.compact-density .item-copy strong {
  font-size: 15px;
}

.compact-density .item-copy small,
.compact-density .card-slot-badge {
  padding: 1px 6px;
  font-size: 11px;
}

.compact-density th,
.compact-density td {
  padding: 10px 14px;
}

.compact-density .row-item-icon {
  width: 28px;
  height: 28px;
}

.compact-density .row-item-name {
  font-size: 15px;
}

.database-view.compact-density .world-list {
  gap: 6px;
  max-height: 760px;
  padding: 8px;
}

.database-view.compact-density .world-option {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 54px;
  gap: 8px;
  padding: 7px 9px;
}

.database-view.compact-density .world-option .monster-avatar {
  width: 34px;
  height: 34px;
}

.database-view.compact-density .world-option span {
  gap: 2px;
}

.database-view.compact-density .world-option strong,
.database-view.compact-density .database-item-option .item-copy strong {
  font-size: 14px;
}

.database-view.compact-density .world-option small,
.database-view.compact-density .database-item-option .item-copy small,
.database-view.compact-density .database-item-option .card-slot-badge,
.database-view.compact-density .database-item-option .slot-badge {
  font-size: 11px;
}

.database-view.compact-density .database-item-option {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 54px;
  gap: 8px;
  padding: 7px 9px;
}

.database-view.compact-density .database-item-option img {
  width: 34px;
  height: 34px;
}

.inventory,
.results,
.favorites-panel,
.world-list-panel,
.world-detail-panel,
.map-panel,
.map-detail-panel,
.resources-panel,
.character-detail-panel {
  border-color: rgba(154, 196, 239, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(35, 44, 60, 0.94), rgba(23, 30, 42, 0.96)),
    rgba(29, 35, 48, 0.94);
  box-shadow: var(--shadow), var(--inset-glow);
}

.panel-heading {
  min-height: 62px;
  border-bottom-color: rgba(154, 196, 239, 0.18);
  background:
    linear-gradient(90deg, rgba(113, 230, 193, 0.08), transparent 38%, rgba(247, 200, 75, 0.055)),
    linear-gradient(180deg, rgba(40, 50, 70, 0.96), rgba(29, 37, 52, 0.96));
}

.panel-heading h2,
.detail-section h3,
.resource-section h3 {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.24);
}

.item-filter-row,
.database-type-row,
.database-filter-row,
.item-search-row {
  background:
    linear-gradient(180deg, rgba(25, 33, 47, 0.84), rgba(21, 28, 40, 0.76));
}

.item-list,
.world-list,
.favorites-list {
  background: rgba(13, 18, 28, 0.18);
}

.item-option,
.world-option,
.monster-chip,
.favorite-chip,
tbody tr {
  border-color: rgba(154, 196, 239, 0.08);
  background:
    linear-gradient(180deg, rgba(56, 66, 88, 0.92), rgba(42, 51, 70, 0.94));
  transition: border-color 120ms ease, background 120ms ease, transform 120ms ease, box-shadow 120ms ease;
}

.item-option:hover,
.world-option:hover,
.monster-chip:hover,
.character-option:hover,
.favorite-chip:hover,
tbody tr:hover {
  border-color: rgba(113, 230, 193, 0.36);
  background:
    linear-gradient(180deg, rgba(65, 77, 101, 0.96), rgba(47, 58, 80, 0.98));
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.resource-card:hover::after,
.resource-card:focus-visible::after {
  opacity: 1;
}

.boss-monster-chip,
.boss-monster-option {
  border-color: rgba(255, 116, 112, 0.46);
  background:
    linear-gradient(90deg, rgba(255, 116, 112, 0.1), transparent 38%),
    linear-gradient(180deg, rgba(56, 66, 88, 0.92), rgba(42, 51, 70, 0.94));
  box-shadow: inset 0 0 0 1px rgba(255, 116, 112, 0.09);
}

.boss-monster-chip:hover,
.boss-monster-chip:focus-visible,
.boss-monster-option:hover,
.boss-monster-option:focus-visible {
  border-color: rgba(255, 116, 112, 0.58);
  background:
    linear-gradient(90deg, rgba(255, 116, 112, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(65, 77, 101, 0.96), rgba(47, 58, 80, 0.98));
}

.boss-only-item-option:hover,
.boss-only-item-option:focus-visible,
.boss-only-item-option.active {
  border-color: rgba(255, 116, 112, 0.42);
  box-shadow: inset 0 0 0 1px rgba(255, 116, 112, 0.12), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.item-option.active,
.world-option.active,
.character-option.active {
  border-color: rgba(247, 200, 75, 0.62);
  background:
    linear-gradient(90deg, rgba(247, 200, 75, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(70, 78, 103, 0.98), rgba(52, 62, 86, 0.98));
  box-shadow: inset 3px 0 0 rgba(247, 200, 75, 0.76), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.item-option img,
.row-item-icon,
.monster-avatar,
.detail-head img,
.resource-icon,
.gear-item-icon,
.socket-card img,
.crafting-cost-lines img,
.farming-drop-row img,
.material-link-button img {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(180deg, rgba(30, 38, 52, 0.8), rgba(13, 18, 27, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 6px 12px rgba(0, 0, 0, 0.22);
}

.item-copy strong,
.row-item-name,
.world-option span,
.detail-head strong {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.24);
}

.item-copy small,
.card-slot-badge,
.slot-badge,
.boss-type-badge {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.item-stock,
td.price,
.crafting-cost-head b,
.farming-value-head b,
.farming-drop-row > b {
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.listing-body,
.world-details,
.item-details {
  background:
    linear-gradient(180deg, rgba(28, 36, 51, 0.98), rgba(22, 29, 42, 0.98));
}

.item-details,
.price-history-chart,
.crafting-cost-card,
.farming-value-head,
.farming-drop-row,
.health-check-list > span,
.debug-summary-grid span,
.issue-card {
  border-color: rgba(154, 196, 239, 0.16);
  background:
    linear-gradient(180deg, rgba(22, 30, 44, 0.76), rgba(13, 19, 29, 0.82));
}

.item-details li,
.database-view .world-details > ul > li,
.crafting-cost-lines > span,
.issue-list a {
  border-color: rgba(154, 196, 239, 0.15);
  background:
    linear-gradient(180deg, rgba(24, 33, 48, 0.86), rgba(14, 21, 32, 0.86));
}

.item-details li,
.database-view .world-details > ul > li {
  background: transparent;
}

.resource-card {
  border-color: rgba(154, 196, 239, 0.18);
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(37, 47, 66, 0.88), rgba(21, 29, 42, 0.9));
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: rgba(247, 200, 75, 0.44);
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(46, 58, 80, 0.94), rgba(25, 34, 49, 0.94));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.map-panel {
  background:
    linear-gradient(180deg, rgba(35, 44, 60, 0.78), rgba(23, 30, 42, 0.92)),
    rgba(29, 35, 48, 0.9);
}

.map-tile {
  transition: border-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, background 120ms ease;
}

.map-tile.active,
.map-tile:hover,
.map-tile:focus-visible {
  box-shadow: 0 0 0 2px rgba(113, 230, 193, 0.28), 0 10px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

th {
  background:
    linear-gradient(180deg, rgba(34, 44, 62, 0.98), rgba(24, 32, 46, 0.98));
}

tbody tr {
  outline: 1px solid rgba(154, 196, 239, 0.05);
}

.freshness-badge,
.databank-link,
.price-check-button,
.price-history-graph-button {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.16);
}

.inventory,
.results,
.favorites-panel,
.world-list-panel,
.world-detail-panel,
.map-panel,
.map-detail-panel,
.resources-panel,
.character-detail-panel {
  position: relative;
}

.inventory::before,
.results::before,
.favorites-panel::before,
.world-list-panel::before,
.world-detail-panel::before,
.map-panel::before,
.map-detail-panel::before,
.resources-panel::before,
.character-detail-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(113, 230, 193, 0.18), transparent 24%, transparent 76%, rgba(247, 200, 75, 0.14)) top / 100% 1px no-repeat,
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 94px) top / 100% 100% no-repeat;
  pointer-events: none;
}

.inventory > *,
.results > *,
.favorites-panel > *,
.world-list-panel > *,
.world-detail-panel > *,
.map-panel > *,
.map-detail-panel > *,
.resources-panel > *,
.character-detail-panel > * {
  position: relative;
  z-index: 1;
}

.rank-badge {
  background:
    linear-gradient(180deg, rgba(247, 200, 75, 0.18), rgba(122, 83, 18, 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 6px 14px rgba(0, 0, 0, 0.18);
}

.world-option:nth-child(1) .rank-badge {
  border-color: rgba(255, 225, 111, 0.58);
  color: #fff0a3;
}

.world-option:nth-child(2) .rank-badge {
  border-color: rgba(205, 221, 238, 0.48);
  color: #e3edf7;
}

.world-option:nth-child(3) .rank-badge {
  border-color: rgba(205, 145, 76, 0.52);
  color: #f0bb84;
}

.attribute-chip {
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.06), transparent 58%),
    rgba(13, 19, 29, 0.48);
}

.attribute-chip:hover {
  border-color: rgba(113, 230, 193, 0.34);
  background:
    linear-gradient(135deg, rgba(113, 230, 193, 0.1), transparent 58%),
    rgba(21, 29, 42, 0.72);
}

.gear-card {
  background:
    linear-gradient(180deg, rgba(25, 34, 49, 0.74), rgba(13, 19, 29, 0.58));
}

.gear-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(113, 230, 193, 0.22), transparent);
  pointer-events: none;
}

.gear-head > b {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 18px rgba(113, 230, 193, 0.08);
}

.gear-card-pill {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.map-drop-popout,
.gear-popover,
.item-tooltip,
.price-history-tooltip,
.chart-modal-panel {
  background:
    linear-gradient(180deg, rgba(25, 34, 49, 0.99), rgba(12, 18, 28, 0.99));
}

.chart-modal-backdrop {
  background:
    linear-gradient(135deg, rgba(8, 12, 20, 0.86), rgba(8, 12, 20, 0.74)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 28px);
}

.price-history-chart polyline {
  filter: drop-shadow(0 0 6px rgba(113, 230, 193, 0.36));
}

.price-history-chart circle {
  filter: drop-shadow(0 0 4px rgba(255, 225, 111, 0.38));
}

.drop-card,
.detail-link-button,
.inline-link-button,
.material-link-button {
  transition: border-color 120ms ease, background 120ms ease, color 120ms ease, transform 120ms ease;
}

.drop-card:hover,
.detail-link-button:hover,
.material-link-button:hover {
  transform: translateY(-1px);
}

.search-boss-toggle input {
  box-shadow: none;
}

.detail-head > img {
  background:
    radial-gradient(circle at 34% 24%, rgba(113, 230, 193, 0.14), transparent 45%),
    linear-gradient(180deg, rgba(30, 38, 52, 0.86), rgba(13, 18, 27, 0.96));
}

.resource-icon {
  background:
    radial-gradient(circle at 35% 28%, rgba(113, 230, 193, 0.12), transparent 48%),
    linear-gradient(180deg, rgba(30, 38, 52, 0.86), rgba(13, 18, 27, 0.96));
}

::selection {
  background: rgba(113, 230, 193, 0.32);
  color: #f8fbff;
}

.error {
  color: var(--danger);
}

::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: rgba(17, 21, 30, 0.48);
}

::-webkit-scrollbar-thumb {
  border: 3px solid rgba(17, 21, 30, 0.48);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(113, 230, 193, 0.76), rgba(108, 123, 148, 0.86));
}

::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(180deg, rgba(247, 200, 75, 0.82), rgba(113, 230, 193, 0.72));
}

@media (max-width: 1420px) {
  .split {
    grid-template-columns: 380px minmax(0, 1fr);
  }

  .world-view,
  .database-view,
  .map-view,
  .character-view,
  .resources-view {
    grid-template-columns: 1fr;
  }

  .map-grid {
    min-width: 1040px;
  }

  .favorites-panel {
    grid-column: 1 / -1;
    min-height: auto;
  }

  .favorites-list {
    display: flex;
    overflow-x: auto;
  }

  .favorite-chip {
    width: auto;
    min-width: 170px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1100px) {
  .button-row {
    grid-column: span 2;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .listing-body {
    grid-template-columns: 1fr;
  }

  .listing-heading {
    display: grid;
    grid-template-columns: 1fr;
  }

  .listing-controls .button-row {
    width: 100%;
  }

  .item-filter-row {
    grid-template-columns: 1fr;
  }

  .topbar,
  .app-nav {
    flex-wrap: wrap;
  }

  .map-grid {
    min-width: 980px;
  }

  .home-hero-copy {
    max-width: 720px;
    padding: 48px;
  }

  .home-hero h2 {
    font-size: 44px;
  }

  .home-market-card {
    width: min(390px, calc(100vw - 96px));
  }

  .home-info-band {
    grid-template-columns: 1fr;
  }

  .home-workflow {
    grid-template-columns: 1fr;
  }

  .whats-new {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .topbar {
    display: grid;
    padding: 18px;
  }

  .status {
    min-width: 0;
    text-align: left;
  }

  main {
    padding: 28px 14px 14px;
  }

  .split {
    width: min(100%, calc(100vw - 28px));
  }

  .home-view {
    width: min(100%, calc(100vw - 28px));
  }

  .home-hero {
    min-height: 560px;
    background:
      linear-gradient(180deg, rgba(12, 17, 26, 0.94), rgba(14, 21, 32, 0.78) 58%, rgba(14, 21, 32, 0.38)),
      linear-gradient(180deg, rgba(113, 230, 193, 0.12), transparent 42%, rgba(247, 200, 75, 0.08)),
      url("/assets/world-map.png") center / cover no-repeat;
  }

  .home-hero-copy {
    min-height: 560px;
    padding: 28px;
  }

  .home-hero h2 {
    font-size: 34px;
  }

  .home-hero p {
    font-size: 17px;
  }

  .home-actions {
    display: grid;
  }

  .home-hero-art {
    right: 18px;
    bottom: 18px;
    left: 18px;
  }

  .home-market-card {
    grid-template-columns: 46px minmax(0, 1fr);
    width: 100%;
    padding: 10px;
  }

  .home-market-card img {
    width: 46px;
    height: 46px;
  }

  .home-market-card strong {
    font-size: 16px;
  }

  .home-feature-card {
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 116px;
    padding: 14px;
  }

  .home-feature-card img {
    width: 54px;
    height: 54px;
  }

  .home-workflow-copy {
    min-height: 0;
    padding: 20px;
  }

  .home-workflow-copy h2 {
    font-size: 27px;
  }

  .home-workflow-copy p {
    font-size: 16px;
  }

  .home-workflow-list div {
    padding: 16px 16px 16px 46px;
  }

  .whats-new {
    width: 100%;
  }

  .whats-new-button {
    width: 100%;
  }

  .whats-new-panel {
    right: auto;
    left: 0;
    width: 100%;
  }

  .world-view,
  .database-view,
  .map-view,
  .character-view,
  .resources-view {
    width: min(100%, calc(100vw - 28px));
  }

  .resource-grid {
    grid-template-columns: 1fr;
  }

  .resource-sections {
    padding: 12px;
  }

  .resource-card {
    grid-template-columns: 48px minmax(0, 1fr);
    min-height: 82px;
    padding: 12px;
  }

  .resource-icon {
    width: 46px;
    height: 46px;
  }

  .detail-head {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .detail-head img {
    width: 54px;
    height: 54px;
  }

  .detail-head strong {
    font-size: 19px;
  }

  .price-check-button {
    justify-self: start;
  }

  .detail-head-actions {
    grid-column: 1 / -1;
    justify-content: start;
  }

  .character-gear-grid {
    grid-template-columns: 1fr;
  }

  .character-hero {
    grid-template-columns: 1fr;
  }

  .attribute-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-nav {
    gap: 8px;
  }

  .nav-link {
    min-width: 96px;
  }

  .button-row {
    grid-column: auto;
  }

  .split {
    gap: 14px;
  }
}




