@font-face {
  font-family: Exocet;
  src: url("../assets/packed/3db7fba41730ca1755f05a5e.otf")
    format("opentype");
  font-display: swap;
}
@font-face {
  font-family: Formal;
  src: url("../assets/packed/e5dd127177f60d208c0f799d.ttf") format("truetype");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --ink: #e0d5ba;
  --muted: #8f8976;
  --gold: #b69a63;
  --line: #75613b;
  --red: #651b15;
  --heading: Exocet, Georgia, serif;
  --body: Formal, Georgia, serif;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0d0e0c;
  color: var(--ink);
  font-family: var(--body);
  font-size: 15px;
}
button,
input,
select {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.4;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid #d8b575;
  outline-offset: 4px;
}
button {
  border: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button:disabled:hover {
  transform: none;
}
a {
  color: var(--gold);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 400;
}
#world,
#vignette,
#grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}
#world {
  z-index: 0;
  touch-action: none;
}
#vignette {
  z-index: 1;
  pointer-events: none;
  box-shadow: inset 0 0 170px 20px #0009;
}
#grain {
  z-index: 9;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' opacity='.6' d='M0 0h180v180H0z'/%3E%3C/svg%3E");
}
#app {
  position: relative;
  z-index: 2;
  height: 100%;
  width: 100%;
}
.loading {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: #0d0e0cf0;
}
.loading h1 {
  font: 32px var(--heading);
  color: #c6a267;
}
.loading p {
  color: var(--muted);
}
.load-track {
  width: 260px;
  height: 3px;
  background: #302b20;
}
.load-track i {
  display: block;
  width: 0;
  height: 100%;
  background: #bba369;
}
.sigil {
  font: 52px Georgia;
  color: var(--gold);
  text-shadow: 0 0 24px #b4713a55;
}
.menu {
  max-width: 1520px;
  margin: 0 auto;
  height: 100%;
  padding: 24px 38px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  animation: arrive 0.5s ease-out;
}
.masthead {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 72px;
}
.brand {
  text-align: center;
  text-shadow: 0 3px 14px #000;
}
.brand .eyebrow {
  font: 10px var(--body);
  letter-spacing: 5px;
  color: #8f8063;
  margin-bottom: 4px;
}
.brand h1 {
  font: clamp(29px, 3vw, 42px) / 1.1 var(--heading);
  color: #d3bc87;
  letter-spacing: 1px;
}
.brand h1 span {
  display: block;
  font-size: 0.44em;
  letter-spacing: 8px;
  margin-top: 3px;
  color: #a9966c;
}
.build-mark {
  font: 10px/1.8 var(--body);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #7e7867;
}
.build-mark i {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7e936a;
  box-shadow: 0 0 8px #7e936a55;
  margin-right: 7px;
}
.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.coin {
  color: #c5aa6e;
}
.icon-button {
  height: 34px;
  min-width: 34px;
  background: #191a15b0;
  border: 1px solid #6a59393d;
  color: #a6997a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia;
  font-size: 18px;
}
.icon-button:hover {
  border-color: #9b8052;
  background: #333022;
}
.tabbar {
  display: flex;
  justify-content: center;
  gap: 28px;
  border-bottom: 1px solid #a18a4d40;
  position: relative;
  min-height: 42px;
}
.tabbar:after,
.tabbar:before {
  content: "◆";
  position: absolute;
  bottom: -5px;
  color: #9c8050;
  font-size: 8px;
}
.tabbar:before {
  left: 0;
}
.tabbar:after {
  right: 0;
}
.nav-tab {
  padding: 9px 4px 14px;
  font: 13px var(--heading);
  letter-spacing: 0.8px;
  background: transparent;
  color: #8b8676;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav-tab:hover {
  color: #d1bc91;
}
.nav-tab.active {
  color: #e1cd9f;
  border-bottom-color: #bba172;
  text-shadow: 0 0 15px #d6b16240;
}
.nav-tab small {
  margin-left: 7px;
  font-family: var(--body);
  font-size: 11px;
  color: #bf9b5e;
}
.menu-main {
  min-height: 0;
  flex: 1;
  display: grid;
  grid-template-columns: 235px minmax(260px, 1fr) 295px;
  gap: 25px;
}
.panel {
  border: 1px solid #89734366;
  box-shadow:
    inset 0 0 0 3px #1c1c1500,
    0 5px 30px #0002;
  background: linear-gradient(150deg, #222018e8, #121510ee);
  position: relative;
}
.panel:before,
.panel:after {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  pointer-events: none;
  border-color: #a28a56;
}
.panel:before {
  top: -2px;
  left: -2px;
  border-top: 2px solid;
  border-left: 2px solid;
  color: #8e7647;
}
.panel:after {
  right: -2px;
  bottom: -2px;
  border-right: 2px solid;
  border-bottom: 2px solid;
  color: #8e7647;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 18px 13px;
  padding-bottom: 11px;
  border-bottom: 1px solid #74624144;
  font: 13px var(--heading);
  color: #c8b483;
  letter-spacing: 0.7px;
}
.panel-head small {
  font: 10px var(--body);
  color: #787762;
}
.class-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding-bottom: 8px;
}
.class-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: auto;
  padding: 0 10px;
  scrollbar-width: thin;
  scrollbar-color: #6b5b36 #161712;
}
.class-option {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  min-height: 54px;
  padding: 5px 11px;
  background: #15171166;
  border: 1px solid transparent;
  position: relative;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.class-option canvas {
  width: 37px;
  height: 42px;
  background: radial-gradient(ellipse, #6f67442b, #11150f00);
  filter: brightness(0.8);
  opacity: 0.8;
  image-rendering: pixelated;
}
.class-option strong {
  font: 14px var(--heading);
  display: block;
  color: #aaa38e;
}
.class-option small {
  display: block;
  font-size: 10px;
  color: #686c5c;
  margin-top: 2px;
}
.class-option:hover {
  background: #39332466;
}
.class-option.selected {
  border-color: #a48c535f;
  background: linear-gradient(90deg, #53482a77, #24251a55);
}
.class-option.selected:before {
  content: "";
  position: absolute;
  left: -1px;
  top: 20%;
  height: 60%;
  width: 2px;
  background: #cab17a;
  box-shadow: 0 0 12px #caad65aa;
}
.class-option.selected strong {
  color: #e0c792;
}
.class-option.selected canvas {
  filter: none;
  opacity: 1;
}
.class-option.selected small {
  color: #a49a7b;
}
.class-hint {
  padding: 15px 19px 0;
  color: #767965;
  font-size: 11px;
  line-height: 1.5;
  margin-top: auto;
}
.hero-panel {
  position: relative;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px 0;
  text-align: center;
}
.hero-kicker {
  font-size: 10px;
  color: #aa9c78;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.hero-name {
  font: 30px var(--heading);
  color: #d7c6a2;
  margin-top: 6px;
  text-shadow: 0 3px 10px #000;
}
.hero-title {
  font-size: 12px;
  color: #8e927d;
  margin-top: 5px;
}
.hero-stage {
  flex: 1;
  width: 100%;
  min-height: 180px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}
.hero-stage:before {
  content: "";
  position: absolute;
  bottom: 15px;
  left: 15%;
  right: 15%;
  height: 70%;
  background: radial-gradient(ellipse at bottom, #bb8c3a22, transparent 66%);
}
.hero-stage:after {
  content: "";
  position: absolute;
  left: 20%;
  right: 20%;
  bottom: 10px;
  height: 17px;
  border-radius: 50%;
  background: #0009;
  box-shadow: 0 0 35px #9b682e22;
}
.hero-stage canvas {
  width: auto;
  max-width: 100%;
  height: min(30vh, 300px);
  position: relative;
  z-index: 1;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 28px #c49f3930);
}
.hero-runeline {
  font: 20px Georgia;
  color: #8d7048;
  opacity: 0.55;
  letter-spacing: 16px;
  margin: 0 0 5px 16px;
  user-select: none;
}
.hero-description {
  max-width: 350px;
  font-size: 13px;
  line-height: 1.55;
  color: #999886;
  min-height: 42px;
  margin-bottom: 14px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  border-block: 1px solid #9c845240;
  padding: 11px 0;
}
.hero-stats > div + div {
  border-left: 1px solid #a38d5330;
}
.hero-stats small {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #817f6d;
  text-transform: uppercase;
}
.hero-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: #d4c7a5;
  margin-top: 4px;
}
.hero-stats strong em {
  font-size: 11px;
  font-style: normal;
  color: #82806d;
  margin-left: 2px;
}
.starting-skill {
  display: flex;
  width: 100%;
  gap: 10px;
  align-items: center;
  text-align: left;
  margin-top: 13px;
  padding: 0 12px;
}
.skill-icon {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid #837347;
  background: #11140f;
  box-shadow: 0 2px 6px #0008;
}
.starting-skill small {
  display: block;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #7b7e6d;
}
.starting-skill strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #c9ba93;
  margin-top: 3px;
}
.starting-skill .auto-tag {
  margin-left: auto;
  font-size: 9px;
  color: #8b9a79;
  border: 1px solid #86916a40;
  padding: 4px 6px;
  white-space: nowrap;
  letter-spacing: 1px;
}
.zone-panel {
  padding-bottom: 12px;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.zone-list {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #6b5b36 #161712;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.zone-option {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  gap: 12px;
  padding: 13px 11px;
  min-height: 68px;
  text-align: left;
  border: 1px solid #6c62433d;
  background: linear-gradient(110deg, #3333294d, #12171199);
  transition: 0.2s;
}
.zone-option.selected {
  border-color: #b1985ca6;
  background: linear-gradient(110deg, #4c472a99, #1c241aaa);
  box-shadow: inset 0 0 25px #b2923f0c;
}
.zone-option:hover:enabled {
  border-color: #a68c55;
}
.zone-option:disabled {
  opacity: 0.42;
}
.act-medallion {
  font: 18px var(--heading);
  color: #ae9a6e;
  width: 30px;
  min-width: 30px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #8f7e4e66;
  transform: rotate(45deg);
  background: #24271c88;
}
.act-medallion i {
  font-style: normal;
  transform: rotate(-45deg);
}
.zone-option strong {
  display: block;
  font: 12px var(--heading);
  color: #beb18f;
  line-height: 1.25;
}
.zone-option small {
  display: block;
  margin-top: 5px;
  font-size: 10px;
  color: #777c65;
}
.zone-option.selected strong {
  color: #e0ca98;
}
.zone-option .zone-check {
  margin-left: auto;
  font-size: 14px;
  color: #bfa46a;
}
.zone-info {
  margin: 12px 18px 0;
  padding-top: 12px;
  border-top: 1px solid #8a76523d;
  line-height: 1.5;
}
.zone-info p {
  color: #8c8c76;
  font-size: 12px;
}
.boss-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  color: #c4ae7e;
  font-size: 11px;
}
.boss-preview small {
  color: #797b65;
}
.menu-controls {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 18px;
  min-height: 64px;
}
.mode-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #7f6a3c77;
  background: #191b13d9;
  padding: 7px 15px;
  min-width: 170px;
}
.mode-box label {
  font-size: 9px;
  color: #817c66;
  text-transform: uppercase;
  letter-spacing: 1.7px;
  margin-bottom: 6px;
}
.mode-box select {
  border: 0;
  background: transparent;
  color: #cdbb94;
  font-size: 12px;
  outline: none;
  padding: 0;
  cursor: pointer;
}
.mode-box select option {
  background: #1c2017;
  color: #d4c9ab;
}
.enter-button {
  min-width: 350px;
  max-width: 500px;
  flex: 1;
  padding: 12px 25px;
  border: 1px solid #ba9b5c;
  background: linear-gradient(#69251c, #431812 48%, #381610 49%, #571f15);
  box-shadow:
    inset 0 0 0 3px #1f100b99,
    0 0 25px #0006;
  color: #e1c9a0;
  text-shadow: 0 1px 2px #000;
  font: 18px var(--heading);
  letter-spacing: 0.5px;
  position: relative;
  transition: 0.2s;
}
.enter-button:before,
.enter-button:after {
  content: "◆";
  position: absolute;
  top: calc(50% - 5px);
  color: #bb9a5c;
  font-size: 9px;
}
.enter-button:before {
  left: 13px;
}
.enter-button:after {
  right: 13px;
}
.enter-button:hover {
  background: linear-gradient(#823326, #571d14);
  border-color: #e4c286;
  box-shadow:
    inset 0 0 0 3px #1f100b99,
    0 0 25px #b5752825;
}
.enter-button small {
  display: block;
  margin-top: 6px;
  font: 10px var(--body);
  letter-spacing: 1px;
  color: #b08e6e;
}
.menu-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #666d5b;
  font-size: 10px;
  gap: 16px;
}
.controls-hint {
  color: #7c806c;
  display: flex;
  gap: 14px;
  align-items: center;
}
kbd {
  font: 10px var(--body);
  display: inline-flex;
  min-width: 18px;
  justify-content: center;
  align-items: center;
  padding: 2px 4px;
  border: 1px solid #7c715c55;
  border-radius: 2px;
  color: #b6ac8a;
  background: #24251dbb;
  margin-right: 4px;
}
.footer-link {
  background: transparent;
  padding: 0;
  color: #817d67;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.full-panel {
  grid-column: 1/-1;
  padding: 24px 28px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #6b5b36 #161712;
  min-height: 0;
}
.view-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #8b774a44;
  padding-bottom: 19px;
  margin-bottom: 20px;
}
.view-header h2 {
  font: 22px var(--heading);
  color: #d0bb8f;
}
.view-header p {
  font-size: 12px;
  color: #848875;
  margin-top: 8px;
}
.subtle-button {
  background: #2b2b1e;
  border: 1px solid #8a764c66;
  padding: 9px 15px;
  color: #c3b082;
  font-size: 12px;
}
.subtle-button:hover {
  border-color: #b9a06d;
  background: #3b3524;
}
.subtle-button.danger {
  color: #b67c69;
  border-color: #764435;
}
.empty-state {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #8b8e79;
  gap: 15px;
}
.empty-state .sigil {
  font-size: 40px;
}
.empty-state h3 {
  font: 20px var(--heading);
  color: #b2a27e;
}
.empty-state p {
  max-width: 390px;
  font-size: 13px;
  line-height: 1.6;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.equipment-slot {
  min-height: 106px;
  border: 1px solid #79674455;
  background: #15191188;
  padding: 12px;
  text-align: center;
}
.equipment-slot .item-art {
  height: 48px;
  width: 48px;
  object-fit: contain;
  margin-bottom: 8px;
  image-rendering: pixelated;
}
.equipment-slot small {
  font-size: 10px;
  text-transform: capitalize;
  display: block;
  color: #8b896f;
}
.equipment-slot strong {
  font-size: 11px;
  line-height: 1.4;
  color: #c9b27a;
  display: block;
  font-weight: 400;
  margin-top: 6px;
}
.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
}
.item-card {
  border: 1px solid #89724455;
  background: #20231a88;
  padding: 15px;
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  text-align: left;
}
.item-card:hover {
  border-color: #b6975c;
}
.item-card img {
  width: 45px;
  height: 60px;
  object-fit: contain;
  image-rendering: pixelated;
}
.item-card strong {
  display: block;
  font-size: 14px;
  font-weight: 400;
  color: #c7aa72;
}
.item-card p {
  font-size: 11px;
  color: #969eae;
  margin-top: 6px;
  line-height: 1.4;
}
.item-card small {
  font-size: 10px;
  display: block;
  color: #6f8067;
  margin-top: 7px;
}
.talent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.talent-tree {
  border: 1px solid #8c794744;
  background: #191d1588;
  padding: 18px;
}
.talent-tree h3 {
  font: 15px var(--heading);
  color: #c3b084;
  margin-bottom: 18px;
  text-align: center;
}
.talent-node {
  padding: 12px 0;
  display: flex;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #79724433;
}
.talent-node img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid #8a784d;
}
.talent-node > div {
  flex: 1;
}
.talent-node strong {
  font-size: 12px;
  font-weight: 400;
  display: block;
  color: #bdb28f;
}
.talent-node small {
  display: block;
  font-size: 10px;
  color: #808975;
  margin-top: 5px;
}
.talent-plus {
  width: 32px;
  height: 32px;
  color: #d4c28e;
  font-size: 17px;
  border: 1px solid #8c774b88;
  background: #383223;
}
.talent-plus:hover {
  background: #5d4a2b;
}
.bestiary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
}
.full-panel:has(.bestiary-grid) {
  overflow-x: hidden;
}
.monster-card {
  text-align: center;
  border: 1px solid #7a6b4044;
  background: #181d1588;
  padding: 10px;
}
.monster-card canvas {
  width: 100%;
  height: 150px;
  object-fit: contain;
  image-rendering: pixelated;
}
.monster-card h3 {
  font: 14px var(--heading);
  color: #c5b187;
  margin: 10px 0;
}
.monster-card small {
  font-size: 11px;
  color: #7c826e;
}
.record-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.record-row {
  display: grid;
  grid-template-columns: 30px 1.1fr 1.5fr 1fr 1fr 1fr;
  gap: 15px;
  align-items: center;
  background: #20241a88;
  border: 1px solid #70644333;
  padding: 14px 18px;
  font-size: 12px;
  color: #929984;
}
.record-row strong {
  color: #c9bb93;
  font-weight: 400;
}
.record-row .success {
  color: #a4b68b;
}
.record-row .fallen {
  color: #b57868;
}
.hud {
  height: 100%;
  pointer-events: none;
  position: relative;
}
.hud button,
.hud select {
  pointer-events: auto;
}
.xp-track {
  height: 4px;
  background: #171c14d9;
  border-bottom: 1px solid #5a60433d;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}
.xp-fill {
  height: 100%;
  background: linear-gradient(90deg, #747c4a, #c4c486);
  box-shadow: 0 0 12px #b6c47c66;
  transition: width 0.2s;
}
.top-hud {
  position: absolute;
  top: 24px;
  left: 30px;
  right: 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.zone-label strong {
  font: 17px var(--heading);
  color: #e0d2ac;
  text-shadow: 0 2px 7px #000;
}
.zone-label small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  color: #a8ae8d;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}
.timer-block {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  min-width: 180px;
}
.timer-block time {
  font: 32px var(--heading);
  color: #dfd3b8;
  text-shadow: 0 2px 8px #000;
}
.timer-block small {
  display: block;
  letter-spacing: 2px;
  color: #9c9e7c;
  font-size: 9px;
  margin-top: 4px;
  text-transform: uppercase;
}
.top-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 14px;
  color: #d8cba9;
}
.kill-counter {
  color: #c2c8ad;
}
.top-actions .icon-button {
  background: #171d14b8;
}
.boss-hud {
  position: absolute;
  top: 91px;
  left: 50%;
  transform: translateX(-50%);
  width: 330px;
  text-align: center;
}
.boss-hud[hidden] {
  display: none;
}
.boss-hud strong {
  font: 15px var(--heading);
  color: #d5b997;
  text-shadow: 0 2px 5px #000;
}
.boss-hud .track {
  height: 7px;
  margin-top: 8px;
  background: #17120f;
  border: 1px solid #7f583c;
}
.boss-hud .fill {
  height: 100%;
  background: linear-gradient(#9c432e, #63241a);
  transition: width 0.2s;
}
.hud-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: min(830px, 100%);
  gap: 14px;
  padding: 15px 20px 10px;
  background: linear-gradient(transparent, #0e120d99 40%, #12160ff0);
  border-bottom: 3px solid #4c4731;
}
.orb-wrap {
  position: relative;
  width: 103px;
  min-width: 103px;
  height: 124px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
}
.orb {
  height: 87px;
  width: 87px;
  position: relative;
  border: 5px solid #77705b;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 25%, #3d4136, #0b0e0b 70%);
  box-shadow:
    0 0 0 2px #282c23,
    0 0 0 3px #8c7e573a,
    inset 0 0 15px #000c,
    0 3px 20px #0007;
  overflow: hidden;
}
.orb:after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 20%,
    #fff3,
    transparent 35%,
    #0000 65%,
    #0009 100%
  );
  border-radius: 50%;
}
.orb-liquid {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: radial-gradient(ellipse at 65% 30%, #db5b40, #75190f 70%);
  height: var(--fill, 100%);
  transition: height 0.25s;
  box-shadow: inset 0 2px 3px #e8835377;
}
.orb.blue .orb-liquid {
  background: radial-gradient(ellipse at 65% 30%, #4976ae, #172d5d 70%);
  box-shadow: inset 0 2px 3px #7a9ecd77;
}
.orb-value {
  position: absolute;
  z-index: 1;
  bottom: 35px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 12px;
  color: #ffe3c4;
  text-shadow: 0 1px 4px #000;
}
.orb-label {
  font-size: 9px;
  letter-spacing: 1px;
  color: #a49e83;
  margin-top: 7px;
  text-transform: uppercase;
}
.orb-key {
  position: absolute;
  top: 0;
  color: #bfb18a;
  font-size: 9px;
}
.actionbar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding-bottom: 7px;
}
.player-info {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #cbb991;
  font-size: 12px;
}
.level-badge {
  border: 1px solid #9e85554d;
  display: inline-flex;
  height: 22px;
  min-width: 22px;
  align-items: center;
  justify-content: center;
  color: #d0b071;
  background: #1b2117;
}
.spell-slots {
  display: flex;
  gap: 7px;
}
.spell-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  background: linear-gradient(135deg, #3f4131, #181e14);
  border: 1px solid #8b7d51;
  box-shadow:
    inset 0 0 0 2px #14190f,
    0 2px 5px #0008;
  overflow: hidden;
}
.spell-slot.empty {
  border-color: #6c6b4f55;
  opacity: 0.65;
}
.spell-slot.empty:before {
  content: "✧";
  font: 22px Georgia;
  color: #5f634c;
}
.spell-slot img {
  width: 39px;
  height: 39px;
  image-rendering: pixelated;
}
.cooldown-shade {
  position: absolute;
  inset: 0;
  background: #050805bb;
  transform-origin: bottom;
  transform: scaleY(0);
}
.rank {
  position: absolute;
  right: 2px;
  bottom: 0;
  z-index: 1;
  font-size: 9px;
  color: #e3cf9c;
  text-shadow: 0 1px 3px #000;
}
.hud-help {
  font-size: 9px;
  color: #838d73;
  display: flex;
  gap: 9px;
  align-items: center;
}
.hud-help kbd {
  font-size: 8px;
  min-width: 15px;
  padding: 1px 3px;
}
.potion-button {
  pointer-events: auto;
  position: absolute;
  left: calc(50% - 275px);
  bottom: 115px;
  background: #161b13a8;
  border: 1px solid #77704a55;
  color: #b9a784;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 6px;
  font-size: 10px;
}
.potion-button img {
  width: 13px;
  height: 23px;
  object-fit: contain;
  image-rendering: pixelated;
}
.boss-announcement {
  position: absolute;
  top: 26%;
  width: 100%;
  text-align: center;
  pointer-events: none;
  animation: boss-in 4s forwards;
}
.boss-announcement small {
  color: #ad634a;
  letter-spacing: 5px;
  font-size: 11px;
  text-transform: uppercase;
}
.boss-announcement h2 {
  font: 35px var(--heading);
  color: #d3b486;
  margin-top: 10px;
  text-shadow: 0 3px 12px #000;
}
.location-entry {
  position: absolute;
  top: 26%;
  width: 100%;
  text-align: center;
  pointer-events: none;
  animation: boss-in 5s forwards;
}
.location-entry h2 {
  font: 28px var(--heading);
  color: #d4c199;
  text-shadow: 0 3px 12px #000;
}
.location-entry p {
  margin-top: 10px;
  color: #9aa384;
  font-size: 12px;
  letter-spacing: 3px;
}
.touch-controls {
  display: none;
}
.joystick {
  position: absolute;
  left: 35px;
  bottom: 150px;
  width: 100px;
  height: 100px;
  border: 1px solid #aaa37255;
  border-radius: 50%;
  background: #16201666;
  pointer-events: auto;
  touch-action: none;
}
.joystick i {
  position: absolute;
  left: 32px;
  top: 32px;
  width: 35px;
  height: 35px;
  border: 1px solid #c5bc8c66;
  border-radius: 50%;
  background: #53614266;
}
.touch-dash {
  position: absolute;
  right: 35px;
  bottom: 160px;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  background: #152016aa;
  border: 1px solid #9e946c99;
  font: 14px var(--heading);
  color: #c8bb92;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: #080c07c9;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  animation: arrive 0.25s;
}
.dialog {
  width: min(460px, 100%);
  padding: 28px;
  background: linear-gradient(135deg, #2d2c20f5, #141a11fb);
  border: 1px solid #ab9057;
  box-shadow:
    0 0 0 4px #10160d,
    0 0 0 5px #806b3c66,
    0 20px 100px #000c;
  position: relative;
}
.dialog h2 {
  font: 24px var(--heading);
  color: #dbc294;
  text-align: center;
}
.dialog .dialog-subtitle {
  text-align: center;
  color: #858e74;
  font-size: 12px;
  margin: 10px 0 24px;
}
.dialog-close {
  position: absolute;
  right: 10px;
  top: 9px;
  width: 28px;
  height: 28px;
  background: transparent;
  color: #b4a17a;
  font-size: 22px;
}
.dialog-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.dialog .enter-button {
  min-width: 0;
  max-width: none;
  font-size: 15px;
  min-height: 47px;
}
.dialog .controls-table {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  font-size: 13px;
  color: #a7af95;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-top: 1px solid #83724544;
  font-size: 13px;
  color: #b7b89c;
}
.setting-row input[type="range"] {
  accent-color: #b29257;
  width: 140px;
}
.setting-row input[type="checkbox"] {
  accent-color: #9d874e;
  width: 16px;
  height: 16px;
}
.credits {
  font-size: 12px;
  line-height: 1.7;
  color: #a0a68c;
}
.credits p + p {
  margin-top: 15px;
}
.upgrade-dialog {
  width: min(950px, 100%);
  text-align: center;
}
.upgrade-title {
  font: 31px var(--heading);
  color: #dfc18b;
  letter-spacing: 2px;
}
.upgrade-subtitle {
  color: #8d977b;
  font-size: 12px;
  margin-top: 10px;
  letter-spacing: 0.6px;
}
.upgrade-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 24px;
}
.upgrade-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 310px;
  background: linear-gradient(155deg, #323626f5, #11180efc);
  border: 1px solid var(--quality);
  box-shadow:
    inset 0 0 25px #0004,
    0 10px 30px #0004;
  padding: 20px 19px;
  text-align: center;
  position: relative;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  animation: card-in 0.5s backwards;
}
.upgrade-card:nth-child(2) {
  animation-delay: 0.08s;
}
.upgrade-card:nth-child(3) {
  animation-delay: 0.16s;
}
.upgrade-card:hover {
  transform: translateY(-9px);
  box-shadow: 0 0 25px color-mix(in srgb, var(--quality) 20%, transparent);
}
.upgrade-card .rarity {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--quality);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.upgrade-card img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  image-rendering: pixelated;
  border: 1px solid #8b80536a;
  margin-bottom: 20px;
  background: #12170f;
}
.upgrade-card h3 {
  font: 16px var(--heading);
  color: #d8caa5;
  line-height: 1.3;
  margin-bottom: 12px;
}
.upgrade-card p {
  font-size: 13px;
  line-height: 1.5;
  color: #98a186;
  margin-bottom: 16px;
}
.upgrade-card .card-bonus {
  font-size: 12px;
  color: var(--quality);
  margin-top: auto;
  line-height: 1.6;
}
.upgrade-card kbd {
  position: absolute;
  top: 12px;
  right: 10px;
  margin: 0;
  border-color: var(--quality);
}
.upgrade-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  color: #828b70;
  font-size: 11px;
}
.results-dialog {
  width: min(590px, 100%);
  text-align: center;
}
.results-dialog .sigil {
  margin-bottom: 15px;
}
.results-dialog h2 {
  font-size: 29px;
}
.result-status {
  color: #a48961;
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.results-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 27px 0 20px;
  border-block: 1px solid #8e794c55;
  gap: 20px;
  padding: 23px 0;
}
.results-stats small {
  display: block;
  font-size: 10px;
  color: #8a9378;
  margin-bottom: 8px;
}
.results-stats strong {
  font: 22px var(--heading);
  color: #d2bd93;
  font-weight: 400;
}
.results-note {
  font-size: 12px;
  line-height: 1.6;
  color: #929e7f;
}
.result-loot {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 18px 0;
}
.result-loot img {
  width: 37px;
  height: 43px;
  object-fit: contain;
  border: 1px solid #927d4c66;
  padding: 4px;
  image-rendering: pixelated;
}
.results-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.results-actions button {
  flex: 1;
}
.results-actions .enter-button {
  min-width: 0;
  font-size: 14px;
}
.pause-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: center;
  font-size: 11px;
  color: #8c967c;
}
.pause-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: #c5b58f;
  margin-top: 6px;
}
#toasts {
  position: fixed;
  right: 24px;
  bottom: 30px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 340px;
  pointer-events: none;
}
.toast {
  padding: 13px 17px;
  background: linear-gradient(110deg, #313022f5, #172012f5);
  border: 1px solid #97824e88;
  color: #d1be93;
  font-size: 13px;
  box-shadow: 0 4px 30px #0008;
  animation: toast-in 0.3s ease-out;
}
.toast small {
  display: block;
  color: #8c9b79;
  margin-top: 5px;
  font-size: 11px;
}
.error-box {
  padding: 35px;
  max-width: 650px;
  line-height: 1.6;
  background: #1a1d16;
  border: 1px solid #806744;
  color: #c9b590;
}
.error-box h1 {
  font: 23px var(--heading);
  margin-bottom: 20px;
}
@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes boss-in {
  0%,
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
  15%,
  70% {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-height: 870px) {
  .class-option {
    min-height: 64px;
  }
  .hero-stage canvas {
    height: 330px;
  }
  .hero-description {
    margin-bottom: 23px;
  }
  .zone-option {
    min-height: 82px;
  }
  .menu {
    padding-top: 32px;
    gap: 24px;
  }
}
@media (max-height: 710px) and (min-width: 900px) {
  .menu {
    padding: 14px 28px 12px;
    gap: 11px;
  }
  .masthead {
    min-height: 56px;
  }
  .brand h1 {
    font-size: 30px;
  }
  .class-option {
    min-height: 43px;
  }
  .class-option canvas {
    height: 35px;
    width: 30px;
  }
  .class-option strong {
    font-size: 12px;
  }
  .class-option small {
    font-size: 9px;
  }
  .panel-head {
    margin: 12px 14px 8px;
    padding-bottom: 8px;
  }
  .hero-name {
    font-size: 24px;
  }
  .hero-stage canvas {
    height: 23vh;
  }
  .hero-stage {
    min-height: 130px;
  }
  .hero-description {
    font-size: 11px;
    margin-bottom: 9px;
    line-height: 1.4;
    min-height: 30px;
  }
  .hero-stats {
    padding: 7px 0;
  }
  .hero-stats strong {
    font-size: 17px;
  }
  .zone-option {
    padding: 10px 8px;
    min-height: 55px;
  }
  .zone-option strong {
    font-size: 11px;
  }
  .zone-option small {
    font-size: 9px;
  }
  .zone-info p {
    font-size: 11px;
  }
  .zone-info {
    margin-top: 8px;
    padding-top: 8px;
  }
  .menu-controls {
    min-height: 55px;
  }
  .enter-button {
    font-size: 16px;
  }
  .starting-skill {
    margin-top: 9px;
  }
  .hero-runeline {
    font-size: 15px;
  }
  .class-hint {
    font-size: 10px;
    padding-top: 10px;
  }
  .tabbar {
    min-height: 35px;
  }
  .nav-tab {
    padding-bottom: 9px;
    font-size: 12px;
  }
}
@media (max-width: 1100px) {
  .menu {
    padding-inline: 24px;
  }
  .menu-main {
    grid-template-columns: 205px minmax(230px, 1fr) 255px;
    gap: 15px;
  }
  .class-option {
    gap: 8px;
  }
  .class-option strong {
    font-size: 12px;
  }
  .hero-name {
    font-size: 26px;
  }
  .zone-option {
    gap: 10px;
  }
  .zone-option strong {
    font-size: 11px;
  }
  .mode-box {
    min-width: 145px;
  }
  .menu-controls {
    gap: 12px;
  }
  .menu-footer {
    font-size: 9px;
  }
  .hero-description {
    font-size: 12px;
  }
  .controls-hint {
    gap: 6px;
  }
  .equipment-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .bestiary-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 850px) {
  html,
  body {
    overflow: auto;
  }
  #app {
    min-height: 100dvh;
    height: auto;
  }
  .menu {
    padding: 18px 16px;
    gap: 16px;
    min-height: 100dvh;
    height: auto;
  }
  .masthead {
    grid-template-columns: 1fr auto 1fr;
    min-height: 60px;
  }
  .build-mark {
    display: none;
  }
  .brand {
    text-align: left;
  }
  .brand h1 {
    font-size: 28px;
  }
  .brand h1 span {
    letter-spacing: 5px;
  }
  .brand .eyebrow {
    font-size: 8px;
    letter-spacing: 3px;
  }
  .header-actions {
    gap: 8px;
  }
  .tabbar {
    justify-content: space-between;
    gap: 5px;
  }
  .nav-tab {
    font-size: 11px;
    letter-spacing: 0;
  }
  .menu-main {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }
  .class-panel {
    grid-column: 1/-1;
    padding: 0 0 10px;
  }
  .class-panel .panel-head {
    margin: 12px 14px 8px;
  }
  .class-list {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 6px;
    gap: 3px;
  }
  .class-option {
    flex-direction: column;
    gap: 3px;
    min-height: 70px;
    justify-content: center;
    padding: 5px 2px;
    text-align: center;
  }
  .class-option canvas {
    height: 36px;
    width: 32px;
  }
  .class-option strong {
    font-size: 9px;
  }
  .class-option small,
  .class-hint {
    display: none;
  }
  .hero-panel {
    min-height: 380px;
  }
  .hero-name {
    font-size: 24px;
  }
  .hero-stage canvas {
    height: 210px;
  }
  .hero-description {
    font-size: 11px;
  }
  .hero-stats strong {
    font-size: 17px;
  }
  .hero-stats small {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .starting-skill {
    padding: 0;
    gap: 6px;
  }
  .starting-skill strong {
    font-size: 12px;
  }
  .starting-skill .auto-tag {
    font-size: 8px;
    padding: 3px;
  }
  .zone-panel {
    min-height: 380px;
  }
  .zone-option {
    gap: 10px;
    padding: 11px 8px;
    min-height: 58px;
  }
  .zone-option strong {
    font-size: 10px;
  }
  .zone-option small {
    font-size: 9px;
  }
  .act-medallion {
    min-width: 23px;
    width: 23px;
    height: 27px;
    font-size: 14px;
  }
  .zone-info p {
    font-size: 10px;
  }
  .zone-info {
    margin: 10px 12px 0;
  }
  .menu-controls {
    flex-wrap: wrap;
  }
  .enter-button {
    min-width: 0;
    width: 100%;
    order: 3;
    flex-basis: 100%;
    min-height: 58px;
  }
  .mode-box {
    flex: 1;
    padding: 10px;
    min-width: 0;
  }
  .menu-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    font-size: 9px;
  }
  .controls-hint {
    order: -1;
    flex-basis: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 9px;
  }
  .full-panel {
    grid-column: 1/-1;
    padding: 18px;
  }
  .talent-grid {
    gap: 10px;
  }
  .talent-tree {
    padding: 10px;
  }
  .talent-tree h3 {
    font-size: 11px;
  }
  .talent-node {
    flex-wrap: wrap;
    gap: 7px;
  }
  .talent-node img {
    width: 30px;
    height: 30px;
  }
  .talent-node small {
    font-size: 9px;
  }
  .talent-node strong {
    font-size: 11px;
  }
  .view-header h2 {
    font-size: 18px;
  }
  .view-header p {
    font-size: 10px;
  }
  .record-row {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 7px;
    padding: 12px;
    font-size: 11px;
  }
  .top-hud {
    left: 17px;
    right: 17px;
    top: 19px;
  }
  .zone-label strong {
    font-size: 12px;
  }
  .zone-label small {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .top-actions {
    gap: 9px;
    font-size: 11px;
  }
  .timer-block time {
    font-size: 26px;
  }
  .timer-block small {
    font-size: 8px;
  }
  .kill-counter {
    display: none;
  }
  .hud {
    height: 100dvh;
    position: fixed;
    inset: 0;
  }
  .hud-bottom {
    gap: 4px;
    padding-inline: 6px;
    max-width: 650px;
  }
  .orb-wrap {
    min-width: 72px;
    width: 72px;
    height: 100px;
  }
  .orb {
    width: 62px;
    height: 62px;
    border-width: 4px;
  }
  .orb-value {
    bottom: 26px;
    font-size: 10px;
  }
  .orb-label {
    font-size: 8px;
  }
  .orb-key {
    top: 10px;
    font-size: 8px;
  }
  .spell-slot {
    width: 38px;
    height: 38px;
  }
  .spell-slot img {
    width: 32px;
    height: 32px;
  }
  .spell-slots {
    gap: 4px;
  }
  .hud-help {
    font-size: 8px;
    gap: 4px;
  }
  .hud-help kbd {
    font-size: 7px;
  }
  .actionbar {
    padding-bottom: 3px;
  }
  .player-info {
    font-size: 11px;
  }
  .potion-button {
    left: 95px;
    bottom: 105px;
  }
  .touch-controls {
    display: block;
  }
  .upgrade-cards {
    gap: 10px;
    margin: 20px 0;
  }
  .upgrade-card {
    padding: 17px 10px;
    min-height: 300px;
  }
  .upgrade-card h3 {
    font-size: 13px;
  }
  .upgrade-card p {
    font-size: 11px;
  }
  .upgrade-card .rarity {
    font-size: 9px;
    margin-bottom: 17px;
  }
  .upgrade-card img {
    width: 45px;
    height: 45px;
  }
  .upgrade-title {
    font-size: 26px;
  }
  .upgrade-card .card-bonus {
    font-size: 10px;
  }
  .upgrade-footer {
    gap: 10px;
    flex-wrap: wrap;
  }
  .overlay {
    padding: 20px;
  }
  .boss-hud {
    top: 85px;
    width: 250px;
  }
  .touch-dash {
    pointer-events: auto;
  }
}
@media (max-width: 520px) {
  .header-actions .coin {
    display: none;
  }
  .brand h1 {
    font-size: 24px;
  }
  .brand .eyebrow {
    font-size: 7px;
  }
  .tabbar {
    overflow: auto;
    justify-content: flex-start;
    gap: 17px;
  }
  .nav-tab {
    font-size: 10px;
  }
  .nav-tab small {
    display: none;
  }
  .menu-main {
    gap: 12px;
  }
  .zone-list {
    padding: 0 7px;
  }
  .zone-option {
    gap: 8px;
  }
  .zone-option small {
    display: none;
  }
  .zone-option strong {
    font-size: 9px;
  }
  .zone-option .zone-check {
    font-size: 10px;
  }
  .hero-panel {
    padding-inline: 0;
  }
  .hero-title {
    font-size: 10px;
  }
  .hero-description {
    line-height: 1.4;
  }
  .starting-skill .auto-tag {
    display: none;
  }
  .hero-name {
    font-size: 20px;
  }
  .hero-kicker {
    font-size: 8px;
    letter-spacing: 2px;
  }
  .boss-preview {
    font-size: 9px;
    gap: 5px;
  }
  .boss-preview small {
    display: none;
  }
  .hero-runeline {
    letter-spacing: 10px;
    font-size: 15px;
  }
  .talent-grid {
    grid-template-columns: 1fr;
  }
  .talent-tree {
    padding: 14px;
  }
  .talent-node {
    flex-wrap: nowrap;
  }
  .talent-node > div {
    flex: 1;
  }
  .talent-tree h3 {
    font-size: 15px;
  }
  .equipment-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .bestiary-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .view-header {
    gap: 10px;
  }
  .view-header h2 {
    font-size: 15px;
  }
  .view-header .subtle-button {
    font-size: 10px;
    padding: 8px;
  }
  .upgrade-cards {
    grid-template-columns: 1fr;
    margin: 15px 0;
    gap: 10px;
  }
  .upgrade-card {
    min-height: 100px;
    display: grid;
    grid-template-columns: 44px 1fr;
    text-align: left;
    column-gap: 13px;
    padding: 12px 30px 12px 12px;
  }
  .upgrade-card img {
    grid-column: 1;
    grid-row: 1/5;
    width: 40px;
    height: 40px;
    margin: 0;
  }
  .upgrade-card .rarity {
    grid-column: 2;
    margin: 0 0 4px;
    font-size: 8px;
  }
  .upgrade-card h3 {
    grid-column: 2;
    font-size: 13px;
    margin: 0 0 4px;
  }
  .upgrade-card p {
    grid-column: 2;
    font-size: 10px;
    margin: 0 0 4px;
  }
  .upgrade-card .card-bonus {
    grid-column: 2;
    font-size: 10px;
  }
  .upgrade-card kbd {
    top: 8px;
    right: 7px;
    font-size: 9px;
  }
  .spell-slot {
    width: 30px;
    height: 31px;
  }
  .spell-slot img {
    width: 27px;
    height: 27px;
  }
  .spell-slots {
    gap: 3px;
  }
  .orb-wrap {
    width: 62px;
    min-width: 62px;
  }
  .orb {
    width: 55px;
    height: 55px;
  }
  .hud-help {
    gap: 3px;
    font-size: 7px;
  }
  .hud-help span:nth-child(3) {
    display: none;
  }
  .orb-label {
    font-size: 7px;
  }
  .orb-value {
    font-size: 8px;
    bottom: 25px;
  }
  .timer-block {
    top: 52px;
  }
  .timer-block time {
    font-size: 23px;
  }
  .boss-hud {
    top: 119px;
  }
  .location-entry {
    top: 30%;
  }
  .location-entry h2 {
    font-size: 22px;
  }
  .results-stats {
    gap: 14px;
  }
  .results-stats strong {
    font-size: 18px;
  }
  .results-dialog h2 {
    font-size: 24px;
  }
  .dialog {
    padding: 24px 20px;
  }
  .joystick {
    left: 20px;
    width: 90px;
    height: 90px;
  }
  .joystick i {
    left: 27px;
    top: 27px;
  }
  .touch-dash {
    right: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: 0.01ms !important;
    transition: none !important;
  }
}
.profile-picker {
  border: 1px solid #7e6c445c;
  padding: 8px 10px;
  color: #bfaf86;
  background: #1b2116;
  font-size: 12px;
}
.view-tools {
  display: flex;
  gap: 8px;
  align-items: center;
}
.talent-note {
  font-size: 12px;
  line-height: 1.6;
  color: #899378;
  margin-top: 22px;
  text-align: center;
}
.camp-back {
  text-align: center;
  min-height: 40px;
}
.in-game {
  overflow: hidden !important;
}
.in-game #vignette {
  box-shadow: none;
}
.in-game .touch-controls {
  display: none;
}
@media (pointer: coarse) {
  .in-game .touch-controls {
    display: block;
  }
}
@media (max-width: 520px) {
  .view-tools {
    flex-direction: column;
  }
  .talent-note {
    font-size: 10px;
  }
  .profile-picker {
    font-size: 10px;
    max-width: 130px;
  }
}
@media (min-width: 851px) and (min-height: 711px) and (max-height: 869px) {
  .menu {
    padding-top: 20px;
    padding-bottom: 16px;
    gap: 14px;
  }
  .masthead {
    min-height: 64px;
  }
  .tabbar {
    min-height: 39px;
  }
  .menu-controls {
    min-height: 60px;
  }
  .class-option {
    min-height: 44px;
    gap: 11px;
  }
  .class-option canvas {
    width: 34px;
    height: 36px;
  }
  .class-option strong {
    font-size: 13px;
  }
  .class-option small {
    font-size: 9px;
  }
  .class-list {
    gap: 3px;
  }
  .class-hint {
    padding-top: 10px;
    font-size: 10px;
  }
  .hero-description {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .hero-stats {
    padding: 9px 0;
  }
  .hero-stats strong {
    font-size: 19px;
  }
  .starting-skill {
    margin-top: 10px;
  }
  .zone-option {
    min-height: 63px;
    padding-top: 11px;
    padding-bottom: 11px;
  }
  .zone-info p {
    font-size: 11px;
  }
}
@media (min-width: 851px) {
  .hero-stage {
    min-height: 80px;
  }
  .hero-stage canvas {
    position: absolute;
    bottom: 0;
    height: 100%;
    max-height: 310px;
    width: auto;
    max-width: 100%;
  }
}
.panel-head {
  gap: 8px;
}
.panel-head small {
  white-space: nowrap;
}

/* The control panel is the game's original DC6 artwork at its native geometry. */
.native-hud {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 960px);
  aspect-ratio: 800/156;
  pointer-events: none;
}
.native-hud canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.native-hit,
.native-spell {
  position: absolute;
  pointer-events: auto;
  background: transparent;
  border: 0;
  padding: 0;
  box-shadow: none;
}
.native-hit:hover,
.native-spell:hover {
  background: #efdc9e0a;
  box-shadow: inset 0 0 0 1px #cfb47666;
}
.native-hit:focus-visible,
.native-spell:focus-visible {
  outline: 2px solid #d6bd7c;
  outline-offset: -2px;
}
.life-hit {
  left: 3.5%;
  top: 39%;
  width: 10.5%;
  height: 55%;
  border-radius: 50%;
}
.mana-hit {
  left: 86%;
  top: 39%;
  width: 11%;
  height: 55%;
  border-radius: 50%;
}
.potion-hit {
  left: 53%;
  top: 68%;
  width: 16%;
  height: 32%;
}
.native-spells {
  position: absolute;
  top: 0;
  left: 30.5%;
  width: 38.5%;
  height: 30.77%;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.3%;
}
.native-spell {
  position: relative;
  width: 100%;
  height: 100%;
}
.native-control-hints {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 9px);
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 10px;
  color: #ada78e;
  text-shadow: 0 1px 3px #000;
}
.native-control-hints kbd {
  font-size: 9px;
  margin-right: 5px;
}
.monster-card .monster-preview {
  width: 100%;
  height: 190px;
  object-fit: contain;
  image-rendering: pixelated;
}
body.in-game #toasts {
  bottom: 195px;
}

@media (min-width: 851px) {
  .menu-main {
    grid-template-columns: minmax(230px, 0.95fr) minmax(240px, 1.1fr) minmax(
        240px,
        0.95fr
      );
    gap: 22px;
    min-height: 390px;
  }
  .menu {
    min-height: 690px;
  }
  .class-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 0 10px;
    overflow: visible;
  }
  .class-option {
    min-height: 76px;
    padding: 6px 5px;
    gap: 5px;
  }
  .class-option:last-child {
    grid-column: 1/-1;
    justify-content: center;
    gap: 16px;
  }
  .class-option canvas {
    width: 44px;
    height: 64px;
    flex-shrink: 0;
  }
  .class-option span {
    min-width: 0;
  }
  .class-option strong {
    font-size: 11px;
  }
  .class-option small {
    font-size: 9px;
    line-height: 1.3;
  }
  .class-hint {
    padding: 12px 16px 8px;
    font-size: 10px;
  }
  .hero-panel {
    padding-top: 2px;
  }
  .hero-stage {
    min-height: 145px;
    overflow: visible;
  }
  .hero-stage canvas {
    position: relative;
    width: auto;
    height: 100%;
    max-height: 320px;
    max-width: 100%;
    object-fit: contain;
  }
  .hero-description {
    max-width: 320px;
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.45;
  }
  .hero-stats {
    width: 100%;
    padding: 8px 0;
  }
  .starting-skill {
    margin-top: 9px;
    width: 100%;
  }
  .hero-runeline {
    font-size: 15px;
    margin-bottom: 3px;
  }
}
@media (min-width: 851px) and (max-height: 800px) {
  .hero-stage canvas {
    height: 155px;
    max-height: 155px;
  }
  .hero-kicker {
    font-size: 9px;
  }
  .hero-name {
    font-size: 26px;
    margin-top: 3px;
  }
  .hero-title {
    margin-top: 2px;
    font-size: 11px;
  }
  .class-option {
    min-height: 70px;
  }
  .class-option canvas {
    height: 58px;
    width: 42px;
  }
  .hero-stats strong {
    font-size: 19px;
  }
}
@media (max-width: 850px) {
  .class-option canvas {
    height: 54px;
    width: 44px;
  }
  .class-option {
    min-height: 87px;
  }
  .native-hud {
    width: 100%;
  }
  .native-control-hints {
    gap: 14px;
    font-size: 9px;
  }
  .monster-card .monster-preview {
    height: 170px;
  }
}
@media (max-width: 560px) {
  .menu-main {
    grid-template-columns: 1fr;
  }
  .class-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .class-option {
    min-height: 88px;
  }
  .class-option strong {
    font-size: 10px;
  }
  .class-option canvas {
    width: 44px;
    height: 58px;
  }
  .hero-panel {
    min-height: 470px;
  }
  .hero-stage {
    min-height: 210px;
  }
  .hero-stage canvas {
    max-width: 100%;
    height: 245px;
  }
  .hero-description {
    font-size: 12px;
    max-width: 320px;
  }
  .zone-panel {
    min-height: 0;
    padding-bottom: 14px;
  }
  .zone-option {
    min-height: 57px;
  }
  .zone-option strong {
    font-size: 12px;
  }
  .zone-option small {
    display: block;
  }
  .native-control-hints {
    display: none;
  }
  .touch-controls {
    bottom: 110px;
  }
  body.in-game #toasts {
    bottom: 130px;
  }
}
@media (min-width: 851px) and (min-height: 870px) and (max-height: 1000px) {
  .class-option {
    min-height: 51px;
  }
  .class-option canvas {
    height: 40px;
    width: 34px;
  }
  .zone-option {
    min-height: 71px;
  }
  .class-hint {
    font-size: 10px;
  }
}

@media (min-width: 851px) and (max-width: 1100px) {
  .class-option {
    flex-direction: column;
    gap: 3px;
    min-height: 80px;
    justify-content: center;
    text-align: center;
  }
  .class-option canvas {
    width: 44px;
    height: 55px;
  }
  .class-option small {
    display: none;
  }
  .class-option:last-child {
    flex-direction: row;
  }
}

/* Camp systems and the native 800 by 104 control panel. */
.tabbar {
  gap: clamp(10px, 2vw, 27px);
  flex-shrink: 0;
  overflow-x: auto;
  justify-content: center;
}
.talent-upgrade-icon {
  width: 18px;
  height: 22px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 5px;
  image-rendering: pixelated;
}
.menu-main {
  min-height: 0;
}
.menu-controls-wrap {
  flex-shrink: 0;
}
.camp-back {
  display: flex;
  justify-content: center;
}
.class-list {
  display: flex;
  flex-direction: column;
  overflow: auto;
  gap: 3px;
  padding: 0 10px;
}
.class-option,
.class-option:last-child {
  flex: 1 0 48px;
  min-height: 48px;
  justify-content: flex-start;
  gap: 12px;
  padding: 3px 10px;
}
.class-option canvas {
  width: 40px;
  height: 48px;
  flex: 0 0 40px;
  object-fit: contain;
}
.class-option strong {
  font-size: 13px;
}
.class-option small {
  font-size: 10px;
}
.class-hint {
  padding-top: 9px;
}
.active-loadout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #81704a77;
  background: #30291d66;
  text-align: left;
}
.active-loadout img {
  width: 38px;
  height: 38px;
  image-rendering: pixelated;
}
.active-loadout span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.active-loadout small {
  font-size: 10px;
  color: #a79771;
}
.mode-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-width: 260px;
  min-width: 160px;
}
.mode-box label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
}
.mode-box select,
.view-tools input,
.network-profile input,
.lobby-actions input {
  background: #12150f;
  border: 1px solid #655532;
  color: #d0c4a6;
  padding: 7px 10px;
  max-width: 100%;
}
.run-options label {
  font-size: 11px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
}
.run-options input {
  accent-color: #c3a363;
}
.menu-controls {
  gap: 24px;
}
.economy-page,
.lobby-page,
.ranked-page {
  overflow: auto;
  scrollbar-width: thin;
}
.economy-page .view-header {
  margin-bottom: 22px;
}
.armory-layout {
  display: grid;
  grid-template-columns: 320px minmax(240px, 1fr);
  gap: 30px;
  align-items: start;
  max-width: 930px;
  margin: 0 auto;
}
.paper-inventory {
  width: 320px;
  flex-shrink: 0;
}
.native-paperdoll {
  width: 320px;
  height: 432px;
  position: relative;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.paper-slot {
  position: absolute;
  background: transparent;
  padding: 1px;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}
.paper-slot img {
  max-width: 94%;
  max-height: 94%;
  object-fit: contain;
  image-rendering: pixelated;
}
.paper-slot span {
  font-size: 9px;
  letter-spacing: 0.3px;
  color: #76766b;
  text-shadow: 0 1px 2px black;
}
.paper-slot:hover {
  background: #a6bd5420;
  border-color: #b9b284;
}
.paper-slot.equipped {
  background: #5c694322;
}
.native-backpack {
  position: absolute;
  left: 17px;
  top: 256px;
}
.paper-gold {
  position: absolute;
  top: 393px;
  left: 35px;
  font-size: 12px;
  color: #c5aa6e;
}
.inventory-caption {
  text-align: center;
  color: #968972;
  font-size: 11px;
  margin: 6px 0 12px;
}
.slot-grid {
  position: relative;
  width: calc(var(--cols) * var(--cell));
  height: calc(var(--rows) * var(--cell));
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--cell));
  grid-template-rows: repeat(var(--rows), var(--cell));
  background: #11150e99;
  flex-shrink: 0;
}
.inventory-cell {
  background: #15191066;
  border: 1px solid #65704d44;
  padding: 0;
}
.inventory-cell:hover {
  background: #939d5544;
  border-color: #a29c67;
}
.grid-item {
  position: absolute;
  background: #33472966;
  border: 1px solid #7b855a88;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
}
.grid-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  image-rendering: pixelated;
  object-fit: contain;
  pointer-events: none;
}
.grid-item:hover,
.grid-item.selected {
  background: #69734e66;
  border-color: var(--item-color);
  box-shadow: inset 0 0 8px #1119;
  z-index: 3;
}
.item-inspector {
  border: 1px solid #75644066;
  background: #10140fbb;
  padding: 22px;
  min-height: 235px;
}
.item-inspector h3 {
  font: 19px var(--heading);
  line-height: 1.4;
  margin: 12px 0;
}
.item-inspector p,
.loadout-note p {
  color: #b1a78e;
  font-size: 13px;
  line-height: 1.7;
  margin: 10px 0;
}
.item-inspector small {
  font-size: 11px;
  color: #8e8b75;
}
.inspected-art {
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse, #68603922, transparent 70%);
}
.inspected-art img {
  max-height: 90px;
  max-width: 150px;
  image-rendering: pixelated;
}
.item-inspector dl,
.enemy-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 18px 0;
  font-size: 12px;
}
.item-inspector dt,
.enemy-info dt {
  color: #908772;
}
.item-inspector dd,
.enemy-info dd {
  margin: 0;
  text-align: right;
}
.item-actions {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 18px;
}
.item-actions .enter-button {
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 12px;
}
.loadout-note {
  margin-top: 22px;
  padding: 5px 15px;
}
.loadout-note h3 {
  font: 15px var(--heading);
  color: #c6b180;
}
.belt-editor {
  border-top: 1px solid #75644055;
  padding: 12px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
}
.section-label {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 13px;
  color: #c8b17e;
  width: 100%;
  margin-bottom: 8px;
}
.section-label small {
  font-size: 10px;
  color: #8c8b70;
}
.belt-grid {
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 2px;
}
.belt-cell {
  width: 32px;
  height: 32px;
  position: relative;
  background: #162013;
  border: 1px solid #81724f77;
  padding: 1px;
}
.belt-cell img {
  max-width: 100%;
  max-height: 100%;
  image-rendering: pixelated;
}
.belt-cell kbd {
  position: absolute;
  bottom: 0;
  left: 2px;
  background: #111b;
  font-size: 8px;
  padding: 0 2px;
}
.belt-editor > small {
  font-size: 11px;
  line-height: 1.5;
  color: #958e79;
  text-align: center;
}
.stash-layout,
.vendor-layout {
  display: grid;
  grid-template-columns: 310px 320px minmax(200px, 1fr);
  gap: 24px;
  align-items: start;
}
.stash-panel {
  padding: 10px;
  border: 1px solid #75644088;
  background: #151912;
}
.recovery {
  font-size: 12px;
  padding-top: 15px;
}
.vendor-stock {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 580px;
  overflow: auto;
  scrollbar-width: thin;
}
.vendor-offer {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: #181b12;
  border: 1px solid #71613f66;
  padding: 9px;
  min-height: 80px;
}
.vendor-offer:hover {
  background: #3b3522;
}
.vendor-offer img {
  width: 45px;
  max-height: 70px;
  object-fit: contain;
  image-rendering: pixelated;
}
.vendor-offer span {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.vendor-offer strong {
  font-size: 13px;
}
.vendor-offer small {
  font-size: 11px;
  color: #aaa18a;
}
.vendor-offer em {
  font-style: normal;
  color: #c4aa6d;
  font-size: 12px;
}
.active-dialog {
  max-width: 700px;
}
.active-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.active-choices .section-label {
  grid-column: 1/-1;
}
.active-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 16px;
  border: 1px solid #73613b66;
  background: #151b11;
}
.active-choice.selected {
  border-color: #d0b36c;
  background: #54452a77;
}
.active-choice img {
  width: 48px;
  height: 48px;
  image-rendering: pixelated;
}
.active-choice span {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.active-choice small {
  font-size: 11px;
  color: #aea282;
}
.monster-card {
  position: relative;
  min-height: 285px;
  padding-bottom: 26px;
}
.monster-card .monster-preview {
  height: 210px;
}
.enemy-info-button,
.rotate-left,
.rotate-right {
  position: absolute;
  z-index: 2;
  border: 1px solid #83714688;
  background: #171b13cc;
  color: #c5ae78;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.enemy-info-button {
  top: 9px;
  right: 9px;
  border-radius: 50%;
  font: italic 16px Georgia;
}
.rotate-left {
  left: 9px;
  bottom: 9px;
}
.rotate-right {
  right: 9px;
  bottom: 9px;
}
.page-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  margin: 20px;
}
.page-controls button {
  background: #24291c;
  border: 1px solid #73643e;
  padding: 7px 15px;
}
.enemy-info p {
  line-height: 1.7;
  color: #aca18a;
  font-size: 13px;
}
.enemy-info h3 {
  margin-top: 20px;
  color: #c4ad77;
  font: 15px var(--heading);
}
.native-hud {
  aspect-ratio: 800/104;
}
.native-spells {
  left: 18.875%;
  top: 38.4615%;
  width: 12%;
  height: 61.5385%;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 0;
}
.life-hit {
  left: 3.75%;
  top: 10.577%;
  width: 10%;
  height: 76.923%;
}
.mana-hit {
  left: 79.375%;
  top: 53.846%;
  width: 6%;
  height: 46.154%;
  border-radius: 0;
}
.dodge-hit {
  left: 31.625%;
  top: 73.077%;
  width: 15.25%;
  height: 18.269%;
}
.inventory-hit {
  left: 69.375%;
  top: 73.077%;
  width: 3%;
  height: 23%;
}
.belt-hotspots {
  position: absolute;
  left: 52.875%;
  top: 54.807%;
  width: 16%;
  height: 45.193%;
  display: flex;
  pointer-events: auto;
}
.belt-hotspots button {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  padding: 0;
}
.belt-hotspots button:hover {
  border-color: #bba064;
  background: #bba06422;
}
body.in-game #toasts {
  bottom: 150px;
}
.wave-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: #14190f;
}
.wave-fill {
  height: 100%;
  background: linear-gradient(90deg, #786136, #b8aa70);
  transition: width 0.15s linear;
}
#buff-hud {
  position: absolute;
  top: 100px;
  left: 30px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 400px;
}
#buff-hud span {
  border: 1px solid #7a805766;
  background: #141c0fd9;
  padding: 5px 8px;
  font-size: 11px;
  color: #c1c692;
}
#buff-hud small {
  color: #929b75;
  margin-left: 5px;
}
#enemy-tooltip {
  position: absolute;
  left: 50%;
  top: 114px;
  transform: translateX(-50%);
  width: 260px;
  padding: 10px 15px;
  background: #10140eea;
  border: 1px solid #99804888;
  text-align: center;
  pointer-events: none;
}
#enemy-tooltip[hidden] {
  display: none;
}
#enemy-tooltip strong {
  display: block;
  font: 15px var(--heading);
  color: #d3b584;
}
#enemy-tooltip span,
#enemy-tooltip small {
  display: block;
  font-size: 10px;
  color: #a59d86;
  margin-top: 5px;
}
#enemy-tooltip .track {
  height: 5px;
  background: #321c13;
  margin-top: 7px;
}
#enemy-tooltip .fill {
  height: 100%;
  background: #9e3026;
}
.run-inventory {
  width: min(900px, 96vw);
  max-width: 900px;
}
.run-inventory .armory-layout {
  gap: 22px;
}
.run-inventory .item-inspector {
  padding: 18px;
}
.run-inventory.dialog {
  max-height: 94vh;
}
.network-profile {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.network-profile label,
.lobby-actions label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #a99875;
}
.network-profile > span {
  margin-left: auto;
  align-self: center;
  font-size: 13px;
  color: #c0ad83;
}
.network-note {
  color: #9e977f;
  font-size: 12px;
  line-height: 1.7;
  margin: 15px 0;
}
#network-status {
  color: #b5b88b;
  font-size: 12px;
  margin-bottom: 17px;
  min-height: 16px;
}
.lobby-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin: 20px 0;
}
.lobby-actions .enter-button {
  min-width: 160px;
  min-height: 44px;
  font-size: 14px;
}
.lobby-actions input {
  width: 130px;
  text-transform: uppercase;
}
.lobby-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lobby-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  background: #171e13;
  border: 1px solid #73643e77;
}
.lobby-list h3,
.room-header h3 {
  font: 19px var(--heading);
  color: #c8b483;
  margin-bottom: 8px;
}
.lobby-list small,
.room-header p {
  font-size: 12px;
  color: #a49a80;
}
.room-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
}
.invite-code {
  font: 26px var(--heading);
  letter-spacing: 6px;
  padding: 14px 18px;
  border: 1px solid #8b7946;
  color: #d3bd81;
}
.room-members {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.room-members article {
  padding: 18px;
  background: #172013;
  border: 1px solid #73643e88;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.room-members strong {
  font: 15px var(--heading);
  color: #cdb785;
}
.room-members span {
  color: #aaa087;
  font-size: 12px;
}
.room-members em {
  color: #aebc82;
  font-style: normal;
  font-size: 12px;
}
.rank-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  background: #27301d66;
  border: 1px solid #7e774877;
  margin-bottom: 20px;
}
.rank-summary small {
  display: block;
  color: #b1a480;
  font-size: 12px;
  margin-bottom: 10px;
}
.rank-summary strong {
  font: 24px var(--heading);
  color: #d0b378;
}
.rank-summary > span {
  color: #a8a58b;
  font-size: 13px;
}
.ladder-list {
  margin-bottom: 30px;
}
.ladder-list article {
  display: grid;
  grid-template-columns: 30px 1fr 100px 60px 100px;
  gap: 15px;
  padding: 15px;
  border-bottom: 1px solid #5e603c66;
  align-items: center;
}
.ladder-list article.current {
  background: #454a292f;
}
.ranked-page > h3 {
  font: 18px var(--heading);
  margin: 20px 0;
}
@media (min-width: 1101px) {
  .menu-main {
    grid-template-columns: 230px minmax(270px, 1fr) 295px;
    gap: 22px;
  }
  .class-option {
    flex-basis: 54px;
  }
  .hero-stage {
    min-height: 100px;
  }
  .hero-stage canvas {
    position: relative;
    height: 100%;
    max-height: 300px;
    max-width: 100%;
    object-fit: contain;
  }
}
@media (min-width: 851px) and (max-height: 800px) {
  .menu {
    min-height: 640px;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 10px;
  }
  .masthead {
    min-height: 57px;
  }
  .class-option,
  .class-option:last-child {
    min-height: 44px;
    flex-basis: 44px;
  }
  .class-option canvas {
    height: 40px;
  }
  .hero-stage canvas {
    height: 155px;
  }
  .hero-name {
    font-size: 25px;
  }
  .hero-description {
    font-size: 11px;
  }
  .hero-stats {
    padding: 7px 0;
  }
  .menu-controls {
    min-height: 60px;
  }
  .menu-footer {
    min-height: 20px;
  }
  .active-loadout {
    padding: 6px 10px;
  }
  .active-loadout img {
    width: 30px;
    height: 30px;
  }
}
@media (max-width: 1100px) {
  .stash-layout,
  .vendor-layout {
    grid-template-columns: 310px 320px;
    justify-content: center;
  }
  .stash-layout .item-inspector,
  .vendor-layout .item-inspector {
    grid-column: 1/-1;
  }
  .room-members {
    grid-template-columns: repeat(2, 1fr);
  }
  .tabbar {
    gap: 16px;
  }
  .nav-tab {
    font-size: 11px;
  }
}
@media (max-width: 850px) {
  .menu {
    height: auto;
    min-height: 100%;
    overflow: visible;
  }
  .tabbar {
    justify-content: center;
  }
  .menu-main {
    overflow: visible;
    min-height: 0;
  }
  .class-list {
    display: flex;
    flex-direction: column;
    overflow: visible;
  }
  .class-option,
  .class-option:last-child {
    min-height: 50px;
    flex-basis: auto;
  }
  .class-option canvas {
    height: 46px;
  }
  .class-panel {
    max-height: none;
  }
  .menu-controls {
    flex-wrap: wrap;
    justify-content: center;
  }
  .mode-box {
    min-width: 160px;
  }
  .armory-layout {
    gap: 16px;
    grid-template-columns: 320px minmax(210px, 1fr);
  }
  .economy-page {
    overflow: visible;
  }
  .full-panel {
    padding: 18px;
  }
  .menu-controls-wrap {
    margin-top: 10px;
  }
}
@media (max-width: 680px) {
  .armory-layout,
  .stash-layout,
  .vendor-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .item-inspector,
  .loadout-note {
    width: 100%;
  }
  .stash-layout .item-inspector,
  .vendor-layout .item-inspector {
    grid-column: auto;
  }
  .vendor-stock {
    max-height: 330px;
    width: 100%;
  }
  .active-choices {
    grid-template-columns: 1fr;
  }
  .room-members {
    grid-template-columns: 1fr;
  }
  .network-profile > span {
    margin-left: 0;
  }
  .rank-summary {
    align-items: start;
    gap: 20px;
    flex-direction: column;
  }
  .ladder-list article {
    grid-template-columns: 20px 1fr 55px;
    gap: 7px;
  }
  .ladder-list article > span:nth-child(3),
  .ladder-list small {
    display: none;
  }
  .native-control-hints {
    display: none;
  }
  .run-inventory .paper-inventory {
    transform-origin: top center;
  }
  .run-inventory.dialog {
    padding: 18px;
  }
  .menu-controls {
    gap: 16px;
  }
  .class-panel {
    min-height: 0;
  }
  .class-option strong {
    font-size: 13px;
  }
}

.tabbar {
  overflow-y: hidden;
}
.class-option,
.class-option:last-child {
  flex-direction: row;
  align-items: center;
  text-align: left;
}
.class-option span {
  display: block;
}
.class-option small {
  display: block;
}
.class-option canvas {
  max-height: 100%;
  flex-shrink: 0;
}
button.starting-skill {
  background: #1c2116;
  border: 1px solid #83704477;
  box-shadow: inset 0 0 14px #070a0677;
  color: #d5bd83;
  text-align: left;
  cursor: pointer;
}
.starting-skill small {
  color: #ac9c72;
}
.starting-skill .auto-tag {
  color: #aaa475;
}
.run-options select {
  background: #181b13;
  border: 1px solid #695b3c;
  color: #c9b993;
  padding: 4px 8px;
  font-size: 11px;
}

body.in-game #app {
  pointer-events: none;
}
.hud button,
.hud select {
  pointer-events: auto;
}

.full-panel {
  overflow-x: hidden;
}
.results-rating {
  text-align: center;
  color: #c8b384;
  font-size: 13px;
  margin: 18px 0;
}
.active-choice span {
  min-width: 0;
}
@media (max-width: 780px) {
  .armory-layout,
  .stash-layout,
  .vendor-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .stash-layout .item-inspector,
  .vendor-layout .item-inspector {
    grid-column: auto;
  }
}

.hero-description{max-height:none;overflow:visible;display:block;-webkit-line-clamp:unset}
