/* Native Diablo II panels retain their original 320 × 432 inventory grid. */
:root {
  --side-panel: clamp(222px, 20vw, 280px);
}
.menu {
  height: 100%;
  overflow: hidden;
  padding: 18px 32px 12px;
  gap: 14px;
}
.masthead {
  min-height: 64px;
}
.tabbar {
  gap: clamp(20px, 3vw, 46px);
}
.menu-main {
  grid-template-columns: var(--side-panel) minmax(240px, 1fr) var(--side-panel);
  gap: clamp(14px, 2.1vw, 32px);
}
.panel-head {
  margin: 15px 14px 10px;
  font-size: 12px;
  gap: 6px;
  letter-spacing: 0;
}
.class-list {
  flex: 1;
  padding: 0 9px;
  gap: 4px;
}
.class-panel {
  grid-column: 1;
  grid-row: 1;
}
.hero-panel {
  grid-column: 2;
  grid-row: 1;
}
.zone-panel {
  grid-column: 3;
  grid-row: 1;
}
.class-panel .class-list {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
}
.class-option {
  flex: 1 0 54px;
  padding: 3px 7px;
  gap: 8px;
  min-height: 54px;
}
.class-option canvas {
  width: 46px;
  height: 57px;
  flex: 0 0 46px;
  object-fit: contain;
}
.class-option strong {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
}
.class-option small {
  font-size: 10px;
}
.class-icon {
  display: inline-block;
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  vertical-align: middle;
  flex-shrink: 0;
}
.class-option .class-icon {
  width: 17px;
  height: 20px;
}
.hero-panel {
  padding: 2px 0 0;
}
.hero-name {
  margin-top: 5px;
  font-size: clamp(24px, 2.6vw, 34px);
}
.hero-stage {
  min-height: 120px;
  overflow: visible;
  align-items: center;
}
.hero-stage:before,
.hero-stage:after {
  display: none;
}
.hero-stage canvas {
  height: 100%;
  max-height: min(45vh, 470px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  aspect-ratio: 44 / 47;
  filter: none;
}
.hero-runeline {
  font-size: 15px;
  margin: -3px 0 4px 16px;
}
.hero-abilities {
  display: flex;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 7px 0;
  border-block: 1px solid #7d704033;
}
.hero-abilities button {
  background: #060605;
  border: 1px solid #6e5f3f;
  padding: 2px;
  width: clamp(26px, 2.8vw, 38px);
  height: clamp(26px, 2.8vw, 38px);
}
.hero-abilities img {
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: contain;
}
.hero-abilities button:hover {
  border-color: #d1b271;
}
.active-picker-row {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 100%;
  margin-top: 8px;
}
.starting-skill.active-picker {
  flex: 1;
  width: auto;
  margin: 0;
  padding: 6px;
  display: flex;
  gap: 8px;
  min-width: 0;
  text-align: left;
}
.active-picker img {
  margin: 0;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.active-picker .auto-tag {
  margin-left: auto;
  font-size: 8px;
  padding: 3px;
}
.active-picker strong {
  font-size: 14px;
}
.active-picker small {
  font-size: 9px;
}
.zone-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.zone-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 9px;
  min-height: 200px;
  gap: 4px;
}
.zone-option {
  flex: 1;
  min-height: 44px;
  padding: 6px;
  gap: 8px;
}
.zone-option strong {
  font-size: 12px;
}
.zone-option small {
  display: block;
  font-size: 9px;
}
.act-medallion {
  width: 31px;
  height: 34px;
  min-width: 31px;
}
.area-picker {
  padding: 10px 12px 14px;
}
.area-picker > label {
  display: block;
  color: #aaa084;
  font-size: 11px;
  margin-bottom: 7px;
}
.campaign-progress,
.choice-countdown {
  height: 4px;
  border: 1px solid #5b5133;
  background: #080908;
  margin-top: 10px;
}
.campaign-progress i,
.choice-countdown i {
  display: block;
  height: 100%;
  background: #a5894c;
}
.area-picker .boss-preview {
  margin-top: 10px;
  padding-top: 5px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.boss-preview small {
  font-size: 10px;
  color: #93866b;
}
.menu-controls {
  display: grid;
  grid-template-columns: var(--side-panel) minmax(240px, 1fr) var(--side-panel);
  gap: clamp(14px, 2.1vw, 32px);
  align-items: end;
}
.menu-controls .mode-box {
  width: 100%;
  min-width: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mode-box > label {
  font: 10px var(--heading);
  color: #9d8a64;
  letter-spacing: 1px;
}
.mode-control {
  justify-self: start;
}
.length-control {
  justify-self: end;
  text-align: right;
}
.start-controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: center;
  min-width: 0;
}
.run-options {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin: 0;
}
.run-options .diablo-select {
  width: 148px;
}
.ranked-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 12px;
}
.start-controls .enter-button {
  width: 100%;
  max-width: 410px;
  min-height: 58px;
  padding: 8px 12px;
  font-size: clamp(13px, 1.5vw, 18px);
}
.menu-footer {
  margin: 0;
  min-height: 18px;
  display: flex;
  gap: 15px;
  font-size: 10px;
}
.menu-footer .version-mark {
  margin-left: auto;
  color: #827860;
}
.full-panel {
  min-width: 0;
  overflow: auto;
  padding-bottom: 18px;
  scrollbar-width: thin;
  scrollbar-color: #77603d #14130f;
}
.economy-page {
  overflow-x: hidden;
}
.economy-page .view-header {
  margin-bottom: 8px;
  padding-bottom: 10px;
}
.view-header {
  margin-bottom: 15px;
  min-height: 32px;
}
.view-header h2 {
  font-size: 22px;
}
.title-with-help {
  display: flex;
  align-items: center;
  gap: 12px;
}
.help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  padding: 0;
  border: 1px solid #73613f;
  border-radius: 50%;
  background: #080806e8;
  color: #b79d68;
  font:
    13px Georgia,
    serif;
}
.help-icon:hover {
  color: #f0dfb9;
  border-color: #c1a976;
}
.subtle-button,
.enter-button,
.page-controls button,
.stock-pager button,
.storage-tabs button,
.armory-storage-tabs button,
.weapon-set-tabs button {
  background-color: #191811;
  background-image: var(--native-button);
  background-size: 100% 100%;
  border: 1px solid #584c35;
  box-shadow: inset 0 0 0 1px #050504;
  color: #c9b788;
  text-shadow: 1px 1px #000;
  border-radius: 0;
}
.subtle-button:hover,
.enter-button:hover,
.storage-tabs button:hover,
.armory-storage-tabs button:hover {
  filter: brightness(1.22);
}
.enter-button small {
  display: block;
  font: 10px var(--body);
  letter-spacing: 0.5px;
  margin-top: 4px;
  color: #a99a79;
}
.diablo-select {
  position: relative;
  min-width: 0;
  display: inline-block;
  width: 100%;
  max-width: 300px;
}
.select-source {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  clip-path: inset(50%);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  padding: 0 !important;
}
.select-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #14130f var(--native-small-button) center/100% 100%;
  min-height: 34px;
  padding: 5px 10px;
  border: 1px solid #796443;
  text-align: left;
  color: #cbb789;
  font-size: 12px;
}
.select-trigger > img,
.select-options img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  image-rendering: pixelated;
  flex: 0 0 22px;
}
.select-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.select-trigger > i {
  margin-left: auto;
  font-style: normal;
  color: #b69b67;
}
.select-options {
  z-index: 250;
  padding: 3px;
  background: #080806f9;
  border: 1px solid #94815a;
  box-shadow: 0 6px 22px #000;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #9c8050 #17150f;
}
.select-options button {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 9px;
  padding: 6px;
  min-height: 34px;
  text-align: left;
  color: #c2b697;
  background: #080806;
  border: 1px solid transparent;
  font-size: 12px;
}
.select-options button:hover,
.select-options button[aria-selected="true"] {
  background: #3a2e1d;
  border-color: #827044;
}
.select-options button:disabled {
  opacity: 0.35;
}
[hidden] {
  display: none !important;
}
#diablo-tooltip {
  position: fixed;
  z-index: 500;
  width: max-content;
  max-width: min(340px, calc(100vw - 20px));
  padding: 10px 13px;
  border: 1px solid #82755c;
  outline: 1px solid #050504;
  box-shadow:
    0 4px 14px #000b,
    inset 0 0 0 1px #15130f;
  color: #d1cdc3;
  background: #000f;
  text-align: center;
  pointer-events: none;
  font: 14px/1.35 var(--body);
}
#diablo-tooltip strong {
  font-weight: 400;
  color: #d5c59c;
  display: block;
  margin-bottom: 4px;
  font-size: 16px;
}
#diablo-tooltip p {
  margin: 5px 0;
}
#diablo-tooltip small,
.item-tip small {
  display: block;
  font-size: 11px;
  color: #a4a094;
}
.item-tip {
  text-align: center;
  line-height: 1.35;
}
.item-tip > strong {
  display: block;
  font-weight: 400;
  font-size: 16px;
  color: #d6d2c7;
}
.item-tip > span {
  display: block;
}
.item-tip.unique > strong,
.rune-word {
  color: #c7b37e !important;
}
.item-tip.magic > strong,
.magic-stat {
  color: #8888ff;
}
.item-tip.rare > strong {
  color: #ffff77 !important;
}
.item-tip.set > strong {
  color: #44d044 !important;
}
.item-price {
  color: #c8b26f;
}
.socket-property {
  margin-top: 6px;
  font-size: 12px;
}
.socket-property > span {
  color: #a39d8c;
  font-size: 11px;
}
.weapon-set-tabs.offhand-tabs {
  left: 247px;
}
.item-tip.runeword > strong {
  color: #c7b37e !important;
}
.armory-workspace {
  display: grid;
  grid-template-columns: 320px 320px;
  justify-content: center;
  gap: 38px;
}
.paper-inventory {
  width: 320px;
}
.paper-title {
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font: 18px var(--heading);
  color: #bda778;
}
.native-paperdoll {
  width: 320px;
  height: 432px;
  background: var(--native-inventory) left top/320px 432px no-repeat;
  position: relative;
  image-rendering: pixelated;
}
.paper-slot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 2px;
}
.paper-slot:hover {
  background: #ad9a5322;
  outline: 1px solid #9b8554;
}
.paper-slot img {
  object-fit: contain;
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
}
.native-backpack {
  position: absolute;
  left: 17px;
  top: 256px;
}
.native-paperdoll .slot-grid,
.native-storage .slot-grid {
  padding: 0;
  border: 0;
  margin: 0;
  gap: 0;
}
.slot-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-template-rows: repeat(var(--rows), var(--cell));
  width: calc(var(--cols) * var(--cell));
  height: calc(var(--rows) * var(--cell));
  position: relative;
  background: transparent;
}
.inventory-cell {
  width: 29px;
  height: 29px;
  border: 0;
  background: transparent;
  padding: 0;
}
.inventory-cell:hover {
  background: #e0d68a22;
}
.grid-item {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  border: 1px solid #234a3f77;
  background: #194d2855;
  cursor: grab;
}
.grid-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  image-rendering: pixelated;
  pointer-events: none;
}
.grid-item:hover,
.grid-item.selected {
  border: 1px solid #d0c07b;
  background: #86723566;
  box-shadow: inset 0 0 8px #000;
  z-index: 2;
}
.socket-mark {
  position: absolute;
  bottom: 1px;
  right: 2px;
  font-size: 10px;
  color: #d0cbb9;
  background: #060604a0;
}
.inventory-gold {
  position: absolute;
  left: 17px;
  top: 385px;
  width: 148px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 5px;
  background: #080705;
  border: 2px ridge #7a6c4f;
  font-size: 14px;
  color: #d1bc7a;
}
.inventory-gold img {
  width: 24px;
  height: 23px;
  object-fit: contain;
}
.inventory-gold output {
  flex: 1;
  text-align: right;
}
.inventory-belt {
  position: absolute;
  left: 176px;
  top: 385px;
  width: 128px;
  height: 32px;
  z-index: 6;
}
.belt-cell {
  position: absolute;
  width: 32px;
  height: 32px;
  border: 2px ridge #71664a;
  padding: 2px;
  background: #050503;
  display: flex;
  align-items: center;
  justify-content: center;
}
.belt-cell img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.belt-cell kbd {
  position: absolute;
  bottom: 0;
  right: 1px;
  font: 9px var(--body);
  background: transparent;
  border: 0;
  color: #aaa082;
  padding: 0;
}
.belt-cell.reserve {
  visibility: hidden;
  opacity: 0;
}
.inventory-belt:hover .reserve,
.inventory-belt:focus-within .reserve,
.inventory-belt.drag-open .reserve {
  visibility: visible;
  opacity: 1;
}
.belt-cell:hover {
  border-color: #d8c28a;
}
.weapon-set-tabs {
  position: absolute;
  top: 24px;
  left: 17px;
  display: flex;
  gap: 4px;
}
.weapon-set-tabs button {
  min-width: 26px;
  height: 22px;
  padding: 0;
  font-size: 11px;
}
.weapon-set-tabs button.active {
  color: #fff1c6;
  border-color: #af965f;
}
.right-inventory {
  width: 320px;
}
.armory-storage-tabs {
  display: flex;
  height: 32px;
  gap: 5px;
}
.armory-storage-tabs button {
  width: 50%;
  font: 13px var(--heading);
}
.storage-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 36px;
}
.storage-tabs button {
  flex: 1;
  min-height: 28px;
  padding: 4px 7px;
  font-size: 11px;
}
.storage-tabs button.active,
.armory-storage-tabs button.active {
  color: #f1d69c;
  border-color: #b5975c;
  filter: brightness(1.12);
}
.vendor-categories button {
  font-size: 10px;
  padding: 4px 2px;
}
.native-storage {
  width: 320px;
  height: 432px;
  position: relative;
  background-size: 320px 432px;
  image-rendering: pixelated;
}
.stash-native {
  background-image: var(--native-stash);
}
.vendor-native {
  background-image: var(--native-vendor);
}
.native-storage-grid {
  position: absolute;
  left: 15px;
  top: 62px;
}
.storage-label {
  position: absolute;
  top: 11px;
  left: 44px;
  right: 44px;
  text-align: center;
  color: #b7a579;
  font: 15px var(--heading);
  text-shadow: 1px 2px #000;
}
.stash-help {
  position: absolute;
  bottom: 30px;
  right: 20px;
}
.vendor-offer {
  cursor: pointer;
  min-height: 0;
  min-width: 0;
  gap: 0;
}
.stock-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 32px;
  font-size: 11px;
}
.stock-pager button {
  width: 32px;
  height: 23px;
}
.item-selection-help {
  position: absolute;
  bottom: 12px;
  left: 15px;
}
.item-inspector.compact {
  margin: 8px auto 0;
  max-width: 678px;
  padding: 9px;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #050504aa;
  border: 1px solid #5d5033;
}
.item-inspector.compact > img {
  width: 50px;
  height: 65px;
  object-fit: contain;
}
.selected-item-description {
  font-size: 12px;
  flex: 1;
}
.selected-item-description .item-tip > strong {
  font-size: 14px;
}
.item-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
  max-width: 180px;
}
.item-actions button {
  font-size: 11px;
  padding: 6px 8px;
}
.run-inventory {
  width: 510px;
  max-width: 95vw;
}
.run-inventory .paper-inventory {
  margin: 0 auto;
}
.run-inventory .paper-title {
  height: 28px;
}
.run-inventory .item-inspector.compact {
  flex-wrap: wrap;
}
.socket-materials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.socket-materials button {
  width: 108px;
  min-height: 80px;
  background: #0a0906;
  border: 1px solid #675a39;
  padding: 6px;
}
.socket-materials img {
  display: block;
  width: 35px;
  height: 35px;
  object-fit: contain;
  margin: 0 auto 8px;
}
.socket-materials span {
  font-size: 12px;
}
.confirm-copy {
  text-align: center;
  padding: 15px 0;
}
.confirm-copy p {
  margin-top: 10px;
  color: #c2b598;
}
.talent-experience {
  max-width: 540px;
  margin: 0 auto 18px;
  text-align: center;
  font-size: 12px;
  color: #b9aa88;
}
.talent-experience > div {
  height: 10px;
  border: 2px ridge #756441;
  margin: 6px 0;
  background: #050504;
}
.talent-experience i {
  display: block;
  height: 100%;
  background: linear-gradient(#e5c45a, #765a16);
}
.talent-experience small {
  font-size: 10px;
  color: #8e846a;
}
.talent-bottom {
  display: flex;
  justify-content: center;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
}
.chronicle-tabs {
  min-width: 240px;
}
.chronicle-page > .full-panel {
  background: none;
  border: none;
  padding: 0;
  box-shadow: none;
  overflow: visible;
}
.chronicle-page > .full-panel:before,
.chronicle-page > .full-panel:after {
  display: none;
}
.chronicle-page .view-tools {
  margin-bottom: 12px;
}
.lobby-loadout {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding: 12px;
  border: 1px solid #6d593a;
  background: #080906aa;
  margin-bottom: 18px;
  font-size: 12px;
}
.lobby-loadout .subtle-button {
  margin-left: auto;
}
.room-members article {
  border: 1px solid #6f5f3c;
  background: #090a07b0;
}
.room-members article > span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.room-members em {
  color: #aaab7a;
}
.room-header h3 {
  color: #d4bb82;
  font: 20px var(--heading);
}
.invite-code {
  border: 1px solid #8b714a;
  padding: 12px 20px;
  color: #e1c88f;
}
.info-monster-preview {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
}
.weapon-swap {
  position: absolute;
  left: 63.5%;
  top: 70%;
  font: 9px var(--body);
  width: 34px;
  height: 17px;
  padding: 0;
  border: 1px solid #93835b;
  background: #11100b;
  color: #c1af7d;
  pointer-events: auto;
}
.shared-choice-timer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  color: #cfba86;
  font-size: 13px;
}
#shared-upgrade-status {
  max-width: 560px;
  margin: 14px auto 0;
}
.choice-party {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  color: #8c8371;
  font-size: 12px;
}
.choice-party .ready {
  color: #a9bd84;
}
.upgrade-card:disabled {
  opacity: 0.72;
}
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  transition: opacity 0.65s ease;
}
.splash-screen.complete {
  opacity: 0;
  pointer-events: none;
}
.splash-logo {
  width: clamp(240px, 32vw, 440px);
  height: auto;
  object-fit: contain;
  animation: splash-logo-in 1.1s ease both;
  image-rendering: auto;
  transform: translateY(-6vh);
}
.splash-loader {
  position: absolute;
  bottom: 8vh;
  width: min(390px, 76vw);
  opacity: 0;
  animation: splash-loader-in 0.7s 0.4s ease both;
}
.splash-load-copy {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #9b8a68;
  font-size: 12px;
  margin-bottom: 12px;
}
#load-percent {
  margin-left: auto;
  color: #c0a66b;
  min-width: 30px;
  text-align: right;
}
.splash-loader .load-track {
  width: 100%;
  height: 5px;
  border: 1px solid #55432a;
  background: #17120c;
}
.splash-loader .load-track i {
  background: #ab803c;
  transition: width 0.2s;
  box-shadow: 0 0 8px #a26b2b;
}
.load-spinner {
  width: 12px;
  height: 12px;
  border: 1px solid #57482e;
  border-top-color: #c4a061;
  border-radius: 50%;
  animation: spin-loader 1.2s linear infinite;
}
@keyframes splash-logo-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes splash-loader-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes spin-loader {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1450px) {
  .menu {
    padding-inline: 45px;
  }
}
@media (max-height: 780px) and (min-width: 801px) {
  .menu {
    padding-top: 10px;
    gap: 9px;
  }
  .masthead {
    min-height: 56px;
  }
  .brand h1 {
    font-size: 30px;
  }
  .brand .eyebrow {
    font-size: 8px;
  }
  .tabbar {
    min-height: 33px;
  }
  .panel-head {
    margin: 10px 11px 7px;
    padding-bottom: 7px;
  }
  .class-option canvas {
    width: 37px;
    height: 46px;
    flex-basis: 37px;
  }
  .class-option {
    min-height: 47px;
    flex-basis: 47px;
  }
  .hero-title {
    margin-top: 2px;
    font-size: 11px;
  }
  .hero-name {
    font-size: 24px;
  }
  .hero-kicker {
    font-size: 8px;
  }
  .hero-abilities {
    padding: 4px 0;
  }
  .hero-abilities button {
    width: 29px;
    height: 29px;
  }
  .zone-option {
    min-height: 39px;
  }
  .zone-list {
    min-height: 190px;
  }
  .area-picker {
    padding: 7px 10px;
  }
  .hero-stage canvas {
    max-height: 40vh;
  }
  .start-controls .enter-button {
    min-height: 49px;
  }
  .select-trigger {
    min-height: 30px;
  }
  .full-panel {
    padding: 16px;
  }
  .economy-page .paper-title {
    height: 44px;
  }
  .economy-page .armory-storage-tabs {
    height: 24px;
  }
  .economy-page .storage-tabs {
    height: 20px;
  }
  .economy-page .storage-tabs button {
    min-height: 20px;
    padding: 1px 5px;
  }
  .economy-page .native-paperdoll,
  .economy-page .native-storage {
    height: 420px;
  }
}
@media (max-width: 1000px) and (min-width: 801px) {
  :root {
    --side-panel: 218px;
  }
  .menu {
    padding-inline: 18px;
  }
  .menu-main,
  .menu-controls {
    gap: 12px;
    grid-template-columns: var(--side-panel) minmax(200px, 1fr) var(
        --side-panel
      );
  }
  .class-option strong {
    font-size: 12px;
  }
  .class-option .class-icon {
    display: none;
  }
  .active-picker .auto-tag {
    display: none;
  }
  .hero-abilities {
    gap: 2px;
  }
  .hero-abilities button {
    width: 27px;
    height: 27px;
  }
  .run-options {
    gap: 7px;
  }
  .run-options .diablo-select {
    width: 124px;
  }
}
@media (max-width: 800px) {
  html,
  body {
    overflow: auto;
  }
  #app {
    min-height: 100dvh;
    height: auto;
  }
  .menu {
    height: auto;
    min-height: 100dvh;
    padding: 12px;
    gap: 12px;
    overflow: visible;
  }
  .masthead {
    grid-template-columns: 1fr auto 1fr;
    min-height: 64px;
  }
  .masthead .brand {
    grid-column: 2;
  }
  .masthead .header-actions {
    grid-column: 3;
  }
  .masthead > div:first-child {
    display: block;
  }
  .tabbar {
    gap: 10px;
    flex-wrap: wrap;
    overflow: visible;
    justify-content: space-between;
    min-height: 35px;
    flex-shrink: 0;
  }
  .nav-tab {
    font-size: 10px;
    letter-spacing: 0.3px;
    padding: 7px 0;
    white-space: nowrap;
  }
  .menu-main {
    display: grid;
    grid-template-columns: minmax(145px, 1fr) minmax(145px, 1fr);
    min-height: 0;
    gap: 10px;
  }
  .hero-panel {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: 390px;
  }
  .hero-stage {
    height: 245px;
    min-height: 220px;
    width: 100%;
    flex: none;
  }
  .hero-stage canvas {
    height: 245px;
    max-height: none;
    width: auto;
  }
  .hero-abilities {
    max-width: 400px;
  }
  .hero-abilities button {
    width: 34px;
    height: 34px;
  }
  .active-picker-row {
    max-width: 440px;
  }
  .class-panel,
  .zone-panel {
    width: 100%;
    min-height: 420px;
  }
  .class-panel {
    grid-column: 1;
    grid-row: 2;
  }
  .zone-panel {
    grid-column: 2;
    grid-row: 2;
  }
  .panel-head {
    font-size: 10px;
    margin-inline: 9px;
  }
  .class-option {
    min-height: 43px;
    padding-inline: 2px;
    gap: 5px;
  }
  .class-option canvas {
    width: 30px;
    height: 38px;
    flex-basis: 30px;
  }
  .class-option strong {
    font-size: 10px;
  }
  .class-option .class-icon {
    width: 13px;
    height: 16px;
  }
  .class-option small {
    font-size: 8px;
  }
  .zone-option strong {
    font-size: 10px;
  }
  .zone-option small {
    font-size: 8px;
  }
  .zone-option {
    gap: 4px;
    padding: 3px;
    min-height: 43px;
  }
  .act-medallion {
    width: 24px;
    min-width: 24px;
    font-size: 12px;
  }
  .menu-controls {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .start-controls {
    grid-row: 2;
    grid-column: 1 / -1;
  }
  .mode-control {
    grid-row: 1;
    grid-column: 1;
  }
  .length-control {
    grid-row: 1;
    grid-column: 2;
  }
  .run-options {
    gap: 22px;
  }
  .full-panel {
    grid-column: 1 / -1;
    max-height: none;
    overflow: visible;
    padding: 14px;
  }
  .view-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .view-header h2 {
    font-size: 19px;
  }
  .armory-workspace {
    display: flex;
    flex-wrap: wrap;
    gap: 5px 20px;
  }
  .paper-title {
    height: 38px;
  }
  .armory-storage-tabs {
    margin-top: 16px;
  }
  .item-inspector.compact {
    flex-wrap: wrap;
  }
  .item-selection-help {
    position: static;
    margin-top: 12px;
  }
  .talent-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .talent-node {
    flex-wrap: nowrap;
  }
  .menu-footer {
    flex-wrap: wrap;
    font-size: 8px;
    gap: 6px;
  }
  .menu-footer .version-mark {
    margin-left: auto;
  }
  .chronicle-tabs {
    min-width: 210px;
  }
  .chronicle-page > .full-panel {
    padding: 0;
  }
  .lobby-loadout {
    gap: 8px;
  }
  .network-profile {
    flex-wrap: wrap;
  }
  .bestiary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .shared-choice-timer {
    font-size: 11px;
  }
  .choice-party {
    font-size: 10px;
  }
  .upgrade-dialog {
    padding: 5px;
  }
  .upgrade-cards {
    gap: 7px;
  }
  .upgrade-card {
    min-height: 270px;
    padding-inline: 7px;
  }
  .run-inventory {
    padding: 15px;
  }
  .overlay {
    padding: 12px;
  }
  .run-inventory .paper-inventory {
    width: 320px;
  }
  .native-control-hints {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .splash-logo,
  .splash-loader {
    animation-duration: 0.01s;
    animation-delay: 0s;
  }
  .splash-screen {
    transition-duration: 0.01s;
  }
}
@media (min-width: 714px) and (max-width: 800px) {
  .economy-page .paper-title {
    height: 68px;
  }
  .economy-page .armory-storage-tabs {
    margin-top: 0;
  }
}
@media (max-width: 390px) {
  .economy-page .armory-workspace,
  .run-inventory .paper-inventory {
    zoom: 0.9;
  }
  .panel-head {
    font-size: 9px;
  }
  .class-option .class-icon {
    width: 12px;
  }
  .class-option strong {
    font-size: 9px;
  }
}
