:root {
  --bg: #0a090d;
  --panel: #131119;
  --panel2: #191520;
  --line: #332b3b;
  --gold: #d8ad5a;
  --text: #eee6d8;
  --muted: #948b9b;
  --danger: #b33f53;
  --mana: #63b9e8;
  --green: #65c48d;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: radial-gradient(circle at 50% -10%, #272033 0, #0a090d 46%);
  color: var(--text);
  font:
    14px/1.4 Inter,
    system-ui,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button {
  color: var(--text);
  background: #201a28;
  border: 1px solid #4b4056;
  border-radius: 8px;
  padding: 8px 11px;
  cursor: pointer;
  transition: 0.15s;
}
.topbar button:hover,
button:hover {
  border-color: var(--gold);
  transform: none;
}
button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}
.topbar {
  height: 62px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: #100d15ee;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-weight: 900;
  letter-spacing: 2px;
  font-size: 17px;
}
.zone-head {
  flex: 1;
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.zone-head span:first-child {
  font-weight: 800;
}
.top-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.connected {
  color: var(--green);
}
.disconnected {
  color: var(--danger);
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 16px;
}
.card {
  background: linear-gradient(180deg, #17121d, #111018);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 35px #0006;
}
.hero {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 13px 16px;
  margin-bottom: 14px;
}
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #2c2440, #17131d);
  font-size: 38px;
  border: 1px solid #45384d;
}
.hero-main {
  flex: 1;
}
.name-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.name-row h1 {
  font-size: 21px;
  margin: 0;
}
.tag {
  padding: 3px 7px;
  border: 1px solid #4a4050;
  border-radius: 999px;
  color: #d9c4a0;
  font-size: 11px;
}
.muted {
  color: var(--muted);
}
.resource-line {
  display: grid;
  grid-template-columns: 36px minmax(140px, 420px) auto;
  gap: 8px;
  align-items: center;
}
.bar {
  height: 9px;
  background: #2b2531;
  border-radius: 999px;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  transition: width 0.12s;
}
.hp i {
  background: linear-gradient(90deg, #7b2037, #c44a5f);
}
.res i {
  background: linear-gradient(90deg, #6b4d1f, #d4ae57);
}
.currency {
  min-width: 110px;
  display: grid;
  gap: 6px;
  text-align: right;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
}
.main-column {
  min-width: 0;
}
.world-card {
  overflow: hidden;
}
.world-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: #15111b;
}
.world-title {
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.world-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}
.world-tools button {
  min-width: 34px;
  padding: 6px;
}
.world-tools button:last-child {
  min-width: 82px;
}
#worldCanvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 480px;
  background: #030406;
}
.map-help {
  padding: 7px 11px;
  background: #0f0c14;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.combat {
  margin-top: 10px;
  padding: 10px;
  position: relative;
}
.hidden {
  display: none !important;
}
.target-strip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}
.cooldowns {
  display: flex;
  gap: 8px;
  min-height: 26px;
  flex-wrap: wrap;
}
.cool-chip {
  padding: 3px 7px;
  border-radius: 8px;
  background: #211925;
  border: 1px solid #4b4055;
  font-size: 11px;
}
.skillbar {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 8px 0;
}
.skill {
  width: 58px;
  height: 58px;
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #17131b;
  border: 1px solid #54495e;
}
.skill .icon {
  font-size: 27px;
  display: block;
}
.skill .key {
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 9px;
  color: #dcc896;
}
.skill .num {
  position: absolute;
  inset: 20px 0 0;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 3px #000;
}
.skill .shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0009;
  height: 0;
  transition: height 0.08s;
}
.skill.ready {
  border-color: #7b6b43;
}
.skill.queued {
  box-shadow: 0 0 0 2px var(--gold);
}
.skill.disabled {
  filter: grayscale(0.7);
  opacity: 0.55;
}
.skill:hover {
  border-color: var(--gold);
  transform: none;
}
.gcd-line {
  display: grid;
  grid-template-columns: 70px minmax(140px, 1fr) 120px;
  gap: 8px;
  align-items: center;
  color: #cfc3ac;
  font-size: 11px;
}
.xp-track {
  width: min(468px, 100%);
  margin: 2px auto 4px;
  padding: 0 2px;
}
.xp-track-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a99b83;
  font-size: 9px;
  line-height: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.xp-track-head b {
  font-variant-numeric: tabular-nums;
  color: #d9c18a;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}
.xp-bar {
  height: 7px;
  background: #17131d;
  border: 1px solid #3f3347;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 3px #000b;
}
.xp-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #5b74d8, #7ca4ff, #b7c8ff);
  box-shadow: 0 0 10px #718eff66;
  transition: width 0.25s ease;
}
.gcd-bar {
  height: 4px;
  background: #2a232f;
  border-radius: 8px;
  overflow: hidden;
}
.gcd-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--gold);
}
.info-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.info-grid .card {
  padding: 12px;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.section-head h2 {
  font-size: 14px;
  margin: 0 0 8px;
}
.sidebar {
  display: grid;
  gap: 14px;
  align-content: start;
}
.sidebar .card {
  padding: 12px;
}
.zone {
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #18141f;
  margin: 5px 0;
}
.zone:hover {
  border-color: #4b4056;
}
.zone button {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
}
.item,
.player-card,
.shop-row,
.skill-entry,
.journal-entry {
  padding: 8px;
  border: 1px solid #2e2735;
  background: #191520;
  border-radius: 9px;
  margin: 5px 0;
}
.item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.item .spacer {
  flex: 1;
}
.equipped {
  color: var(--green);
  font-size: 11px;
}
.target-panel {
  min-height: 80px;
}
.target-name {
  font-size: 16px;
  font-weight: 800;
}
.player-card {
  display: flex;
  gap: 8px;
}
.player-main {
  flex: 1;
}
.actions-inline {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.actions-inline button {
  padding: 5px 7px;
  font-size: 11px;
}
.chat {
  height: 150px;
  overflow: auto;
  background: #0c0a10;
  border-radius: 8px;
  padding: 7px;
  font-size: 12px;
}
.chat-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.chat-row input {
  flex: 1;
}
.story {
  color: #d9cfbd;
  min-height: 55px;
}
.log {
  height: 220px;
  overflow: auto;
  background: #09080c;
  border-radius: 8px;
  padding: 8px;
  font:
    11px ui-monospace,
    monospace;
}
.row {
  padding: 4px 0;
  border-bottom: 1px solid #221d27;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-grid label {
  display: grid;
  gap: 5px;
  color: #cfc2ad;
}
.form-grid input,
.form-grid select {
  padding: 10px;
  border-radius: 8px;
  background: #100d15;
  border: 1px solid #4a4050;
  color: var(--text);
}
.primary {
  background: linear-gradient(180deg, #7d6234, #4d391f);
  border-color: #b69254;
}
.wide {
  width: 100%;
  margin-top: 12px;
}
.modal {
  position: fixed;
  inset: 0;
  background: #05040a99;
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 20px;
  backdrop-filter: blur(8px);
}
.modal-card {
  width: min(620px, 96vw);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(180deg, #1a1520, #100d15);
  border: 1px solid #4b4056;
  border-radius: 14px;
  box-shadow: 0 25px 80px #000c;
  padding: 18px;
}
.modal-card.large {
  width: min(1000px, 96vw);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 9px;
  margin-bottom: 10px;
}
.journal-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 12px;
}
.journal-entry {
  cursor: pointer;
}
.journal-entry.selected,
.skill-entry.selected {
  border-color: var(--gold);
}
.journal-entry.ready {
  box-shadow: inset 3px 0 var(--gold);
}
.detail-panel {
  background: #100d15;
  border: 1px solid #2f2837;
  border-radius: 10px;
  padding: 13px;
  min-height: 300px;
}
.skill-detail-grid {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}
.skill-big {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  font-size: 38px;
  background: #231d2c;
  border-radius: 10px;
}
.reward {
  margin-top: 10px;
  padding: 10px;
  background: #17121e;
  border: 1px solid #332a3b;
  border-radius: 8px;
}
.trainer-note {
  color: var(--muted);
  margin-bottom: 8px;
}
.shop-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 8px;
}
.death {
  text-align: center;
}
.skull {
  font-size: 70px;
}
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.18s;
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid #4a4050;
  background: #17121d;
  box-shadow: 0 12px 30px #0009;
  max-width: min(460px, calc(100vw - 36px));
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.toast.ok {
  border-color: #486e58;
}
.toast.bad {
  border-color: #7c3546;
}
.dialogue {
  max-width: 720px;
}
.dialogue h2 {
  margin: 5px 0;
}
.eyebrow {
  color: var(--gold);
  font-size: 11px;
}
.speaker {
  font-weight: 800;
  color: #d2b26f;
}
.death h1 {
  color: #d05163;
}
@media (max-width: 1150px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .info-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 720px) {
  .top-actions button:nth-child(n + 3) {
    display: none;
  }
  .hero {
    align-items: flex-start;
  }
  .game-layout,
  .sidebar,
  .info-grid,
  .journal-layout,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .resource-line {
    grid-template-columns: 32px 1fr auto;
  }
  .skill {
    width: 52px;
    height: 52px;
  }
}
.bag-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.bag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: #1c1722;
  border: 1px solid #33293b;
  border-radius: 10px;
}
.bag-icon {
  font-size: 28px;
}
.bag-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.bag-main span {
  font-size: 12px;
  color: #9b92a6;
}
.modal-card.large {
  max-width: 980px;
}
.world-card {
  position: relative;
}
.world-toolbar {
  z-index: 3;
}
.map-help {
  pointer-events: none;
}
@media (max-width: 850px) {
  .bag-list {
    grid-template-columns: 1fr;
  }
}

.world-card {
  position: relative;
}
.map-overlay-combat {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 34px;
  pointer-events: none;
}
.map-overlay-combat #combatHud {
  pointer-events: auto;
  margin: 0;
  background: linear-gradient(180deg, #0d0a10dd, #09070cdd);
  backdrop-filter: blur(8px);
  border-color: #4b3c49;
}
.combat {
  border-radius: 12px;
}
.skillbar {
  justify-content: center;
}
.quest-offer {
  padding: 10px;
  margin: 7px 0;
  background: #191520;
  border: 1px solid #342a3c;
  border-radius: 10px;
}
.build-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 14px;
}
.stat-row {
  display: grid;
  grid-template-columns: 1fr 55px 38px;
  gap: 8px;
  align-items: center;
  background: #191520;
  border: 1px solid #2e2735;
  border-radius: 8px;
  padding: 7px;
  margin: 5px 0;
}
.stat-row button {
  padding: 5px;
}
.skill-entry {
  display: flex;
  align-items: center;
  gap: 9px;
}
.skill-entry .icon {
  font-size: 24px;
}
.skill-entry .spacer {
  flex: 1;
}
@media (max-width: 800px) {
  .build-grid {
    grid-template-columns: 1fr;
  }
  .map-overlay-combat {
    left: 7px;
    right: 7px;
  }
  .skill {
    width: 52px;
    height: 52px;
  }
}
.viewport-wrap {
  position: relative;
  background: #0c0a10;
}
.viewport-wrap canvas#minimap {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid #8a6b37;
  background: #111;
  box-shadow: 0 8px 30px #0009;
  pointer-events: none;
}
.skill-entry {
  color: var(--text);
  width: 100%;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
}
.skill-entry:hover {
  transform: none;
  border-color: #4b4056;
  background: #201a28;
}
.journal-entry {
  color: var(--text);
  width: 100%;
  text-align: left;
}
.journal-entry:hover {
  transform: none;
}
@media (max-width: 720px) {
  .viewport-wrap canvas#minimap {
    width: 125px;
    height: 125px;
    right: 8px;
    top: 8px;
  }
  .viewport-wrap canvas#worldCanvas {
    min-height: 420px;
  }
}

.world-card {
  overflow: visible;
}
.viewport-wrap {
  height: min(72vh, 760px);
  min-height: 560px;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.viewport-wrap #worldCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
.map-overlay-combat {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: min(720px, 86%);
  z-index: 5;
  pointer-events: none;
}
.map-overlay-combat .combat {
  pointer-events: auto;
  background: linear-gradient(180deg, #111019dd, #0b0910ea);
  border: 1px solid #665238;
  border-radius: 14px;
  padding: 8px 10px;
  box-shadow: 0 12px 34px #0009;
}
.skillbar {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.skill {
  width: 56px;
  height: 56px;
  padding: 0;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  background: #19151e;
  border: 1px solid #4b3c4f;
}
.skill .icon {
  font-size: 29px;
  z-index: 2;
}
.skill .key {
  position: absolute;
  left: 4px;
  top: 2px;
  font-size: 10px;
  color: #d9c8a4;
  z-index: 3;
}
.skill .num {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 17px;
  font-weight: 800;
  text-shadow: 0 2px 5px #000;
  z-index: 4;
}
.skill .shade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: #06040ab8;
  z-index: 1;
  pointer-events: none;
}
.skill.ready {
  border-color: #c79d4f;
  box-shadow:
    0 0 0 1px #c79d4f55,
    0 0 16px #c79d4f22;
}
.skill.queued {
  box-shadow: 0 0 0 2px #6fd3ff88;
}
.minimap {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid #8b713e;
  box-shadow: 0 8px 20px #0009;
  z-index: 6;
}
.world-tools button {
  min-width: 38px;
}
.map-help {
  margin-top: 8px;
  color: #8e8792;
}
.npc-hover,
.mob-hover,
.loot-hover {
  filter: drop-shadow(0 0 4px #ffd97688);
}
.affixes {
  color: #d9b75c;
  font-size: 11px;
  margin-top: 3px;
}
.shop-row,
.quest-offer {
  background: #1b1622;
  border: 1px solid #332a3c;
  border-radius: 10px;
  padding: 10px;
  margin: 7px 0;
}
.skill-entry.selected {
  border-color: #d8ad5a;
  box-shadow: 0 0 0 1px #d8ad5a55;
}
.skill-entry.locked {
  opacity: 0.55;
}
.detail-panel h3 {
  margin: 8px 0 4px;
}

.quest-helper {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 7;
  width: min(330px, 40%);
  padding: 10px 12px;
  border: 1px solid #6c5938;
  border-radius: 10px;
  background: linear-gradient(180deg, #17121bd9, #0b0910e8);
  box-shadow: 0 10px 28px #0008;
  pointer-events: none;
}
.qh-title {
  font-weight: 800;
  color: #f0d48a;
}
.qh-text {
  margin-top: 3px;
  color: #ded2c0;
  font-size: 12px;
}
.qh-route {
  margin-top: 5px;
  color: #9fc9e4;
  font-size: 11px;
}
.skill,
.item,
.shop-row,
.journal-entry,
.skill-entry,
.zone,
.player-card,
button {
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    background 0.12s ease,
    transform 0.12s ease;
}
.skill:hover,
.item:hover,
.shop-row:hover,
.journal-entry:hover,
.skill-entry:hover,
.zone:hover,
.player-card:hover {
  will-change: transform;
}
.viewport-wrap {
  background: #0b0a0e;
}
.viewport-wrap #worldCanvas {
  image-rendering: auto;
}

.momentum-chip {
  color: #d8c17c;
  font-size: 12px;
  padding: 4px 7px;
  border: 1px solid #4d4252;
  border-radius: 7px;
  background: #18131e;
  white-space: nowrap;
}
.currency {
  gap: 8px;
}

html,
body {
  min-height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
}
.hero {
  display: none;
}
.map-character-hud {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 8;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(300px, 34%);
  padding: 9px 11px;
  background: linear-gradient(180deg, #0d0a10e8, #09070cea);
  border: 1px solid #58475c;
  border-radius: 10px;
  box-shadow: 0 10px 28px #0009;
  pointer-events: none;
  backdrop-filter: blur(5px);
}
.map-avatar {
  width: 42px;
  height: 42px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #221a2c;
  border: 1px solid #5b4c64;
  font-size: 25px;
}
.map-hud-main {
  flex: 1;
  min-width: 0;
}
.map-hud-name {
  display: flex;
  gap: 7px;
  align-items: baseline;
}
.map-hud-name b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.map-hud-name span,
.map-hud-role,
.map-hud-resource {
  font-size: 10px;
  color: #9b92a6;
}
.map-hud-bar {
  height: 7px;
  background: #29212e;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 4px;
}
.map-hud-bar i {
  display: block;
  height: 100%;
  width: 0;
}
.map-hud-bar.hp i {
  background: linear-gradient(90deg, #7f2038, #ce4c62);
}
.map-hud-bar.res i {
  background: linear-gradient(90deg, #70501f, #d6b05b);
}
.map-overlay-combat {
  bottom: 10px;
  width: min(760px, 90%);
}
.map-overlay-combat .combat {
  min-width: 0;
}
.map-overlay-combat .target-strip {
  display: none;
}
.map-overlay-combat .gcd-line {
  margin-top: 3px;
}
#tip {
  position: fixed;
}
.tooltip {
  position: fixed;
  display: none;
  z-index: 1000;
  max-width: 320px;
  padding: 9px 11px;
  border: 1px solid #6a5749;
  border-radius: 8px;
  background: #0c0910f5;
  color: #eee6d8;
  box-shadow: 0 14px 30px #000c;
  pointer-events: none;
  font-size: 12px;
  line-height: 1.35;
}
.viewport-wrap {
  contain: layout paint;
  will-change: transform;
}
#worldCanvas {
  will-change: transform;
}
@media (max-width: 720px) {
  .map-character-hud {
    width: calc(100% - 28px);
  }
  .map-overlay-combat {
    width: calc(100% - 14px);
  }
}

.character-sheet {
  padding: 6px;
}
.character-sheet-head {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.character-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.character-cols h3 {
  margin: 12px 0 8px;
}
.character-cols .stat-row,
.character-cols .item {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid #2f2637;
}
.character-cols button {
  margin-top: 10px;
}
.combat {
  pointer-events: auto;
}
.skillbar {
  min-height: 74px;
}
@media (max-width: 800px) {
  .character-cols {
    grid-template-columns: 1fr;
  }
}

.gcd-line {
  display: none !important;
}

.skill .num {
  z-index: 6;
}
.aoe-warning {
  animation: aoePulse 0.35s infinite alternate;
}
@keyframes aoePulse {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.75;
  }
}

@media (max-width: 850px) {
  .class-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .class-choices {
    grid-template-columns: 1fr;
  }
}

:root {
  --ink: #09080d;
  --panel: #111018e8;
  --panel2: #17141ce8;
  --edge: #40354a;
  --gold: #d7b66b;
  --gold2: #8e6d36;
  --text: #eee6d8;
  --muted: #9d95a7;
  --danger: #c94e5d;
}
body {
  background: radial-gradient(
    circle at 50% 15%,
    #17111c 0,
    #09080d 42%,
    #050508 100%
  );
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
}
.topbar {
  height: 58px;
  background: linear-gradient(180deg, #15111aee, #0a090ef2);
  border-bottom: 1px solid #3b3044;
  box-shadow: 0 8px 28px #0009;
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 30;
}
.brand {
  font-weight: 950;
  letter-spacing: 0.14em;
  color: #f1e5cc;
  text-shadow: 0 2px 10px #000;
}
.zone-head {
  font-weight: 800;
  color: #d9c99f;
}
.zone-head span + span {
  font-size: 11px;
  color: #8d8493;
  margin-left: 7px;
}
.top-actions {
  gap: 5px;
}
.top-actions button {
  height: 34px;
  padding: 0 9px;
  border: 1px solid #352b3d;
  border-radius: 8px;
  background: #14101a;
  color: #cfc5d4;
  box-shadow: inset 0 1px #ffffff08;
}
.top-actions button:hover {
  border-color: #80663f;
  color: #f2dfb1;
  background: #1d1723;
  transform: none;
}
.top-actions button:active {
  transform: translateY(1px);
}
#conn {
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 99px;
  background: #0c0b0f;
  border: 1px solid #322b36;
}
.connected {
  color: #82d29c;
}
.disconnected {
  color: #d37b87;
}
main {
  max-width: 1500px;
  margin: auto;
  padding: 14px;
}
.hero {
  background: linear-gradient(180deg, #17131cf5, #0f0d13f2);
  border-color: #4a3d52;
  box-shadow: 0 18px 60px #0009;
}
.game-layout {
  gap: 12px;
}
.world-card {
  background: #0c0a0f;
  border: 1px solid #4a3d52;
  box-shadow: 0 24px 80px #000b;
  overflow: visible;
}
.world-toolbar {
  background: linear-gradient(180deg, #17131ddd, #0c0a0fdd);
  border-bottom: 1px solid #3d3344;
  padding: 8px 10px;
  backdrop-filter: blur(8px);
}
.viewport-wrap {
  border-radius: 0 0 12px 12px;
  background: #07070a;
  min-height: 620px;
  height: min(72vh, 760px);
  box-shadow: inset 0 0 80px #000;
}
.viewport-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 100px #000b,
    inset 0 -60px 90px #0008;
  z-index: 4;
}
.viewport-wrap #worldCanvas {
  position: relative;
  z-index: 1;
}
.map-character-hud {
  left: 16px;
  top: 16px;
  background: linear-gradient(135deg, #0b0910ed, #17121ce0);
  border: 1px solid #705938;
  box-shadow:
    0 12px 35px #000c,
    0 0 0 1px #ffffff05 inset;
}
.map-avatar {
  border-radius: 50%;
  overflow: hidden;
  background: #1d1721;
  border-color: #82643d;
}
.map-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.world-tools {
  gap: 4px;
}
.world-tools button {
  border: 1px solid #473b4c;
  background: #141019;
  color: #d9cfdf;
  border-radius: 7px;
}
.world-tools button:hover {
  border-color: #b28b4c;
  color: #f0d79d;
}
.map-overlay-combat {
  bottom: 14px;
  width: min(820px, 86%);
  z-index: 8;
}
.map-overlay-combat .combat {
  background: linear-gradient(180deg, #0d0a10ee, #08070ce8);
  border: 1px solid #715939;
  border-radius: 12px;
  padding: 7px 10px;
  box-shadow: 0 18px 45px #000d;
}
.skillbar {
  gap: 7px;
}
.skill {
  width: 58px;
  height: 58px;
  border-radius: 10px;
  background: linear-gradient(180deg, #211a28, #100d14);
  border-color: #57475e;
  box-shadow: 0 6px 16px #0009;
}
.skill.ready {
  border-color: #cda95e;
  box-shadow:
    0 0 0 1px #cda95e44,
    0 0 18px #cda95e22;
}
.skill:disabled {
  filter: saturate(0.45) brightness(0.7);
}
.skill .icon {
  font-size: 30px;
}
.skill .num {
  font-variant-numeric: tabular-nums;
}
.skill .shade {
  background: #05040aaa;
}

.sidebar .card,
.info-grid .card {
  background: linear-gradient(180deg, #15121be8, #0e0c12e8);
  border-color: #3b3142;
  box-shadow: 0 12px 32px #0007;
}
.section-head {
  border-bottom: 1px solid #2d2533;
  padding-bottom: 7px;
}
.card h2 {
  letter-spacing: 0.01em;
}
.modal {
  background: #020207aa;
  backdrop-filter: blur(4px);
}
.modal-card {
  background: linear-gradient(180deg, #1a1520, #0d0b11);
  border: 1px solid #5b495f;
  box-shadow:
    0 28px 100px #000e,
    0 0 0 1px #ffffff04 inset;
}
.modal-head {
  border-color: #352b3c;
}
.primary {
  background: linear-gradient(180deg, #b78b46, #795a2f);
  border-color: #d3ad66;
  color: #fff2d2;
  box-shadow: 0 7px 20px #0008;
}
.primary:hover {
  filter: brightness(1.08);
}
.class-choice {
  background: linear-gradient(135deg, #19131f, #0f0d14);
  border-color: #3c3044;
}
.class-choice.selected {
  border-color: #d0a65c;
  background: linear-gradient(135deg, #241b27, #131018);
  box-shadow:
    0 0 0 1px #d0a65c44,
    0 10px 24px #0008;
}
.class-choice img {
  border-color: #66513b;
}
.quest-helper {
  left: 16px;
  top: 16px;
  background: linear-gradient(135deg, #0d0b10e8, #18121de8);
  border-color: #715936;
}
.tooltip {
  background: linear-gradient(180deg, #17131ceff, #09080ceff);
  border-color: #786044;
  box-shadow: 0 18px 45px #000e;
}

.world-card > .map-help {
  padding: 7px 12px;
  color: #756d79;
  background: #0a090d;
  border-top: 1px solid #211b26;
  font-size: 11px;
}
@media (max-width: 1000px) {
  .top-actions button {
    padding: 0 7px;
    font-size: 11px;
  }
  .viewport-wrap {
    min-height: 520px;
  }
}

.viewport-wrap canvas#minimap {
  z-index: 9 !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.profession-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 14px;
}
.profession-card {
  padding: 12px;
}
.profession-card h3 {
  margin-top: 0;
}
@media (max-width: 800px) {
  .profession-grid {
    grid-template-columns: 1fr;
  }
}

:root {
  --gold: #d8b56b;
  --gold-dim: #80653b;
  --bg: #07060a;
  --panel: #100d14ef;
  --panel2: #17111b;
  --edge: #3d3046;
  --muted: #9b91a4;
  --danger: #c74b5c;
}
body {
  background: radial-gradient(
    ellipse at 50% -10%,
    #201726 0,
    #0b0910 48%,
    #050509 100%
  );
  color: #eee7dc;
}
.topbar {
  position: sticky;
  top: 0;
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
}
.brand {
  font-size: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-actions::-webkit-scrollbar {
  display: none;
}
.top-actions button {
  background: linear-gradient(#19131f, #0f0c13);
  border: 1px solid #3a2d43;
  color: #cfc3d5;
  border-radius: 7px;
}
.top-actions button:hover {
  border-color: #9d7740;
  color: #f1d9a4;
  box-shadow: 0 0 14px #8f6a2c22;
}
.game-layout {
  display: block;
}
.main-column {
  width: 100%;
}
.world-card {
  border-radius: 14px;
  overflow: hidden;
  background: #050509;
  border: 1px solid #49384d;
  box-shadow: 0 28px 90px #000d;
}
.world-toolbar {
  height: 44px;
}
.viewport-wrap {
  height: min(78vh, 820px);
  min-height: 620px;
  background: #050508;
  position: relative;
}
.viewport-wrap canvas#worldCanvas {
  display: block;
  width: 100%;
  height: 100%;
}
.map-help {
  background: #08070b;
  color: #756c7b;
}
.map-character-hud {
  width: 285px;
  left: 14px;
  top: 14px;
}
.map-overlay-combat {
  bottom: 14px;
  width: min(720px, 72%);
  left: 50%;
  transform: translateX(-50%);
}
.map-overlay-combat .combat {
  background: linear-gradient(180deg, #110d15ee, #08070bf2);
  border: 1px solid #5b4633;
  border-radius: 12px;
  box-shadow: 0 18px 55px #000e;
  padding: 7px 10px;
}
.skill {
  width: 56px;
  height: 56px;
  border-radius: 9px;
}
.skill.ready {
  box-shadow:
    0 0 0 1px #d8b56b66,
    0 0 22px #d8b56b22;
}
.quest-helper {
  right: 16px;
  left: auto;
  top: 206px;
  width: 290px;
  background: linear-gradient(180deg, #120e16ee, #09070cef);
  border: 1px solid #6c5638;
  box-shadow: 0 14px 38px #000c;
}
.quest-helper:before {
  content: "QUEST TRACKER";
  display: block;
  color: #d8b56b;
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-bottom: 3px;
}
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.shop-pane {
  background: #0f0b13;
  border: 1px solid #352a3c;
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}
.shop-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #302637;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.shop-pane-head h3 {
  margin: 0;
  color: #e8d8b8;
}
.sell-row {
  border-left: 2px solid #73583a;
}
.xlarge {
  width: min(1100px, 95vw);
}
.auction-tabs {
  display: flex;
  gap: 8px;
  color: #d8b56b;
  border-bottom: 1px solid #352b3b;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.profession-card {
  background: linear-gradient(145deg, #17121c, #0d0a10);
  border: 1px solid #3c3044;
}
.profession-card.active {
  border-color: #80643b;
  box-shadow: 0 0 0 1px #80643b33;
}
.profession-card button {
  margin-top: 8px;
}
.modal-card {
  max-height: 88vh;
  overflow: auto;
}
.tooltip {
  font-family: inherit;
  max-width: 360px;
}

.viewport-wrap {
  isolation: isolate;
}
.viewport-wrap:after {
  z-index: 5;
  pointer-events: none;
}
.map-character-hud,
.quest-helper,
.map-overlay-combat,
#minimap {
  z-index: 10;
}
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .map-overlay-combat {
    width: 94%;
  }
  .quest-helper {
    top: 200px;
    width: 240px;
  }
  .top-actions button {
    font-size: 10px;
    padding: 0 7px;
  }
}

:root {
  --gold: #d8b56b;
  --gold-dim: #80653b;
  --bg: #07060a;
  --panel: #100d14ef;
  --panel2: #17111b;
  --edge: #3d3046;
  --muted: #9b91a4;
  --danger: #c74b5c;
}
body {
  background: radial-gradient(
    ellipse at 50% -10%,
    #201726 0,
    #0b0910 48%,
    #050509 100%
  );
  color: #eee7dc;
}
.topbar {
  position: sticky;
  top: 0;
  height: 52px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 50;
}
.brand {
  font-size: 14px;
}
.top-actions {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
}
.top-actions::-webkit-scrollbar {
  display: none;
}
.top-actions button {
  background: linear-gradient(#19131f, #0f0c13);
  border: 1px solid #3a2d43;
  color: #cfc3d5;
  border-radius: 7px;
}
.top-actions button:hover {
  border-color: #9d7740;
  color: #f1d9a4;
  box-shadow: 0 0 14px #8f6a2c22;
}
.game-layout {
  display: block;
}
.main-column {
  width: 100%;
}
.world-card {
  border-radius: 14px;
  overflow: hidden;
  background: #050509;
  border: 1px solid #49384d;
  box-shadow: 0 28px 90px #000d;
}
.world-toolbar {
  height: 44px;
}
.viewport-wrap {
  height: min(78vh, 820px);
  min-height: 620px;
  background: #050508;
  position: relative;
}
.viewport-wrap canvas#worldCanvas {
  display: block;
  width: 100%;
  height: 100%;
}
.map-help {
  background: #08070b;
  color: #756c7b;
}
.map-character-hud {
  width: 285px;
  left: 14px;
  top: 14px;
}
.map-overlay-combat {
  bottom: 14px;
  width: min(720px, 72%);
  left: 50%;
  transform: translateX(-50%);
}
.map-overlay-combat .combat {
  background: linear-gradient(180deg, #110d15ee, #08070bf2);
  border: 1px solid #5b4633;
  border-radius: 12px;
  box-shadow: 0 18px 55px #000e;
  padding: 7px 10px;
}
.skill {
  width: 56px;
  height: 56px;
  border-radius: 9px;
}
.skill.ready {
  box-shadow:
    0 0 0 1px #d8b56b66,
    0 0 22px #d8b56b22;
}
.quest-helper {
  right: 16px;
  left: auto;
  top: 206px;
  width: 290px;
  background: linear-gradient(180deg, #120e16ee, #09070cef);
  border: 1px solid #6c5638;
  box-shadow: 0 14px 38px #000c;
}
.quest-helper:before {
  content: "QUEST TRACKER";
  display: block;
  color: #d8b56b;
  font-size: 9px;
  letter-spacing: 0.14em;
  margin-bottom: 3px;
}
.shop-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.shop-pane {
  background: #0f0b13;
  border: 1px solid #352a3c;
  border-radius: 10px;
  padding: 10px;
  min-width: 0;
}
.shop-pane-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #302637;
  padding-bottom: 8px;
  margin-bottom: 8px;
}
.shop-pane-head h3 {
  margin: 0;
  color: #e8d8b8;
}
.sell-row {
  border-left: 2px solid #73583a;
}
.xlarge {
  width: min(1100px, 95vw);
}
.auction-tabs {
  display: flex;
  gap: 8px;
  color: #d8b56b;
  border-bottom: 1px solid #352b3b;
  padding-bottom: 8px;
  margin-bottom: 10px;
}
.profession-card {
  background: linear-gradient(145deg, #17121c, #0d0a10);
  border: 1px solid #3c3044;
}
.profession-card.active {
  border-color: #80643b;
  box-shadow: 0 0 0 1px #80643b33;
}
.profession-card button {
  margin-top: 8px;
}
.modal-card {
  max-height: 88vh;
  overflow: auto;
}
.tooltip {
  font-family: inherit;
  max-width: 360px;
}

.viewport-wrap {
  isolation: isolate;
}
.viewport-wrap:after {
  z-index: 5;
  pointer-events: none;
}
.map-character-hud,
.quest-helper,
.map-overlay-combat,
#minimap {
  z-index: 10;
}
@media (max-width: 900px) {
  .shop-layout {
    grid-template-columns: 1fr;
  }
  .map-overlay-combat {
    width: 94%;
  }
  .quest-helper {
    top: 200px;
    width: 240px;
  }
  .top-actions button {
    font-size: 10px;
    padding: 0 7px;
  }
}

.game-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}
.sidebar {
  grid-template-columns: 1fr;
  align-content: start;
}
.viewport-wrap {
  position: relative;
  overflow: hidden;
}
.map-chat {
  position: absolute;
  left: 14px;
  bottom: 14px;
  width: min(380px, 34vw);
  z-index: 12;
  background: linear-gradient(180deg, #0d0a10e8, #08070ce8);
  border: 1px solid #554632;
  border-radius: 10px;
  box-shadow: 0 14px 38px #000c;
  backdrop-filter: blur(7px);
}
.map-chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 9px;
  border-bottom: 1px solid #302735;
  color: #d9c79f;
  font-weight: 700;
  font-size: 11px;
}
.map-chat-log {
  height: 92px;
  overflow: auto;
  padding: 7px 9px;
  font-size: 11px;
  line-height: 1.35;
  scrollbar-width: thin;
}
.map-chat-row {
  display: flex;
  gap: 5px;
  padding: 6px;
  border-top: 1px solid #2b2330;
}
.map-chat-row input {
  min-width: 0;
  flex: 1;
  padding: 7px 8px;
  background: #0b090e;
  border: 1px solid #3b3042;
  color: #eee;
  border-radius: 6px;
}
.map-chat-row button {
  padding: 6px 9px;
}
.auction-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: inherit;
  border-bottom: 1px solid #352b3b;
  padding-bottom: 9px;
  margin-bottom: 12px;
}
.auction-tabs button {
  padding: 6px 10px;
  background: #110d15;
  border-color: #3b3042;
  color: #aaa0b0;
}
.auction-tabs button.active {
  background: linear-gradient(180deg, #6e5430, #392b1c);
  border-color: #c09a58;
  color: #fff0c9;
}
.auction-create {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 250px 120px auto;
  gap: 9px;
  align-items: center;
  padding: 11px;
  background: #100c14;
  border: 1px solid #3b3042;
  border-radius: 10px;
  margin-bottom: 14px;
}
.auction-create select,
.auction-create input {
  padding: 9px;
  background: #0b090e;
  border: 1px solid #403546;
  color: #eee;
  border-radius: 7px;
  min-width: 0;
}
.auction-section {
  margin-top: 12px;
}
.auction-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #302735;
  margin-bottom: 6px;
}
.auction-section-head h3 {
  margin: 7px 0;
  color: #dfcfac;
}
.character-sheet-head {
  padding: 12px 14px;
  background: linear-gradient(135deg, #17121c, #0e0b11);
  border: 1px solid #3b3042;
  border-radius: 12px;
}
.character-cols {
  grid-template-columns: minmax(260px, 0.85fr) minmax(340px, 1.15fr);
  align-items: start;
}
.character-cols > div {
  background: #100d15;
  border: 1px solid #302736;
  border-radius: 12px;
  padding: 12px;
}
.character-cols h3 {
  color: #d9c79f;
  letter-spacing: 0.03em;
}
.character-cols .stat-row {
  background: #17121d;
  border: 1px solid #2f2736;
  border-radius: 7px;
  margin: 5px 0;
  padding: 8px 9px;
}
.character-cols .item {
  background: #17121d;
  border: 1px solid #2f2736;
  border-radius: 7px;
  margin: 5px 0;
  padding: 9px;
}

.map-help {
  letter-spacing: 0.01em;
}
.world-tools #zoomReset {
  min-width: 76px;
}
@media (max-width: 900px) {
  .map-chat {
    width: calc(100% - 28px);
    bottom: 10px;
  }
  .auction-create {
    grid-template-columns: 1fr 1fr;
  }
  .auction-create > div:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 720px) {
  .map-chat {
    width: calc(100% - 20px);
    left: 10px;
  }
  .auction-create {
    grid-template-columns: 1fr;
  }
  .auction-create > div:first-child {
    grid-column: auto;
  }
}

.topbar {
  height: 44px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(6, 5, 9, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #342838;
  z-index: 80;
}
body {
  padding-top: 44px;
  padding-bottom: 72px;
}
.compact-status {
  margin-left: auto;
  gap: 10px;
  white-space: nowrap;
  overflow: visible;
}
.hud-status {
  font-size: 10px;
  color: #8f8495;
  padding: 5px 8px;
  border: 1px solid #2d2533;
  border-radius: 999px;
  background: #0e0b12;
}
.viewport-wrap {
  height: calc(100vh - 138px);
  min-height: 560px;
}
.world-card {
  min-height: 0;
}
.world-toolbar {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 8px;
  z-index: 20;
  background: linear-gradient(180deg, #0b0910dd, #0b091000);
  border: 0;
  pointer-events: none;
}
.world-toolbar > * {
  pointer-events: auto;
}
.world-toolbar .world-title {
  display: none;
}
.world-tools {
  justify-content: flex-end;
}
.map-overlay-combat {
  bottom: 14px;
  width: min(540px, 48%);
  z-index: 18;
}
.map-overlay-combat .combat {
  padding: 6px 8px;
}
.skill {
  width: 52px;
  height: 52px;
}
.map-chat {
  left: 14px;
  bottom: 14px;
  width: min(350px, 28vw);
  z-index: 17;
}
.map-chat-log {
  height: 84px;
}
.quest-helper {
  right: 16px;
  top: 202px;
  width: 270px;
  z-index: 17;
}
.bottom-menu {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  gap: 4px;
  align-items: stretch;
  padding: 6px 8px;
  background: linear-gradient(180deg, #15101bee, #08070cf5);
  border: 1px solid #4b3a4d;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -14px 40px #000b;
  backdrop-filter: blur(10px);
  max-width: min(980px, 96vw);
  overflow-x: auto;
}
.build-reset-row {
  display: flex;
  gap: 8px;
  padding: 9px 0;
  margin: 8px 0 12px;
  border-top: 1px solid #34283b;
  border-bottom: 1px solid #34283b;
}
.build-reset-row button {
  flex: 0 0 auto;
}

#worldCanvas {
  image-rendering: auto;
  transform: none !important;
}
@media (max-width: 900px) {
  .map-overlay-combat {
    width: min(520px, 62%);
  }
  .map-chat {
    width: 280px;
  }
  .bottom-menu button {
    min-width: 58px;
  }
}
@media (max-width: 700px) {
  body {
    padding-bottom: 64px;
  }
  .map-chat {
    left: 8px;
    bottom: 72px;
    width: calc(100% - 16px);
  }
  .map-overlay-combat {
    left: 50%;
    bottom: 10px;
    width: calc(100% - 16px);
    transform: translateX(-50%);
  }
  .bottom-menu {
    max-width: 100vw;
    width: 100vw;
    border-radius: 10px 10px 0 0;
    justify-content: flex-start;
  }
  .bottom-menu button {
    min-width: 56px;
  }
}

.hero {
  display: none !important;
}

@media (max-width: 900px) {
  .hotbar-label {
    width: 42px;
  }
  .skill {
    width: 50px;
    height: 50px;
  }
  .skill .icon {
    font-size: 25px;
  }
}

body {
  overflow-x: hidden;
}
.game-layout {
  display: block !important;
}
.main-column {
  width: 100%;
}
.viewport-wrap {
  height: calc(100vh - 126px);
  min-height: 620px;
  position: relative;
  overflow: hidden;
}
.camera-tools {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 25;
  display: flex;
  gap: 5px;
  align-items: center;
  padding: 5px 6px;
  background: rgba(9, 7, 12, 0.86);
  border: 1px solid #403445;
  border-radius: 9px;
  box-shadow: 0 8px 22px #0008;
  backdrop-filter: blur(5px);
}
.camera-tools button {
  padding: 6px 9px;
  min-width: 34px;
  height: 34px;
}
.camera-tools button:last-child {
  min-width: 92px;
}
.map-character-hud {
  z-index: 26 !important;
  left: 14px;
  top: 14px;
}
.quest-helper {
  z-index: 26 !important;
  top: 190px;
}
.map-chat {
  z-index: 26 !important;
  bottom: 14px;
}
.map-overlay-combat {
  z-index: 26 !important;
  bottom: 14px;
  pointer-events: none;
  width: min(620px, 52%);
}
.map-overlay-combat #combatHud {
  pointer-events: auto;
}
.hotbar-row {
  min-width: 0;
}
.hotbar-row .skillbar {
  display: grid;
  grid-template-columns: repeat(9, 52px);
  gap: 5px;
  flex: none;
}
.hotbar-label {
  flex: 0 0 64px;
}
.skill {
  width: 52px;
  height: 52px;
}
.skill.dragging {
  opacity: 0.45;
}
.skill.empty-slot {
  border-style: dashed;
}
.skill.empty-slot .icon {
  font-size: 20px;
  color: #7f7483;
}

.modal {
  display: block;
  inset: 0;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
  z-index: 120;
}
.modal-card {
  pointer-events: auto;
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  max-height: 82vh;
  overflow: auto;
}
.modal-card.dragging {
  box-shadow:
    0 25px 90px #000e,
    0 0 0 1px #80643b;
}
.build-reset-section {
  padding: 10px 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #3a3040;
}
.build-reset-section .reset-title {
  font-weight: 800;
  color: #d9c79f;
  margin-bottom: 7px;
}
.build-reset-row {
  display: flex;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.build-reset-row button {
  min-width: 120px;
}
.auction-subtabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  padding: 7px 0 10px;
  border-bottom: 1px solid #352b3b;
  margin-bottom: 10px;
}
.auction-subtabs button {
  padding: 5px 9px;
}
.auction-subtabs button.active {
  background: #4d3b23;
  border-color: #b69254;
  color: #f6dfae;
}
.auction-tabs {
  display: flex;
  gap: 7px;
  padding-bottom: 9px;
  margin-bottom: 10px;
  border-bottom: 1px solid #3a3040;
}
.auction-tabs button.active {
  background: #5b4528;
  border-color: #b69254;
  color: #f5dfb0;
}

.modal.hidden {
  display: none !important;
}
@media (max-width: 900px) {
  .viewport-wrap {
    min-height: 560px;
  }
  .map-overlay-combat {
    width: calc(100% - 20px);
    bottom: 8px;
  }
  .map-chat {
    bottom: 150px;
    width: 280px;
  }
  .hotbar-row .skillbar {
    grid-template-columns: repeat(9, 42px);
  }
  .skill {
    width: 42px;
    height: 42px;
  }
  .hotbar-label {
    flex-basis: 48px;
  }
  .bag-list {
    grid-template-columns: repeat(5, 58px);
  }
}
@media (max-width: 650px) {
  .camera-tools {
    right: 8px;
    top: 8px;
  }
  .map-character-hud {
    left: 8px;
    top: 8px;
  }
  .quest-helper {
    right: 8px;
    top: 185px;
    width: 230px;
  }
  .map-chat {
    left: 8px;
    bottom: 150px;
    width: 250px;
  }
  .bottom-menu {
    bottom: 4px;
    max-width: calc(100vw - 8px);
    width: auto;
  }
  .bottom-menu button {
    min-width: 56px;
  }
  .bag-list {
    grid-template-columns: repeat(4, 58px);
  }
}

.viewport-wrap {
  position: relative;
  overflow: hidden;
}
#worldCanvas {
  width: 100%;
  height: 100%;
  display: block;
}
.bottom-menu {
  position: absolute;
  left: auto;
  right: 10px;
  bottom: 10px;
  transform: none;
  z-index: 40;
  display: flex;
  gap: 3px;
  align-items: center;
  padding: 4px 5px;
  background: linear-gradient(180deg, #15101be8, #08070cf2);
  border: 1px solid #4b3a4d;
  border-radius: 10px;
  box-shadow: 0 10px 28px #000b;
  backdrop-filter: blur(7px);
  max-width: calc(100% - 20px);
  overflow-x: auto;
}
.bottom-menu button {
  min-width: 52px;
  height: 42px;
  padding: 4px 6px;
  border: 1px solid #34283b;
  background: linear-gradient(180deg, #1b1520, #0f0b13);
  border-radius: 7px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
}
.bottom-menu button span {
  font-size: 8px;
  color: #a99eaa;
}
.bottom-menu button:hover {
  border-color: #9b7743;
  color: #f1d9a4;
}
.map-overlay-combat {
  bottom: 10px;
  width: min(600px, 50%);
}
.map-overlay-combat .combat {
  padding: 5px 7px;
}
.skill {
  width: 50px;
  height: 50px;
}
.hotbar-row .skillbar {
  grid-template-columns: repeat(9, 50px);
  gap: 4px;
}
.camera-tools {
  z-index: 30;
}
@media (max-width: 900px) {
  .bottom-menu {
    right: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
  }
  .bottom-menu button {
    min-width: 48px;
    height: 40px;
  }
  .map-overlay-combat {
    width: calc(100% - 12px);
    bottom: 58px;
  }
  .hotbar-row .skillbar {
    grid-template-columns: repeat(9, 42px);
  }
  .skill {
    width: 42px;
    height: 42px;
  }
}

.viewport-wrap {
  position: relative;
  overflow: hidden;
}
.map-overlay-combat {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 12px;
  width: min(520px, calc(100% - 360px));
  z-index: 18;
}
.map-overlay-combat .combat {
  padding: 5px 7px;
}
.hotbar-row .skillbar {
  grid-template-columns: repeat(9, 48px);
  gap: 3px;
}
.skill {
  width: 48px;
  height: 48px;
}
.bottom-menu {
  right: 10px;
  left: auto;
  bottom: 10px;
  transform: none;
  width: 330px;
  max-width: 330px;
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 3px;
  padding: 4px;
}
.bottom-menu button {
  min-width: 46px;
  width: 46px;
  height: 40px;
  padding: 3px 4px;
  font-size: 13px;
  flex: 0 0 46px;
}
.bottom-menu button span {
  font-size: 7px;
}
.modal {
  pointer-events: none;
}
.modal.hidden {
  display: none !important;
}
@media (max-width: 1050px) {
  .map-overlay-combat {
    width: 520px;
    max-width: calc(100% - 350px);
  }
  .bottom-menu {
    width: 310px;
    max-width: 310px;
  }
}
@media (max-width: 800px) {
  .map-overlay-combat {
    width: calc(100% - 12px);
    bottom: 58px;
  }
  .bottom-menu {
    width: calc(100% - 12px);
    max-width: calc(100% - 12px);
    right: 6px;
    bottom: 6px;
  }
  .hotbar-row .skillbar {
    grid-template-columns: repeat(9, 42px);
  }
  .skill {
    width: 42px;
    height: 42px;
  }
}

.bottom-menu {
  right: 10px;
  left: auto;
  bottom: 10px;
  width: 300px;
  max-width: 300px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-template-rows: repeat(2, 40px);
  overflow: hidden;
  gap: 3px;
  padding: 4px;
  box-sizing: border-box;
}
.bottom-menu button {
  min-width: 0 !important;
  width: auto !important;
  height: 38px !important;
  flex: 0 0 auto !important;
  padding: 2px 3px !important;
  font-size: 13px !important;
  line-height: 1;
}
.bottom-menu button span {
  font-size: 7px !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.hotbar-row {
  max-width: 520px;
  box-sizing: border-box;
}
.hotbar-row .skillbar {
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  width: min(450px, calc(100vw - 120px));
  gap: 3px !important;
}
.hotbar-row .skill {
  width: auto !important;
  min-width: 0 !important;
  height: 46px !important;
}
.hotbar-row .skill .icon {
  font-size: 23px;
}
.map-overlay-combat {
  bottom: 112px !important;
}
.map-chat {
  bottom: 112px !important;
}
@media (max-width: 900px) {
  .bottom-menu {
    width: 276px;
    max-width: 276px;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 36px);
  }
  .bottom-menu button {
    height: 34px !important;
  }
  .hotbar-row .skillbar {
    width: min(430px, calc(100vw - 100px));
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  }
  .hotbar-row .skill {
    height: 42px !important;
  }
  .map-overlay-combat {
    bottom: 104px !important;
  }
  .map-chat {
    bottom: 104px !important;
  }
}
@media (max-width: 650px) {
  .bottom-menu {
    right: 6px;
    bottom: 6px;
    width: 246px;
    max-width: 246px;
    grid-template-rows: repeat(2, 34px);
  }
  .hotbar-row .skillbar {
    width: calc(100vw - 86px);
  }
  .hotbar-row .skill {
    height: 38px !important;
  }
  .map-overlay-combat {
    bottom: 92px !important;
  }
  .map-chat {
    bottom: 92px !important;
  }
}

.viewport-wrap {
  position: relative;
  overflow: hidden;
}
.map-overlay-combat {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  bottom: 14px;
  width: min(520px, calc(100% - 350px));
  z-index: 35;
  pointer-events: none;
}
.map-overlay-combat .combat {
  pointer-events: auto;
}
.hotbar-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  margin: 2px 0;
}
.hotbar-label {
  order: 0;
  width: auto !important;
  flex: 0 0 auto !important;
  text-align: center !important;
  font-size: 7px !important;
  line-height: 9px !important;
  letter-spacing: 0.5px;
  color: #b7a8a0 !important;
  height: 9px;
}
.hotbar-row .skillbar {
  order: 1;
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  width: min(468px, calc(100vw - 420px));
  gap: 3px !important;
}
.hotbar-row .skill {
  width: auto !important;
  min-width: 0 !important;
  height: 42px !important;
}
.bottom-menu {
  position: absolute !important;
  right: 10px !important;
  left: auto !important;
  bottom: 10px !important;
  width: 276px !important;
  max-width: 276px !important;
  display: grid !important;
  grid-template-columns: repeat(6, 1fr) !important;
  grid-template-rows: repeat(2, 34px) !important;
  overflow: hidden !important;
  gap: 3px !important;
  padding: 4px !important;
  z-index: 36;
}
.bottom-menu button {
  min-width: 0 !important;
  width: auto !important;
  height: 32px !important;
  padding: 2px !important;
  font-size: 12px !important;
}
.bottom-menu button span {
  font-size: 7px !important;
  line-height: 8px !important;
}
.map-chat {
  position: absolute !important;
  left: 10px !important;
  right: auto !important;
  bottom: 14px !important;
  width: 280px !important;
  z-index: 35;
}
.map-chat-log {
  max-height: 86px;
}
@media (max-width: 1050px) {
  .map-overlay-combat {
    width: 500px;
    max-width: calc(100% - 330px);
  }
  .hotbar-row .skillbar {
    width: min(450px, calc(100vw - 390px));
  }
}
@media (max-width: 800px) {
  .map-overlay-combat {
    width: calc(100% - 300px);
    bottom: 88px;
  }
  .hotbar-row .skillbar {
    width: calc(100vw - 320px);
  }
  .map-chat {
    width: 250px !important;
    bottom: 88px !important;
  }
  .bottom-menu {
    right: 6px !important;
    bottom: 6px !important;
    width: 250px !important;
    max-width: 250px !important;
  }
}

@media (max-width: 900px) {
  .bag-list {
    grid-template-columns: repeat(5, 60px);
    grid-auto-rows: 60px;
  }
  .bag-slot {
    width: 60px;
    height: 60px;
  }
  .hotbar-row .skillbar {
    grid-template-columns: repeat(9, 44px);
    gap: 3px;
  }
  .bottom-menu {
    grid-template-columns: repeat(6, minmax(58px, 1fr));
    grid-template-rows: repeat(2, 48px);
  }
}

.map-overlay-combat {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: 4px !important;
  width: min(500px, calc(100% - 900px)) !important;
  min-width: 500px;
  z-index: 50 !important;
}
.map-overlay-combat .combat {
  width: 100%;
}
.map-chat {
  left: 6px !important;
  right: auto !important;
  bottom: 4px !important;
  width: 285px !important;
  z-index: 51 !important;
}
.bottom-menu {
  left: auto !important;
  right: 6px !important;
  bottom: 4px !important;
  transform: none !important;
  width: 390px !important;
  max-width: 390px !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, 48px) !important;
  gap: 5px !important;
  padding: 6px !important;
  overflow: hidden !important;
  z-index: 52 !important;
}
.bottom-menu button {
  height: 44px !important;
  min-width: 0 !important;
  width: auto !important;
  font-size: 14px !important;
  padding: 4px 6px !important;
  flex: none !important;
}
.bottom-menu button span {
  font-size: 10px !important;
  line-height: 11px !important;
  max-width: 100% !important;
}
.hotbar-row {
  margin: 0 !important;
  padding-top: 9px !important;
}
.hotbar-label {
  top: -1px !important;
  font-size: 7px !important;
  line-height: 8px !important;
}
.hotbar-row .skillbar {
  width: 468px !important;
  grid-template-columns: repeat(9, 48px) !important;
  gap: 4px !important;
}
.hotbar-row .skill {
  height: 46px !important;
  width: 48px !important;
}
@media (max-width: 1250px) {
  .map-overlay-combat {
    width: 480px !important;
    min-width: 480px;
  }
  .bottom-menu {
    width: 350px !important;
    max-width: 350px;
  }
  .bottom-menu button {
    font-size: 12px !important;
  }
  .map-chat {
    width: 260px !important;
  }
}
@media (max-width: 1050px) {
  .map-overlay-combat {
    width: 440px !important;
    min-width: 440px;
  }
  .hotbar-row .skillbar {
    width: 420px !important;
    grid-template-columns: repeat(9, 44px) !important;
  }
  .hotbar-row .skill {
    width: 44px !important;
    height: 44px !important;
  }
  .bottom-menu {
    width: 320px !important;
    max-width: 320px;
  }
  .map-chat {
    width: 240px !important;
  }
}
@media (max-width: 800px) {
  .map-overlay-combat {
    width: calc(100% - 16px) !important;
    min-width: 0 !important;
    bottom: 94px !important;
  }
  .map-chat {
    bottom: 94px !important;
    width: calc(100% - 16px) !important;
  }
  .bottom-menu {
    right: 4px !important;
    bottom: 4px !important;
    width: calc(100% - 8px) !important;
    max-width: none !important;
  }
}

.skill .key {
  position: absolute;
  top: 3px;
  left: 4px;
  z-index: 4;
  font-size: 8px;
  line-height: 9px;
  opacity: 0.82;
  pointer-events: none;
  letter-spacing: -0.2px;
}
.skill .icon {
  pointer-events: none;
}
.ashen-drag-ghost {
  pointer-events: none !important;
  opacity: 0.9;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.55));
}
.skill.dragging,
.bag-row.dragging,
.skill-entry.dragging {
  opacity: 0.45 !important;
}

.bag-slot[data-bag-item],
.skill[data-hotbar-slot],
.skill-entry[data-drag-kind] {
  touch-action: none;
  -webkit-user-drag: none;
}
.skill.drag-over {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 18px #d8ad5a55 !important;
}
.ashen-dragging {
  overflow: hidden !important;
}

.skill-entry,
.bag-slot,
.skill {
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}
.ashen-drag-ghost {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #28202f, #17121d);
  border: 1px solid #d6ad5b !important;
  border-radius: 9px;
  box-shadow:
    0 12px 30px #000c,
    0 0 0 1px #6f5932;
  opacity: 0.96 !important;
  transform: scale(1.04);
  pointer-events: none !important;
}
.ashen-drag-ghost .drag-icon {
  font-size: 28px;
  line-height: 30px;
  text-shadow: 0 2px 5px #000;
}
.ashen-drag-ghost .drag-label {
  max-width: 48px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 7px;
  color: #ead9b9;
  text-shadow: 0 1px 3px #000;
}
.skill.drag-over {
  border-color: #e0bd69 !important;
  box-shadow:
    0 0 0 2px #d6ad5b,
    0 0 18px #d6ad5b66 !important;
}

.map-character-hud,
.target-hud {
  backdrop-filter: blur(10px);
  background: linear-gradient(
    135deg,
    rgba(12, 10, 14, 0.94),
    rgba(27, 22, 25, 0.88)
  );
  border: 1px solid #5b4b40;
  box-shadow:
    0 10px 28px rgba(0, 0, 0, 0.45),
    inset 0 1px rgba(255, 255, 255, 0.05);
}
.context-menu {
  position: fixed;
  z-index: 9999;
  min-width: 180px;
  background: #0e0b10;
  border: 1px solid #6d5749;
  box-shadow: 0 14px 36px #000b;
  border-radius: 6px;
  padding: 5px;
}
.context-menu.hidden {
  display: none;
}
.context-menu button {
  display: block;
  width: 100%;
  padding: 9px 10px;
  text-align: left;
  border: 0;
  background: transparent;
  color: #eee1d1;
  border-radius: 4px;
}
.context-menu button:hover {
  background: #2a2024;
}
.context-title {
  padding: 7px 10px 5px;
  color: #c7ae8e;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.dungeon-room {
  position: absolute;
  border: 1px solid #665245;
  background: linear-gradient(180deg, #211a1b, #110f13);
  box-shadow: inset 0 0 25px #0009;
}
.dungeon-room.mini {
  border-color: #7e604d;
}
.dungeon-room.boss {
  border-color: #8c3f4c;
  box-shadow: inset 0 0 35px #4c1825;
}
.dungeon-telegraph {
  position: absolute;
  border: 3px solid #d24a55;
  background: #c22d3d2b;
  border-radius: 50%;
  pointer-events: none;
  animation: telegraphPulse 0.8s infinite alternate;
}
.dungeon-telegraph.single {
  border-radius: 5px;
}
.dungeon-stage {
  color: #d6c29f;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.settings-list input[type="checkbox"] {
  accent-color: #a88454;
}
@keyframes telegraphPulse {
  from {
    opacity: 0.45;
    transform: scale(0.96);
  }
  to {
    opacity: 0.95;
    transform: scale(1);
  }
}
@media (max-width: 900px) {
  .target-hud {
    left: 18px;
    top: 112px;
    width: 250px;
  }
  .trade-grid {
    grid-template-columns: 1fr;
  }
  .world-map-modal {
    width: 96vw;
  }
}

.viewport-wrap .minimap-tools {
  position: absolute;
  right: 18px;
  top: 202px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 3px 4px;
  border: 1px solid #665238;
  border-radius: 8px;
  background: rgba(9, 7, 12, 0.88);
  box-shadow: 0 5px 16px #0009;
  backdrop-filter: blur(5px);
}
.minimap-tools button {
  width: 27px;
  height: 27px;
  padding: 0;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  border-radius: 6px;
}
.minimap-tools span {
  min-width: 44px;
  text-align: center;
  font-size: 9px;
  color: #dbcba9;
}
@media (max-width: 720px) {
  .viewport-wrap .minimap-tools {
    right: 12px;
    top: 140px;
  }
}

.viewport-wrap canvas#minimap {
  width: 220px;
  height: 220px;
  right: 16px;
  top: 16px;
  background: #111216;
  box-shadow: 0 10px 32px #000b;
}
.viewport-wrap .minimap-tools {
  right: 30px;
  top: 242px;
  background: rgba(9, 7, 12, 0.94);
  border-color: #80633d;
}
.world-map-toolbar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 9px 0 10px;
  flex-wrap: wrap;
}
.world-map-toolbar button,
.world-map-toolbar select {
  background: #110d15;
  border: 1px solid #46384d;
  color: #d9ccb6;
  border-radius: 7px;
  padding: 7px 11px;
}
.world-map-toolbar button.active {
  background: linear-gradient(180deg, #6b512d, #392b1e);
  border-color: #bd9654;
  color: #fff0ca;
}
.world-map-toolbar select {
  min-width: 180px;
}
.auction-shell {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.auction-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: linear-gradient(180deg, #151019, #0e0b11);
  border: 1px solid #342a3b;
  border-radius: 9px;
  margin: 6px 0;
}
.auction-row:hover {
  border-color: #665139;
}
.auction-item-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #211a26;
  border: 1px solid #4a3b4c;
  border-radius: 7px;
  font-size: 23px;
}
.auction-item-main {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.auction-price {
  color: #e8c879;
  white-space: nowrap;
}
.auction-preview {
  padding: 9px;
  background: #0c090f;
  border: 1px solid #342a3b;
  border-radius: 7px;
  color: #8f8792;
}
@media (max-width: 720px) {
  .viewport-wrap canvas#minimap {
    width: 145px;
    height: 145px;
    right: 9px;
    top: 9px;
  }
  .viewport-wrap .minimap-tools {
    right: 15px;
    top: 166px;
  }
}

.quest-helper {
  top: 292px !important;
  right: 16px !important;
  left: auto !important;
  z-index: 18 !important;
}
.viewport-wrap canvas#minimap {
  z-index: 22 !important;
}
.auction-create {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.8fr) minmax(
      120px,
      0.5fr
    ) auto;
  gap: 10px;
  align-items: end;
}
.auction-create label {
  display: block;
  margin-bottom: 4px;
}
.auction-create select,
.auction-create input {
  width: 100%;
  padding: 9px;
  background: #0d0a10;
  border: 1px solid #44384a;
  border-radius: 7px;
  color: var(--text);
}
.auction-preview {
  min-height: 38px;
  display: flex;
  align-items: center;
}
@media (max-width: 900px) {
  .auction-create {
    grid-template-columns: 1fr 1fr;
  }
  .quest-helper {
    top: 250px !important;
  }
}
@media (max-width: 720px) {
  .auction-create {
    grid-template-columns: 1fr;
  }
  .quest-helper {
    top: 185px !important;
    right: 8px !important;
    width: 230px !important;
  }
}
.loot-roll-panel {
  position: absolute;
  right: 16px;
  bottom: 118px;
  width: min(420px, calc(100% - 32px));
  z-index: 80;
  display: grid;
  gap: 8px;
}
.loot-roll {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(196, 154, 88, 0.45);
  background: rgba(18, 14, 17, 0.94);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  border-radius: 10px;
}
.loot-roll .actions-inline {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.dungeon-directory {
  display: grid;
  gap: 12px;
}
.dungeon-card {
  padding: 16px;
  border: 1px solid rgba(160, 125, 83, 0.25);
  background: rgba(30, 24, 28, 0.65);
  border-radius: 12px;
}
.dungeon-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.dungeon-card-head span {
  font-size: 12px;
  color: #cdb78e;
}

.modal-card {
  will-change: auto;
  transform: translate3d(-50%, -50%, 0);
  backface-visibility: hidden;
}
.modal-card.dragging {
  will-change: transform;
}

body.ashen-window-dragging .modal {
  backdrop-filter: none !important;
}
.modal-card {
  contain: layout paint;
}
.modal-card.dragging {
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
}

.camera-tools,
.minimap-tools {
  display: none !important;
}
.viewport-wrap canvas#minimap {
  width: 180px;
  height: 180px;
  right: 18px;
  top: 18px;
  border: 2px solid #8a6b37;
  background: #07090c;
  box-shadow: 0 10px 28px #000b;
}
.modal-card {
  will-change: auto;
}
.modal-card.dragging {
  transform: none !important;
  will-change: transform;
  contain: layout paint;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: #8f6b38 #0b0910;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0b0910;
  border-left: 1px solid #211a28;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a47c43, #5b4327);
  border: 2px solid #0b0910;
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c39a59, #79592f);
}
.modal-card {
  transform: none;
  will-change: auto;
}
.minimap-tools {
  position: absolute;
  right: 26px;
  top: 205px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 3px 5px;
  border: 1px solid #5f4b32;
  border-radius: 9px;
  background: rgba(7, 8, 11, 0.94);
  box-shadow: 0 8px 20px #000b;
  backdrop-filter: blur(5px);
}
.minimap-tools button {
  width: 30px;
  height: 28px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 7px;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  color: #e6d2a7;
  background: #17131a;
  border-color: #665238;
}
.minimap-tools button:hover {
  transform: none;
  border-color: #d2aa62;
  color: #fff0c9;
}
.minimap-tools span {
  min-width: 32px;
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.14em;
  color: #8f8693;
}
.viewport-wrap canvas#minimap {
  width: 190px;
  height: 190px;
  right: 18px;
  top: 12px;
}
@media (max-width: 720px) {
  .minimap-tools {
    right: 14px;
    top: 174px;
  }
  .viewport-wrap canvas#minimap {
    width: 150px;
    height: 150px;
    right: 10px;
    top: 8px;
  }
}

.camera-tools {
  display: none !important;
}
.minimap-tools {
  display: flex !important;
}
.modal-card.dragging {
  transform: translate3d(0, 0, 0) !important;
}

html,
body {
  scrollbar-width: thin;
  scrollbar-color: #a47c43 #0b0910;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
  background: #0b0910;
  border-left: 1px solid #211a28;
}
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a47c43, #5b4327);
  border: 2px solid #0b0910;
  border-radius: 999px;
}
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c39a59, #79592f);
}
* {
  scrollbar-width: thin;
  scrollbar-color: #8f6b38 #0b0910;
}
*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
*::-webkit-scrollbar-track {
  background: #0b0910;
  border: 0;
}
*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a47c43, #5b4327);
  border: 2px solid #0b0910;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #c39a59, #79592f);
}
body {
  overflow-y: auto;
}
.intro-card {
  max-height: calc(100vh - 36px) !important;
  overflow: hidden !important;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.intro-card h1 {
  flex: 0 0 auto;
  margin: 0 0 8px;
}
.intro-card > p {
  flex: 0 0 auto;
  margin: 0 0 8px;
}
.intro-card .form-grid {
  flex: 0 0 auto;
}
.intro-card .class-choices {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 2px 5px 4px 0;
  align-content: start;
}
.intro-card .class-choice {
  min-height: 72px;
  padding: 7px;
  grid-template-columns: 46px 1fr;
  gap: 8px;
}
.intro-card .class-choice img,
.intro-card .class-choice .class-icon {
  width: 46px;
  height: 46px;
}
.intro-card .class-choice .class-desc {
  font-size: 9px;
  line-height: 1.25;
}
.intro-card .wide {
  flex: 0 0 auto;
  position: relative;
  margin-top: 9px;
}
.modal-card {
  max-height: calc(100vh - 36px);
  overflow: auto;
  overscroll-behavior: contain;
}
.modal-card.dragging {
  transform: none !important;
  left: auto;
  top: auto;
  will-change: left, top;
  transition: none !important;
}
.modal-card.dragging * {
  transition: none !important;
}
body.ashen-window-dragging .modal {
  backdrop-filter: none !important;
}

.viewport-wrap #worldCanvas {
  image-rendering: auto;
}
.minimap-tools {
  display: flex !important;
}

.modal-card {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  margin: 0;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 32px);
}
.modal-card.dragging {
  transform: translate3d(0, 0, 0) !important;
  left: auto;
  top: auto;
}
.bag-card {
  width: max-content !important;
  max-width: calc(100vw - 32px);
  overflow: hidden !important;
}
.bag-card .modal-head {
  min-width: 0;
}
.bag-list {
  display: grid;
  gap: 7px;
  align-items: start;
  justify-content: start;
}
.bag-row {
  width: 64px;
  height: 76px;
  box-sizing: border-box;
}

:root {
}
.bag-card .bag-list {
  grid-template-columns: repeat(6, 64px) !important;
  grid-template-rows: repeat(5, 64px);
  grid-auto-rows: 64px;
  width: max-content;
}
.bag-card {
  width: max-content !important;
}
.bag-card .empty-bag-slot {
  opacity: 0.2 !important;
  border: 1px dashed #4a3d4b !important;
  background: #0e0b12 !important;
}

.viewport-wrap .quest-helper {
  pointer-events: auto !important;
}
.viewport-wrap .quest-helper button {
  pointer-events: auto !important;
  position: relative;
  z-index: 2;
}

.quest-lore {
  margin: 10px 0;
  padding: 10px 12px;
  background: linear-gradient(145deg, #17121c, #0d0a10);
  border: 1px solid #3b3042;
  border-left: 2px solid #80683f;
  border-radius: 9px;
}
.quest-lore > b {
  color: #e4c982;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.quest-lore p {
  margin: 5px 0 0;
  color: #d8cdbd;
  line-height: 1.45;
}

.session-loading {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: rgba(5, 4, 7, 0.96);
  backdrop-filter: blur(8px);
}
.session-loading.hidden {
  display: none;
}
.session-loading-card {
  width: min(420px, calc(100vw - 32px));
  padding: 32px;
  text-align: center;
  background: #100c14;
  border: 1px solid #403447;
  border-radius: 16px;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}
.session-loading-card h2 {
  margin: 14px 0 7px;
}
.session-loading-card p {
  margin: 0;
  color: #a99daf;
}
.session-spinner {
  width: 34px;
  height: 34px;
  margin: auto;
  border: 3px solid #3b3042;
  border-top-color: #d7b36a;
  border-radius: 50%;
  animation: ashenfall-spin 0.8s linear infinite;
}
@keyframes ashenfall-spin {
  to {
    transform: rotate(360deg);
  }
}

.social-invite-modal {
  z-index: 120 !important;
  background: rgba(2, 2, 5, 0.68);
  backdrop-filter: blur(5px);
}
.social-invite-popup {
  width: min(470px, 92vw) !important;
  border: 1px solid #9a7844 !important;
  box-shadow:
    0 28px 100px #000e,
    0 0 0 1px #d6ae5a22 !important;
}
.social-invite-card {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid #4a3a4e;
  border-radius: 12px;
  background: linear-gradient(145deg, #19131e, #0d0a11);
  margin-bottom: 10px;
}
.social-invite-card.pvp {
  border-color: #704044;
}
.social-invite-icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 27px;
  background: #110e15;
  border: 1px solid #80633d;
  box-shadow: 0 0 22px #0008;
}
.social-invite-main h3 {
  margin: 0 0 4px;
  color: #ead8b5;
}
.social-invite-main p {
  margin: 0 0 12px;
}
.social-invite-main .actions-inline {
  display: flex;
  gap: 8px;
}
.party-hud {
  width: 250px !important;
  gap: 7px !important;
}
.party-frame {
  grid-template-columns: 40px 1fr !important;
  padding: 7px 9px !important;
}
.party-frame .party-icon {
  width: 36px !important;
  height: 36px !important;
  font-size: 20px;
}
.party-frame .party-bar.hp i {
  background: #8f4f5b;
}
.party-frame .party-statuses {
  display: flex;
  gap: 3px;
  margin-top: 3px;
}
.party-frame .party-status {
  font-size: 11px;
}
.party-frame.dead {
  opacity: 0.58;
  filter: grayscale(0.6);
}

.party-hud {
  top: 118px !important;
  left: 14px !important;
  z-index: 11 !important;
}
.party-frame.selected {
  border-color: #d8b56b !important;
  box-shadow:
    0 0 0 1px #d8b56b44,
    0 5px 18px rgba(0, 0, 0, 0.35) !important;
}

.party-hud {
  top: 118px !important;
  left: 14px !important;
  z-index: 11 !important;
}
.party-frame.selected {
  border-color: #d8b56b !important;
  box-shadow:
    0 0 0 1px #d8b56b44,
    0 5px 18px rgba(0, 0, 0, 0.35) !important;
}

.party-hud {
  width: 190px !important;
  gap: 4px !important;
  top: 118px !important;
  left: 14px !important;
}
.party-frame {
  grid-template-columns: 30px 1fr !important;
  min-height: 48px !important;
  padding: 5px 6px !important;
  border-radius: 5px !important;
}
.party-frame .party-icon {
  width: 28px !important;
  height: 28px !important;
  font-size: 15px !important;
  border-radius: 4px !important;
}
.party-frame-main {
  min-width: 0;
}
.party-frame .party-name {
  font-size: 11px !important;
  line-height: 13px !important;
}
.party-frame .party-meta {
  font-size: 8px !important;
}
.party-frame .party-bar {
  height: 5px !important;
  margin-top: 2px !important;
}
.party-frame .party-statuses {
  height: 15px !important;
  margin-top: 2px !important;
  display: flex;
  gap: 2px !important;
  overflow: hidden;
}
.party-frame .party-status {
  font-size: 10px !important;
  line-height: 13px !important;
}

.party-frame .party-range {
  font-size: 8px;
  line-height: 10px;
  color: #8ea5a9;
  text-align: right;
  margin-top: 1px;
  white-space: nowrap;
}
.party-frame .party-range.out {
  color: #b46a6a;
}
.party-frame.dead .party-range {
  color: #8b8585;
}

.dungeon-finder-card,
.menu-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(145deg, #17121c, #0d0a10);
  border: 1px solid #4b3c4f;
  border-radius: 12px;
}
.menu-hero {
  justify-content: flex-start;
}
.menu-icon {
  font-size: 34px;
}
.dungeon-finder-card .actions-inline {
  margin-top: 0;
}

.tooltip {
  white-space: normal;
  max-width: 360px;
}

.mail-menu-btn {
  position: relative;
}
.menu-badge {
  display: inline-flex;
  min-width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #b3261e;
  color: #fff;
  font-size: 10px;
  margin-left: 3px;
  padding: 0 4px;
}
.mail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mail-row {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}
.mail-row.unread {
  border-color: rgba(220, 180, 80, 0.45);
  background: rgba(120, 90, 25, 0.12);
}
.mail-row.read {
  opacity: 0.86;
}
.mail-icon {
  font-size: 24px;
  text-align: center;
}
.mail-main {
  min-width: 0;
}
.mail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.mail-body {
  white-space: normal;
  overflow-wrap: anywhere;
  margin-top: 4px;
}
.mail-attachment {
  margin-top: 5px;
}
.mail-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mail-empty {
  padding: 40px;
  text-align: center;
}
.mail-row button {
  white-space: nowrap;
}
@media (max-width: 700px) {
  .mail-row {
    grid-template-columns: 32px 1fr;
  }
  .mail-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
  .mail-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
}

.world-event-hud {
  position: absolute;
  left: 50%;
  top: 72px;
  right: auto;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 35;
  width: min(420px, calc(100% - 420px));
  min-width: 300px;
  padding: 10px 12px;
  border: 1px solid #765d38;
  border-radius: 10px;
  background: linear-gradient(180deg, #17121ddd, #0b0910ee);
  box-shadow: 0 10px 28px #0008;
  pointer-events: none;
}
.world-event-title {
  font-weight: 800;
  color: #f0d48a;
}
.world-event-desc {
  font-size: 11px;
  color: #c9bfaf;
  margin-top: 3px;
}
.world-event-progress {
  margin-top: 7px;
  height: 7px;
  background: #2a2430;
  border-radius: 5px;
  overflow: hidden;
}
.world-event-progress i {
  display: block;
  height: 100%;
  background: #b88442;
}
.world-event-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 10px;
  color: #9e95a4;
}
@media (max-width: 800px) {
  .world-event-hud {
    width: min(430px, calc(100% - 24px));
    min-width: 0;
    left: 50%;
    top: 62px;
  }
}

.account-settings {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid #3c3044;
  border-radius: 10px;
  background: #0f0b13;
}
.account-settings .section-head {
  margin: 0 0 8px;
}
.account-session-list {
  display: grid;
  gap: 6px;
}
.account-session-row {
  display: grid;
  grid-template-columns: 100px 1fr 1fr;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #2f2634;
  border-radius: 7px;
  color: #aaa;
  font-size: 11px;
}
.account-session-row b {
  color: #d8c49c;
}

.rarity-legendary {
  color: #ff9a3c;
}
.tt-compare-row {
  font-size: 11px;
  line-height: 1.5;
}
.tt-compare-row.better {
  color: #6fe28a;
}
.tt-compare-row.worse {
  color: #ff7070;
}
.quest-objective-marker {
  font-size: 10px;
}
.world-map-quest-target {
  stroke: #ffd76a;
  stroke-width: 2;
  fill: none;
  filter: drop-shadow(0 0 5px #ffd76a);
}

.class-choice img {
  object-position: center top;
  background: #0b0910;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.25);
}
.dungeon-boss-art {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center 35%;
  margin: 10px 0 12px;
  border: 1px solid rgba(183, 143, 77, 0.35);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.target-avatar {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
}
.map-character-hud .map-avatar {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  border: 1px solid rgba(192, 157, 91, 0.55);
}
@media (max-width: 650px) {
  .dungeon-boss-art {
    height: 120px;
  }
}

:root {
  --ui-ink: #08070b;
  --ui-panel: #0e0c12;
  --ui-panel-hi: #18131d;
  --ui-line: #3c3141;
  --ui-gold: #d7b36a;
  --ui-gold-hi: #f1d9a1;
  --ui-copper: #8e6b3d;
  --ui-blue: #6c9fc2;
  --ui-red: #a84d5b;
  --ui-shadow: 0 20px 70px rgba(0, 0, 0, 0.62);
}
body {
  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(99, 67, 91, 0.22),
      transparent 34%
    ),
    radial-gradient(circle at 8% 60%, rgba(89, 61, 42, 0.09), transparent 28%),
    #07060a;
  color: #e9e0d3;
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}
main,
.topbar {
  position: relative;
  z-index: 1;
}
.topbar {
  height: 48px !important;
  padding: 0 16px !important;
  background: linear-gradient(
    180deg,
    rgba(10, 8, 13, 0.97),
    rgba(8, 7, 10, 0.9)
  ) !important;
  border-bottom: 1px solid rgba(215, 179, 106, 0.24) !important;
  box-shadow: 0 8px 30px #0009 !important;
}
.brand {
  font-family: Georgia, serif !important;
  letter-spacing: 0.18em !important;
  color: #f1dfbd;
  text-shadow: 0 2px 18px #c99d4a33;
  font-size: 15px !important;
}
.brand:before {
  content: "✦";
  color: var(--ui-gold);
  margin-right: 7px;
  font-size: 10px;
  vertical-align: 2px;
}
.zone-head {
  border-left: 1px solid #3b3040;
  padding-left: 14px;
}
.zone-head span:first-child {
  font-family: Georgia, serif;
  color: #e8d7b4;
  letter-spacing: 0.03em;
}
.zone-head span:last-child {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #817783;
}
.hud-status {
  background: #0d0a10 !important;
  border-color: #302637 !important;
  color: #9b919e !important;
  box-shadow: inset 0 1px #fff1;
}
.connected {
  color: #83d0a0 !important;
}
.disconnected {
  color: #d06d79 !important;
}

.viewport-wrap {
  border: 1px solid rgba(215, 179, 106, 0.22);
  box-shadow:
    0 24px 80px #000c,
    inset 0 0 0 1px #ffffff05;
  background: #020205;
}
.viewport-wrap:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(
      ellipse at center,
      transparent 54%,
      rgba(0, 0, 0, 0.32) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.1),
      transparent 22%,
      transparent 78%,
      rgba(0, 0, 0, 0.34)
    );
}
#worldCanvas {
  filter: none !important;
}
.world-toolbar {
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  padding: 9px 12px !important;
  background: linear-gradient(
    180deg,
    rgba(4, 3, 7, 0.78),
    transparent
  ) !important;
}
.camera-tools {
  top: 10px !important;
  right: 10px !important;
  background: rgba(7, 6, 10, 0.72) !important;
  border-color: #4b3b4d !important;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 28px #000a !important;
}

.map-character-hud,
.target-hud,
.party-hud {
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55));
}
.map-character-hud {
  background: linear-gradient(
    135deg,
    rgba(13, 10, 16, 0.95),
    rgba(8, 7, 11, 0.88)
  ) !important;
  border: 1px solid rgba(215, 179, 106, 0.52) !important;
  border-radius: 7px !important;
  padding: 7px !important;
  box-shadow:
    0 0 0 1px #000,
    0 10px 28px #000a !important;
}
.map-character-hud:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 6px;
  background: linear-gradient(90deg, #d7b36a12, transparent 45%);
}
.map-character-hud .map-avatar {
  width: 52px !important;
  height: 52px !important;
  border-radius: 5px !important;
  border-color: #80653e !important;
  box-shadow:
    inset 0 0 20px #0008,
    0 0 16px #d7b36a18 !important;
}
.map-hud-name b {
  font-family: Georgia, serif;
  color: #f0e2c3;
}
.map-hud-role {
  font-size: 8px !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a99a84 !important;
}
.target-hud {
  background: linear-gradient(
    135deg,
    rgba(17, 9, 13, 0.96),
    rgba(8, 7, 10, 0.91)
  ) !important;
  border: 1px solid rgba(170, 74, 84, 0.7) !important;
  border-radius: 7px !important;
  box-shadow:
    0 0 0 1px #000,
    0 10px 30px #000b !important;
}
.target-avatar {
  border-radius: 5px !important;
  border-color: #7b3d46 !important;
}
.target-hud-name b {
  font-family: Georgia, serif;
}
.target-hud-bar.hp {
  height: 8px !important;
  background: #281419 !important;
}
.target-hud-bar.hp i {
  background: linear-gradient(90deg, #762d3b, #c95b65) !important;
}

.quest-helper {
  background: linear-gradient(
    145deg,
    rgba(13, 10, 16, 0.96),
    rgba(7, 6, 10, 0.92)
  ) !important;
  border: 1px solid rgba(215, 179, 106, 0.42) !important;
  border-radius: 7px !important;
  box-shadow: 0 14px 38px #000a !important;
  padding: 10px 12px !important;
}
.quest-helper:before {
  content: "QUEST LOG";
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #a9946f;
  margin-bottom: 5px;
}
.quest-helper b {
  font-family: Georgia, serif;
  color: #ead9b7;
}
.world-event-hud,
.dungeon-queue-hud {
  background: linear-gradient(
    145deg,
    rgba(14, 11, 17, 0.96),
    rgba(7, 6, 10, 0.94)
  ) !important;
  backdrop-filter: blur(10px);
  border-color: #705734 !important;
  box-shadow: 0 14px 38px #000a !important;
}

.map-overlay-combat {
  filter: drop-shadow(0 10px 24px #000a);
}
.map-overlay-combat .combat {
  background: linear-gradient(
    180deg,
    rgba(9, 7, 12, 0.18),
    rgba(9, 7, 12, 0.78)
  );
  border-radius: 9px;
  padding: 7px 9px !important;
}
.target-strip {
  padding: 4px 9px;
  color: #d9cdbb;
  font-size: 11px;
  border: 1px solid #33283a;
  border-radius: 6px;
  background: rgba(8, 6, 11, 0.82);
}
.hotbar-row .skillbar {
  gap: 5px !important;
}
.skill {
  border-color: #4a3d4e !important;
  background: linear-gradient(145deg, #211a27, #100d14) !important;
  box-shadow:
    inset 0 1px #ffffff08,
    0 3px 8px #0007 !important;
}
.skill.ready {
  border-color: #806b45 !important;
  box-shadow:
    inset 0 1px #fff1,
    0 0 0 1px #d7b36a22,
    0 4px 12px #0008 !important;
}
.skill.ready:hover {
  border-color: #e0c17b !important;
  box-shadow: 0 0 18px #d7b36a26 !important;
}
.skill.queued {
  box-shadow:
    0 0 0 2px var(--ui-gold),
    0 0 22px #d7b36a33 !important;
}
.skill .icon {
  filter: drop-shadow(0 2px 3px #000);
}
.xp-track {
  margin-top: 7px !important;
}
.xp-track-head span {
  color: #8e8190;
}
.xp-track-head b {
  color: #d7c18d;
}
.xp-bar {
  border-color: #4b3d50 !important;
  background: #0b0910 !important;
}
.gcd-line {
  opacity: 0.8;
}

.bottom-menu {
  right: 10px !important;
  bottom: 10px !important;
  padding: 5px !important;
  background: linear-gradient(
    180deg,
    rgba(18, 13, 23, 0.96),
    rgba(7, 6, 10, 0.96)
  ) !important;
  border: 1px solid #514151 !important;
  border-radius: 8px !important;
  box-shadow: 0 14px 38px #000b !important;
  backdrop-filter: blur(12px) !important;
}
.bottom-menu button {
  border-color: #352b3b !important;
  background: linear-gradient(180deg, #1b1521, #0e0b12) !important;
  border-radius: 5px !important;
}
.bottom-menu button:hover {
  background: linear-gradient(180deg, #2b202d, #15101a) !important;
  border-color: #9a7846 !important;
}
.bottom-menu button span {
  letter-spacing: 0.03em;
}

.modal-card {
  background: linear-gradient(145deg, #18131d, #0c0a10 80%) !important;
  border: 1px solid #5a485d !important;
  border-radius: 10px !important;
  box-shadow:
    0 28px 100px #000e,
    0 0 0 1px #000 !important;
}
.modal-card:before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d7b36a66, transparent);
  pointer-events: none;
}
.modal-head {
  border-bottom-color: #3b3041 !important;
}
.modal-head h2 {
  font-family: Georgia, serif;
  color: #ecdcb9 !important;
  letter-spacing: 0.02em;
}
.detail-panel,
.journal-entry,
.skill-entry,
.item,
.player-card,
.shop-row,
.profession-card,
.dungeon-card {
  background: linear-gradient(145deg, #17121d, #0e0b12) !important;
  border-color: #342a3a !important;
}
.journal-entry.selected,
.skill-entry.selected {
  border-color: #b28c51 !important;
  box-shadow: inset 3px 0 #d7b36a;
}
.quest-tabs button.active,
.auction-tabs button.active,
.auction-subtabs button.active {
  background: linear-gradient(180deg, #3a2c1c, #201811) !important;
  border-color: #9b7947 !important;
  color: #efd9a9 !important;
}

#create {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
#create .intro-card {
  width: min(1180px, 96vw) !important;
  max-height: 92vh !important;
  padding: 0 !important;
  overflow: auto !important;
  display: grid;
  grid-template-columns: 360px 1fr;
  grid-template-rows: auto auto 1fr auto;
  gap: 0 !important;
  background: linear-gradient(145deg, #17121d, #09070d) !important;
  border-color: #66503a !important;
}
#create .intro-card > h1 {
  grid-column: 1/-1;
  margin: 0;
  padding: 22px 26px 5px;
  font-family: Georgia, serif;
  color: #f1dfbd;
  letter-spacing: 0.06em;
  font-size: 28px;
}
#create .intro-card > p {
  grid-column: 1/-1;
  margin: 0;
  padding: 0 26px 14px;
  color: #9e94a1;
  border-bottom: 1px solid #362b3b;
}
.create-signout {
  float: right;
  margin-left: 12px;
  padding: 4px 9px;
  border: 1px solid #5a485d;
  border-radius: 4px;
  background: #0b0910;
  color: #bcae9b;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
}
.create-signout:hover {
  border-color: #9a7846;
  color: #efd9a9;
}
#create .form-grid {
  grid-column: 1;
  grid-row: 3;
  display: flex !important;
  flex-direction: column;
  gap: 10px;
  padding: 18px 20px 10px;
  border-right: 1px solid #33283a;
}
.form-grid label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9b8c78;
}
.form-grid input,
.form-grid select {
  background: #0b0910 !important;
  border-color: #3e3243 !important;
}
.class-preview-shell {
  grid-column: 1;
  grid-row: 2;
  display: none;
}
#create .class-choices {
  grid-column: 2;
  grid-row: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 18px 18px 10px;
  min-width: 0;
}
.class-choice {
  position: relative !important;
  display: flex !important;
  align-items: flex-end !important;
  min-height: 250px !important;
  padding: 0 !important;
  overflow: hidden !important;
  text-align: left !important;
  border: 1px solid #3c3040 !important;
  border-radius: 7px !important;
  background: #0b0910 !important;
  isolation: isolate !important;
  box-shadow: 0 8px 20px #0008 !important;
  transition:
    transform 0.16s,
    border-color 0.16s,
    box-shadow 0.16s !important;
}
.class-choice:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    transparent 25%,
    rgba(4, 3, 6, 0.05) 35%,
    rgba(4, 3, 6, 0.92) 88%,
    #050408 100%
  );
}
.class-choice img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
  z-index: -2 !important;
  opacity: 1 !important;
  filter: saturate(0.86) contrast(1.06) !important;
  transition:
    transform 0.35s,
    opacity 0.2s,
    filter 0.2s !important;
}
.class-choice > span:not(.class-check) {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  padding: 14px 13px 12px !important;
}
.class-choice b {
  display: block;
  font-family: Georgia, serif;
  font-size: 17px;
  color: #f0dfbe;
  text-shadow: 0 2px 8px #000;
  letter-spacing: 0.02em;
}
.class-choice .class-role {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #d2b87d;
}
.class-choice .class-desc {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  line-height: 1.35;
  color: #bcb2ba;
  max-height: 27px;
  overflow: hidden;
}
.class-choice .class-check {
  position: absolute !important;
  right: 8px !important;
  top: 8px !important;
  width: 24px;
  height: 24px;
  display: grid !important;
  place-items: center;
  background: #08060bd9;
  border: 1px solid #6c5438;
  border-radius: 50%;
  color: #f0d39a;
  font-weight: 900;
}
.class-choice:hover {
  transform: translateY(-3px) !important;
  border-color: #8f7044 !important;
  box-shadow:
    0 14px 28px #000b,
    0 0 20px #d7b36a12 !important;
}
.class-choice:hover img {
  transform: scale(1.035);
  opacity: 1;
  filter: saturate(1) contrast(1.08);
}
.class-choice.selected {
  border-color: #d1aa62 !important;
  box-shadow:
    0 0 0 1px #d7b36a44,
    0 18px 38px #000c,
    0 0 26px #d7b36a16 !important;
}
.class-choice.selected:after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #e2c27a33;
  pointer-events: none;
}
.enter-world-button {
  grid-column: 1/-1 !important;
  margin: 0 !important;
  border-radius: 0 0 9px 9px !important;
  height: 62px !important;
  background: linear-gradient(180deg, #876a39, #4d391f) !important;
  border: 0 !important;
  border-top: 1px solid #c09a56 !important;
  box-shadow: 0 -8px 25px #0008 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0;
}
.enter-world-button span {
  font-family: Georgia, serif;
  font-size: 17px;
  color: #f4dfb2;
}
.enter-world-button small {
  font-size: 9px;
  color: #c6aa79;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

#characterAvatar {
  width: 116px !important;
  height: 156px !important;
  border-radius: 7px !important;
  border: 1px solid #80633e !important;
  background-color: #0a080d !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  background-position: center bottom !important;
  box-shadow:
    0 14px 30px #000b,
    inset 0 0 24px #0008 !important;
  font-size: 0 !important;
}
.character-sheet-head {
  padding: 8px 0 14px !important;
  border-bottom: 1px solid #392e3e !important;
}
.character-sheet-head h2 {
  font-family: Georgia, serif;
  color: #f0dfbf;
}
.character-cols h3 {
  font-family: Georgia, serif;
  color: #cdb37c !important;
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.dungeon-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.dungeon-card {
  padding: 10px !important;
  border-radius: 8px !important;
  overflow: hidden;
}
.dungeon-card-head {
  padding-bottom: 6px !important;
}
.dungeon-card-head b {
  font-family: Georgia, serif;
  color: #ead8b2;
}
.dungeon-boss-art {
  height: 168px !important;
  margin: 8px 0 10px !important;
  border-radius: 6px !important;
  border-color: #5b4836 !important;
  filter: saturate(0.88) contrast(1.08);
  transition:
    transform 0.25s,
    filter 0.25s;
}
.dungeon-card:hover .dungeon-boss-art {
  filter: saturate(1) contrast(1.1);
  transform: scale(1.01);
}

.bag-card {
  background: linear-gradient(145deg, #18131d, #0b0910) !important;
}
.bag-slot {
  border-color: #3d3143 !important;
  background: linear-gradient(145deg, #1a1420, #0c0a10) !important;
  border-radius: 5px !important;
}
.bag-slot:hover {
  border-color: #b18b50 !important;
  box-shadow: 0 0 0 1px #d7b36a22 !important;
}
.bag-icon {
  filter: drop-shadow(0 2px 3px #000);
}

.toast {
  background: linear-gradient(145deg, #19131d, #0b0910) !important;
  border-color: #5a4758 !important;
  box-shadow: 0 18px 50px #000d !important;
}
.toast.ok {
  border-color: #557b62 !important;
}
.toast.bad {
  border-color: #824452 !important;
}
.session-loading {
  background: radial-gradient(
    circle at center,
    rgba(30, 21, 35, 0.94),
    rgba(3, 3, 6, 0.98)
  ) !important;
}
.session-loading-card {
  border-color: #65513a !important;
  background: linear-gradient(145deg, #18131d, #0b0910) !important;
}

@media (max-width: 900px) {
  #create .intro-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto 1fr auto !important;
  }
  #create .form-grid {
    grid-column: 1;
    grid-row: 3;
    border-right: 0;
    border-bottom: 1px solid #33283a;
    padding: 14px 18px 10px;
  }
  .class-preview-shell {
    display: none;
  }
  .create .intro-card > p {
    padding-bottom: 10px;
  }
  #create .class-choices {
    grid-column: 1;
    grid-row: 4;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 12px;
  }
  .class-choice {
    min-height: 210px !important;
  }
  .class-choice .class-desc {
    display: none;
  }
  .dungeon-directory {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  #create .class-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .class-choice {
    min-height: 205px !important;
  }
  .class-choice b {
    font-size: 15px;
  }
  .class-choice .class-role {
    font-size: 7px;
  }
  #characterAvatar {
    width: 86px !important;
    height: 118px !important;
  }
  .bottom-menu {
    right: 5px !important;
    bottom: 5px !important;
  }
  .bottom-menu button {
    min-width: 49px !important;
  }
}

#create .class-preview-shell {
  display: flex;
  grid-column: 1;
  grid-row: 2;
  min-height: 250px;
  border-right: 1px solid #33283a;
  background:
    radial-gradient(
      circle at 40% 35%,
      rgba(116, 77, 53, 0.18),
      transparent 55%
    ),
    #0a080e;
  position: relative;
  overflow: hidden;
}
#create .class-preview-image {
  width: 155px;
  min-width: 155px;
  align-self: stretch;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center bottom;
  filter: saturate(0.96) contrast(1.05);
  mask-image: linear-gradient(90deg, black 72%, transparent 100%);
}
#create .class-preview-copy {
  align-self: center;
  padding: 18px 18px 18px 0;
  margin-left: -4px;
  position: relative;
}
.class-preview-copy h2 {
  font-family: Georgia, serif;
  color: #f1dfbe;
  font-size: 26px;
  margin: 4px 0 2px;
}
.class-preview-role {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #d2b06f;
}
.class-preview-copy p {
  font-size: 10px;
  color: #9d939e;
  line-height: 1.5;
  margin: 10px 0;
}
.class-preview-resource {
  display: inline-block;
  padding: 5px 7px;
  border: 1px solid #4a3a45;
  border-radius: 4px;
  background: #0c0910;
  color: #a99c88;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
@media (max-width: 900px) {
  #create .class-preview-shell {
    grid-column: 1;
    grid-row: 2;
    border-right: 0;
    border-bottom: 1px solid #33283a;
    min-height: 170px;
  }
  .class-preview-image {
    width: 120px;
    min-width: 120px;
  }
  .class-preview-copy {
    padding-right: 15px;
  }
  .class-preview-copy h2 {
    font-size: 22px;
  }
}

:root {
  --ashen-gold: #d7b46a;
  --ashen-gold-hi: #f1d69b;
  --ashen-gold-dim: #7d6035;
  --ashen-ink: #07060a;
  --ashen-panel: #100d14f5;
  --ashen-panel-2: #17121c;
  --ashen-edge: #3b3042;
  --ashen-edge-hi: #69543b;
  --ashen-text: #eee7da;
  --ashen-muted: #958b9b;
  --rarity-common: #c7c1c9;
  --rarity-uncommon: #65c48d;
  --rarity-rare: #5ca7ff;
  --rarity-epic: #b77cff;
  --rarity-legendary: #ff9a3c;
}
html {
  scroll-behavior: smooth;
}
body {
  background: radial-gradient(
    ellipse at 50% -18%,
    #30233b 0,
    #100c15 38%,
    #050509 100%
  );
  color: var(--ashen-text);
}
body:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.012),
    transparent 20%,
    transparent 80%,
    rgba(255, 255, 255, 0.012)
  );
  mix-blend-mode: screen;
}
.topbar {
  height: 54px !important;
  background: linear-gradient(180deg, #17121cf5, #09080df4) !important;
  border-bottom: 1px solid #4b3b50 !important;
  box-shadow:
    0 8px 32px #000b,
    0 1px #ffffff08 inset !important;
}
.brand {
  font-family: Georgia, serif !important;
  font-size: 16px !important;
  letter-spacing: 0.18em !important;
  color: #f2e5c8 !important;
}
.zone-head span:first-child {
  font-family: Georgia, serif;
  font-size: 14px;
  color: #e6d6b4;
}
.hero {
  border-color: #56454f !important;
  background: linear-gradient(135deg, #17121df5, #0c0a10f2) !important;
  box-shadow: 0 18px 55px #000a !important;
  position: relative;
  overflow: hidden;
}
.hero:after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--ashen-gold-dim),
    transparent
  );
  opacity: 0.65;
}
.card,
.sidebar .card,
.info-grid .card {
  border-color: #403342 !important;
  background: linear-gradient(180deg, #15111bf4, #0c0a10f2) !important;
}

.world-card {
  border-radius: 16px !important;
  border-color: #57434d !important;
  box-shadow:
    0 30px 90px #000e,
    0 0 0 1px #fff1 inset !important;
}
.viewport-wrap {
  border-radius: 12px 12px 0 0 !important;
  min-height: 620px !important;
}
.viewport-wrap:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.18),
    transparent 22%,
    transparent 72%,
    rgba(0, 0, 0, 0.34)
  );
  mix-blend-mode: multiply;
}
.map-character-hud,
.target-hud,
.party-hud,
.quest-helper,
.dungeon-queue-hud,
.world-event-hud {
  backdrop-filter: blur(10px);
  border-color: #68523a !important;
  box-shadow:
    0 16px 40px #000c,
    0 0 0 1px #fff1 inset !important;
}
.map-character-hud {
  background: linear-gradient(135deg, #0b0910ed, #17121ce5) !important;
}
.map-character-hud .map-hud-name b,
.target-hud-name b {
  font-family: Georgia, serif;
  color: #f0dfbf;
}
.quest-helper {
  background: linear-gradient(145deg, #100c14f0, #19121dea) !important;
}
.world-event-hud {
  border-left: 3px solid var(--ashen-gold) !important;
}
.map-chat {
  background: linear-gradient(180deg, #0d0a10f2, #08070cef) !important;
  border-color: #4c3d4e !important;
}

.map-overlay-combat .combat {
  border-color: #665039 !important;
  background: linear-gradient(180deg, #15101af7, #08070cf5) !important;
  box-shadow:
    0 20px 55px #000e,
    0 0 0 1px #fff1 inset !important;
}
.hotbar-row {
  position: relative;
}

.skill {
  border-color: #514454 !important;
  background: linear-gradient(145deg, #28202f, #0f0b14) !important;
  box-shadow:
    0 6px 14px #000b,
    0 0 0 1px #fff1 inset !important;
}
.skill.ready {
  border-color: #d4ad61 !important;
  box-shadow:
    0 0 0 1px #d4ad6144,
    0 0 22px #d4ad6120,
    0 7px 16px #000c !important;
}
.skill.queued {
  outline: 2px solid var(--ashen-gold) !important;
  outline-offset: 1px;
}
.skill:hover {
  border-color: #d8b56b !important;
  filter: brightness(1.08);
}
.skill .icon {
  filter: drop-shadow(0 2px 4px #000);
}

.modal {
  background: rgba(2, 1, 5, 0.78) !important;
  backdrop-filter: blur(9px) saturate(0.9) !important;
  padding: 24px !important;
}
.modal-card {
  position: relative !important;
  border-radius: 15px !important;
  border-color: #5a485f !important;
  background: linear-gradient(155deg, #1a1420, #0b0910 72%) !important;
  box-shadow:
    0 35px 120px #000f,
    0 0 0 1px #fff1 inset !important;
  padding: 0 !important;
  overflow: auto !important;
}
.modal-card:before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8e6d3f, transparent);
  opacity: 0.8;
  pointer-events: none;
}
.modal-head {
  position: sticky;
  top: 0;
  z-index: 8;
  margin: 0 !important;
  padding: 17px 19px 12px !important;
  background: linear-gradient(180deg, #1a1420f8, #120e16ee) !important;
  border-bottom: 1px solid #3a2d40 !important;
  backdrop-filter: blur(12px);
}
.modal-head h2 {
  font-family: Georgia, serif !important;
  color: #efdfc1 !important;
  letter-spacing: 0.025em;
}
.modal-head button {
  width: 32px;
  height: 32px;
  padding: 0 !important;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #0b090e;
  border-color: #4b3b4f;
  font-size: 20px;
  line-height: 1;
}
.modal-head button:hover {
  color: #f3d79b;
  border-color: #a17a43;
}
.modal-card > .detail-panel,
.modal-card > .journal-layout,
.modal-card > .character-sheet,
.modal-card > .build-grid,
.modal-card > #shopList,
.modal-card > #auctionList,
.modal-card > #professionList,
.modal-card > #dungeonList,
.modal-card > #socialList,
.modal-card > #partyList,
.modal-card > #pvpList {
  margin: 14px 18px 18px;
}

.journal-layout {
  grid-template-columns: minmax(250px, 34%) 1fr !important;
  gap: 14px !important;
}
.journal-list {
  padding-right: 3px;
}
.journal-entry,
.skill-entry {
  background: linear-gradient(145deg, #17121c, #0f0b13) !important;
  border-color: #342b3b !important;
  transition:
    transform 0.12s,
    border-color 0.12s,
    box-shadow 0.12s !important;
}
.journal-entry:hover,
.skill-entry:hover {
  transform: translateX(2px);
  border-color: #66513a !important;
  box-shadow: 0 8px 22px #0007;
}
.journal-entry.selected,
.skill-entry.selected {
  border-color: #c9a35d !important;
  box-shadow:
    inset 3px 0 #d7b46a,
    0 8px 24px #0008 !important;
  background: linear-gradient(145deg, #211925, #110d15) !important;
}
.detail-panel {
  background: linear-gradient(145deg, #120e16, #0b090e) !important;
  border-color: #33293a !important;
  box-shadow: inset 0 1px #fff1;
}
.skill-detail-grid {
  padding: 4px 0 14px;
  border-bottom: 1px solid #2c2332;
}
.skill-big {
  background: radial-gradient(circle, #2b2135, #0d0a11) !important;
  border: 1px solid #5b4632;
  box-shadow: 0 12px 25px #0009;
}
.reward {
  background: linear-gradient(145deg, #18121d, #0d0a10) !important;
  border-color: #403143 !important;
}
.build-grid {
  grid-template-columns: minmax(250px, 0.9fr) minmax(350px, 1.1fr) !important;
  gap: 16px !important;
}
.build-grid > div {
  background: linear-gradient(145deg, #130f17, #0b090e);
  border: 1px solid #33293a;
  border-radius: 12px;
  padding: 14px;
  box-shadow: inset 0 1px #fff1;
}
.build-grid h3 {
  font-family: Georgia, serif;
  color: #dfcda9;
  border-bottom: 1px solid #302535;
  padding-bottom: 8px;
}
.stat-row {
  background: linear-gradient(90deg, #17121d, #100c13) !important;
  border-color: #302638 !important;
}

.character-sheet {
  padding: 0 !important;
}
.character-sheet-head {
  position: relative;
  min-height: 240px !important;
  overflow: hidden;
  border-color: #5a4635 !important;
  background: radial-gradient(
    circle at 28% 40%,
    #3a2a2d 0,
    #17121c 34%,
    #09080d 80%
  ) !important;
  display: flex;
  align-items: flex-end !important;
  padding: 22px !important;
}
.character-sheet-head:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.08),
    transparent 42%,
    rgba(0, 0, 0, 0.55)
  );
  pointer-events: none;
}
.character-sheet-head .avatar {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  background-size: cover !important;
  background-position: center 18% !important;
  opacity: 0.9;
  mask-image: linear-gradient(90deg, black 0, black 52%, transparent 92%);
}
.character-sheet-head > div:not(.avatar) {
  position: relative;
  z-index: 2;
  margin-left: 38%;
  text-shadow: 0 2px 8px #000;
}
.character-sheet-head h2 {
  font-family: Georgia, serif;
  color: #f2e1c0;
  font-size: 28px;
  margin: 0 0 3px;
}
.character-cols {
  gap: 14px !important;
  padding: 14px 0 0;
}
.character-cols > div {
  background: linear-gradient(145deg, #15111a, #0d0a10) !important;
  border-color: #33293a !important;
}
.character-cols h3 {
  font-family: Georgia, serif;
  color: #d9c79f;
}
.character-cols .item {
  transition: 0.12s;
}
.character-cols .item:hover {
  border-color: #66503b;
  transform: translateX(2px);
}

.bag-card {
  width: min(760px, 96vw) !important;
}
.bag-list {
  grid-template-columns: repeat(6, 64px) !important;
  justify-content: center !important;
  gap: 7px !important;
  padding: 18px !important;
}
.bag-slot {
  background: radial-gradient(circle at 50% 35%, #241b2c, #0f0b13) !important;
  border: 1px solid #3a3042 !important;
  border-radius: 8px !important;
  box-shadow:
    inset 0 1px #fff1,
    0 5px 12px #0007 !important;
  transition:
    transform 0.1s,
    border-color 0.1s,
    box-shadow 0.1s !important;
}
.bag-slot:hover {
  transform: translateY(-2px);
  border-color: #b28a4d !important;
  box-shadow:
    0 8px 18px #000a,
    0 0 14px #d7b46a18 !important;
}
.bag-slot.empty-bag-slot {
  background: linear-gradient(145deg, #0d0a10, #08070b) !important;
  border-style: dashed !important;
}
.bag-slot .bag-icon {
  filter: drop-shadow(0 2px 3px #000);
  font-size: 30px;
}
.item,
.bag-row {
  transition:
    border-color 0.12s,
    transform 0.12s,
    background 0.12s;
}
.item:hover,
.bag-row:hover {
  border-color: #66503b !important;
  background: #1b1522 !important;
}
.rarity-common {
  color: var(--rarity-common) !important;
}
.rarity-uncommon {
  color: var(--rarity-uncommon) !important;
}
.rarity-rare {
  color: var(--rarity-rare) !important;
}
.rarity-epic {
  color: var(--rarity-epic) !important;
}
.rarity-legendary {
  color: var(--rarity-legendary) !important;
}

.dungeon-directory {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.dungeon-card {
  position: relative;
  overflow: hidden !important;
  background: linear-gradient(145deg, #17121c, #0b090f) !important;
  border: 1px solid #3b3042 !important;
  border-radius: 12px !important;
  padding: 0 12px 12px !important;
  box-shadow: 0 14px 35px #0008 !important;
}
.dungeon-card:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #8b6a3c, transparent);
}
.dungeon-card-head {
  padding: 13px 2px 9px !important;
  position: relative;
  z-index: 2;
}
.dungeon-card-head b {
  font-family: Georgia, serif;
  color: #ebd9b7;
  font-size: 16px;
}
.dungeon-card-head span {
  color: #b69d73;
  font-size: 10px;
}
.dungeon-boss-art {
  display: block;
  width: calc(100% + 24px) !important;
  height: 185px !important;
  margin: 0 -12px 11px !important;
  object-fit: cover !important;
  object-position: center 24% !important;
  opacity: 0.88 !important;
  filter: saturate(0.85) contrast(1.08) !important;
  mask-image: linear-gradient(180deg, black 0, black 74%, transparent 100%);
  border-bottom: 1px solid #5a4634;
}
.dungeon-card:hover .dungeon-boss-art {
  opacity: 1 !important;
  filter: saturate(1) contrast(1.1) !important;
}
.dungeon-room-card {
  background: #100c13 !important;
  border-color: #3a2d3e !important;
}
.dungeon-finder-card {
  background: linear-gradient(135deg, #1b1520, #100c13) !important;
  border-color: #574530 !important;
  box-shadow: 0 10px 25px #0008;
}

.profession-card,
.party-summary,
.social-card,
.pvp-card,
.auction-section,
.mail-row,
.trade-side {
  background: linear-gradient(145deg, #17121c, #0e0b12) !important;
  border-color: #372c3d !important;
  box-shadow:
    inset 0 1px #fff1,
    0 8px 22px #0005;
}
.profession-card:hover,
.party-summary:hover,
.social-card:hover,
.pvp-card:hover {
  border-color: #5f4a37 !important;
}
.auction-tabs button.active {
  background: linear-gradient(180deg, #8b6a39, #4c391f) !important;
  border-color: #caa35d !important;
  color: #fff0c9 !important;
}
.shop-pane {
  background: linear-gradient(145deg, #15101a, #0d0a10) !important;
  border-color: #382d3e !important;
}
.shop-row {
  background: #141019 !important;
  border-color: #302638 !important;
}
.shop-row:hover {
  border-color: #6b5238 !important;
}

.world-map-modal {
  width: min(1180px, 97vw) !important;
}
.world-map-toolbar {
  background: #0e0b12 !important;
  border: 1px solid #33293a !important;
  border-radius: 9px !important;
  padding: 7px !important;
  margin: 0 18px 12px !important;
}
.world-map-toolbar button.active {
  background: linear-gradient(180deg, #85643a, #4b381f) !important;
  border-color: #c39a57 !important;
  color: #fff0ca !important;
}
.world-map-wrap {
  margin: 0 18px 18px !important;
  border: 1px solid #3d3042 !important;
  border-radius: 12px !important;
  overflow: hidden;
  background: #08070b !important;
  box-shadow: inset 0 0 80px #000;
}
#worldMapCanvas {
  display: block;
  width: 100%;
  height: auto;
}

.dialogue {
  background: radial-gradient(circle at 50% 0, #24182b, #0d0a10 70%) !important;
  border-color: #725839 !important;
  padding: 28px !important;
  text-align: left;
}
.dialogue:after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d0a85f, transparent);
}
.dialogue .speaker {
  font-family: Georgia, serif;
  color: #d9b66f;
  font-size: 15px;
}
.dialogue p {
  font-size: 15px;
  line-height: 1.7;
  color: #ded4c7;
  min-height: 110px;
}
.death {
  border-color: #713844 !important;
  background: radial-gradient(
    circle at 50% 25%,
    #2a1018,
    #0c090d 68%
  ) !important;
}
.death h1 {
  font-family: Georgia, serif;
  letter-spacing: 0.08em;
}

@media (max-width: 1000px) {
  .dungeon-directory {
    grid-template-columns: 1fr;
  }
  .build-grid {
    grid-template-columns: 1fr !important;
  }
  .character-sheet-head > div:not(.avatar) {
    margin-left: 32%;
  }
}
@media (max-width: 760px) {
  .modal {
    padding: 8px !important;
  }
  .modal-card {
    width: 100% !important;
    max-height: 94vh !important;
    border-radius: 12px !important;
  }
  .modal-card > .detail-panel,
  .modal-card > .journal-layout,
  .modal-card > .character-sheet,
  .modal-card > .build-grid,
  .modal-card > #shopList,
  .modal-card > #auctionList,
  .modal-card > #professionList,
  .modal-card > #dungeonList,
  .modal-card > #socialList,
  .modal-card > #partyList,
  .modal-card > #pvpList {
    margin: 10px;
  }
  .journal-layout {
    grid-template-columns: 1fr !important;
  }
  .journal-list {
    max-height: 220px;
    overflow: auto;
  }
  .bag-list {
    grid-template-columns: repeat(5, 58px) !important;
    gap: 6px !important;
    padding: 10px !important;
  }
  .bag-slot {
    width: 58px !important;
    height: 58px !important;
  }
  .character-sheet-head {
    min-height: 200px !important;
  }
  .character-sheet-head > div:not(.avatar) {
    margin-left: 25%;
  }
  .character-sheet-head h2 {
    font-size: 23px;
  }
  .dungeon-boss-art {
    height: 160px !important;
  }
}
@media (max-width: 520px) {
  .bag-list {
    grid-template-columns: repeat(4, 58px) !important;
  }
  .dungeon-boss-art {
    height: 145px !important;
  }
  .hero {
    padding: 9px;
  }
  .hero .avatar {
    width: 52px;
    height: 52px;
  }
  .name-row h1 {
    font-size: 17px;
  }
}

body.reduce-motion *,
body.reduce-motion *:before,
body.reduce-motion *:after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
.ashen-screen-label {
  margin-left: auto;
  order: 2;
  color: #74697b;
  font-size: 8px;
  letter-spacing: 0.18em;
  font-weight: 800;
  align-self: center;
  pointer-events: none;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}
body {
  overflow-x: hidden;
}
body.modal-open {
  overflow: hidden;
}
body.creating-character {
  background: #000 !important;
  overflow: hidden !important;
}
body.creating-character > main,
body.creating-character > .topbar {
  visibility: hidden !important;
}

.modal {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  padding: 0 !important;
  background: rgba(2, 1, 5, 0.58) !important;
  backdrop-filter: blur(7px) !important;
  pointer-events: none !important;
  z-index: 1200 !important;
  overflow: auto !important;
  overscroll-behavior: contain;
}
.modal.hidden {
  display: none !important;
}
.modal-card {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate3d(-50%, -50%, 0) !important;
  margin: 0 !important;
  width: min(760px, calc(100vw - 32px)) !important;
  max-width: calc(100vw - 32px) !important;
  max-height: min(86vh, 900px) !important;
  overflow: auto !important;
  overscroll-behavior: contain;
  pointer-events: auto !important;
  box-sizing: border-box;
}
.modal-card.large {
  width: min(980px, calc(100vw - 32px)) !important;
  max-height: min(88vh, 940px) !important;
}
.modal-card.xlarge {
  width: min(1180px, calc(100vw - 32px)) !important;
  max-height: min(90vh, 960px) !important;
}
.modal-card.dragging {
  transform: none !important;
  transition: none !important;
}
.modal-card .modal-head {
  position: sticky !important;
  top: 0 !important;
  z-index: 20 !important;
}
.modal-head button {
  position: relative;
  z-index: 30 !important;
  pointer-events: auto !important;
}

#create.modal {
  display: block !important;
  background: #000 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: auto !important;
  z-index: 1300 !important;
}
#create .intro-card {
  width: min(1240px, calc(100vw - 32px)) !important;
  max-width: 1240px !important;
  height: min(900px, calc(100vh - 32px)) !important;
  max-height: calc(100vh - 32px) !important;
  overflow: hidden !important;
  display: grid !important;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr) !important;
  grid-template-rows: auto auto minmax(0, 1fr) auto !important;
  gap: 0 !important;
  padding: 0 !important;
  transform: translate3d(-50%, -50%, 0) !important;
}
#create .intro-card > h1 {
  grid-column: 1/-1 !important;
  grid-row: 1 !important;
  padding: 20px 24px 4px !important;
  margin: 0 !important;
  font-size: clamp(22px, 2.2vw, 30px) !important;
  white-space: normal !important;
}
#create .intro-card > p {
  grid-column: 1/-1 !important;
  grid-row: 2 !important;
  padding: 0 24px 14px !important;
  margin: 0 !important;
  line-height: 1.45 !important;
}
#create .form-grid {
  grid-column: 1 !important;
  grid-row: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  padding: 14px 18px 244px !important;
  border-right: 1px solid #33283a !important;
  border-bottom: 0 !important;
  min-width: 0 !important;
  overflow: auto !important;
}
#create .class-preview-shell {
  display: flex !important;
  grid-column: 1 !important;
  grid-row: 3 !important;
  align-self: end !important;
  height: 220px !important;
  min-height: 0 !important;
  border-right: 1px solid #33283a !important;
  border-top: 1px solid #33283a !important;
  z-index: 2 !important;
  background: linear-gradient(145deg, #120e17, #09070c) !important;
}
#create .class-preview-image {
  width: 145px !important;
  min-width: 145px !important;
  background-size: cover !important;
  background-position: center top !important;
}
#create .class-preview-copy {
  min-width: 0 !important;
  overflow: auto !important;
  padding: 14px 14px 14px 0 !important;
}
#create .class-preview-copy h2 {
  font-size: 24px !important;
}
#create .class-choices {
  grid-column: 2 !important;
  grid-row: 3 !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-rows: minmax(170px, 1fr) !important;
  align-content: stretch !important;
  gap: 10px !important;
  padding: 14px 18px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: auto !important;
}
#create .class-choice {
  min-height: 0 !important;
  height: auto !important;
}
#create .enter-world-button {
  grid-column: 1/-1 !important;
  grid-row: 4 !important;
  height: 60px !important;
  min-height: 60px !important;
}

.topbar {
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.top-actions {
  min-width: 0;
  max-width: 55vw;
}
.viewport-wrap {
  width: 100%;
  box-sizing: border-box;
}

.modal .modal-card,
.modal .modal-card * {
  pointer-events: auto;
}
.modal .modal-head button,
.modal [data-action],
.modal [data-cmd] {
  pointer-events: auto !important;
}

@media (max-width: 1000px) {
  #create .intro-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto !important;
  }
  #create .form-grid {
    grid-column: 1 !important;
    grid-row: 3 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #33283a !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    padding-bottom: 9px !important;
  }
  #create .class-preview-shell {
    grid-column: 1 !important;
    grid-row: 4 !important;
    display: flex !important;
    height: 150px !important;
    border-right: 0 !important;
    border-top: 0 !important;
  }
  #create .class-choices {
    grid-column: 1 !important;
    grid-row: 5 !important;
  }
  #create .enter-world-button {
    grid-row: 6 !important;
  }
  #create .class-choices {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-auto-rows: 180px !important;
  }
}
@media (max-width: 700px) {
  .modal {
    padding: 8px !important;
  }
  .modal-card,
  .modal-card.large,
  .modal-card.xlarge {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }
  #create .intro-card {
    width: calc(100vw - 16px) !important;
    height: calc(100vh - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }
  #create .intro-card > h1 {
    padding: 14px 16px 3px !important;
  }
  #create .intro-card > p {
    padding: 0 16px 9px !important;
    font-size: 11px !important;
  }
  #create .form-grid {
    grid-template-columns: 1fr !important;
    padding: 9px 12px !important;
    gap: 7px !important;
  }
  #create .class-preview-shell {
    height: 118px !important;
  }
  #create .class-preview-image {
    width: 92px !important;
    min-width: 92px !important;
  }
  #create .class-preview-copy h2 {
    font-size: 19px !important;
  }
  #create .class-preview-copy p {
    font-size: 9px !important;
    margin: 5px 0 !important;
  }
  #create .class-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-rows: 145px !important;
    padding: 9px 12px !important;
    gap: 7px !important;
  }
  .top-actions {
    max-width: 45vw;
  }
  .bottom-menu {
    max-width: calc(100vw - 12px) !important;
  }
}
@media (max-width: 480px) {
  #create .class-choices {
    grid-template-columns: 1fr 1fr !important;
    grid-auto-rows: 132px !important;
  }
  .class-choice b {
    font-size: 13px !important;
  }
  .class-choice .class-role {
    font-size: 7px !important;
  }
  .class-choice .class-desc {
    display: none !important;
  }
  .modal-head {
    padding: 12px 13px 9px !important;
  }
}

#create .class-preview-shell {
  position: relative !important;
  overflow: hidden !important;
}
@media (min-width: 1001px) {
  #create .form-grid {
    position: relative !important;
    z-index: 1 !important;
  }
  #create .class-preview-shell {
    position: relative !important;
    z-index: 3 !important;
    pointer-events: none !important;
  }
  #create .class-preview-shell * {
    pointer-events: auto !important;
  }
}

#create.modal.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
#create .intro-card {
  overflow: hidden !important;
}
#create .class-choices {
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  padding-right: 14px !important;
}
#create .class-choice {
  min-width: 0 !important;
  contain: layout paint;
}
#create .class-choice img {
  image-rendering: auto !important;
  backface-visibility: hidden;
  transform: translateZ(0);
  will-change: transform;
}
#create .class-choice .class-desc {
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: 2.7em !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
}
#create .class-preview-copy p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}
html,
body {
  max-width: 100%;
  overflow-x: hidden !important;
}
.modal {
  overscroll-behavior: contain;
}
.modal-card {
  contain: layout paint;
  overflow: auto !important;
  overflow-x: hidden !important;
}
.modal-card .modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 54px;
  box-sizing: border-box;
}
.modal-card .modal-head h2 {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.modal-card .modal-head button {
  flex: 0 0 32px;
}
#create .intro-card {
  left: 50% !important;
  top: 50% !important;
  right: auto !important;
  bottom: auto !important;
  transform: translate3d(-50%, -50%, 0) !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 700px) {
  #create .intro-card {
    left: 50% !important;
    top: 50% !important;
    transform: translate3d(-50%, -50%, 0) !important;
  }
}

body.game-ready {
  overflow: hidden !important;
  height: 100vh !important;
  min-height: 100vh !important;
}
body.game-ready .topbar {
  height: 44px !important;
  min-height: 44px !important;
}
body.game-ready main {
  height: calc(100vh - 44px) !important;
  max-height: calc(100vh - 44px) !important;
  padding: 7px 10px !important;
  margin: 0 auto !important;
  overflow: hidden !important;
}
body.game-ready .hero {
  height: 68px !important;
  min-height: 68px !important;
  margin: 0 0 7px !important;
  padding: 7px 11px !important;
  overflow: hidden !important;
}
body.game-ready .hero .avatar {
  width: 50px !important;
  height: 50px !important;
  font-size: 28px !important;
}
body.game-ready .name-row h1 {
  font-size: 18px !important;
}
body.game-ready .hero .resource-line {
  grid-template-columns: 30px minmax(80px, 300px) auto !important;
}
body.game-ready .game-layout {
  height: calc(100% - 75px) !important;
  min-height: 0 !important;
}
body.game-ready .main-column {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
body.game-ready .world-card {
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}
body.game-ready .viewport-wrap {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
}
body.game-ready #worldCanvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: fill !important;
}
body.game-ready .map-help {
  display: none !important;
}
body.game-ready .info-grid {
  display: none !important;
}
body.game-ready .sidebar {
  height: 100% !important;
  min-height: 0 !important;
  overflow: auto !important;
  padding-right: 2px !important;
}
body.game-ready .modal-open main {
  overflow: hidden !important;
}

@media (max-height: 760px) and (min-width: 901px) {
  body.game-ready .topbar {
    height: 40px !important;
    min-height: 40px !important;
  }
  body.game-ready main {
    height: calc(100vh - 40px) !important;
    max-height: calc(100vh - 40px) !important;
    padding: 5px 8px !important;
  }
  body.game-ready .hero {
    height: 58px !important;
    min-height: 58px !important;
    margin-bottom: 5px !important;
  }
  body.game-ready .game-layout {
    height: calc(100% - 63px) !important;
  }
  body.game-ready .hero .currency > div:nth-child(1),
  body.game-ready .hero .currency > div:nth-child(3) {
    display: none !important;
  }
}
@media (max-width: 900px) {
  body.game-ready {
    overflow: auto !important;
    height: auto !important;
    min-height: 100vh !important;
  }
  body.game-ready main {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 6px !important;
  }
  body.game-ready .hero {
    height: auto !important;
    min-height: 0 !important;
  }
  body.game-ready .game-layout {
    height: auto !important;
  }
  body.game-ready .main-column {
    height: auto !important;
  }
  body.game-ready .world-card {
    height: auto !important;
    min-height: 0 !important;
  }
  body.game-ready .viewport-wrap {
    height: min(70vh, 620px) !important;
    min-height: 420px !important;
    flex: none !important;
  }
  body.game-ready #worldCanvas {
    height: 100% !important;
  }
  body.game-ready .sidebar {
    height: auto !important;
    overflow: visible !important;
  }
}

#create .class-choice img {
  object-fit: cover !important;
  object-position: 50% 20% !important;
  image-rendering: auto !important;
  filter: saturate(0.95) contrast(1.04) !important;
}
#create .class-choice:hover img {
  transform: scale(1.025) !important;
  filter: saturate(1) contrast(1.06) !important;
}
#create .class-preview-image {
  background-size: cover !important;
  background-position: 50% 15% !important;
}

html,
body {
  overscroll-behavior: none;
}
button,
.bottom-menu button,
.topbar button {
  transition:
    border-color 0.12s,
    background-color 0.12s,
    box-shadow 0.12s,
    color 0.12s,
    opacity 0.12s !important;
  transform: none !important;
}
button:hover,
.topbar button:hover,
.bottom-menu button:hover {
  transform: none !important;
}
button:active {
  transform: none !important;
}
.modal,
.modal-card,
.modal-head,
.map-character-hud,
.target-hud,
.party-hud,
.quest-helper,
.dungeon-queue-hud,
.world-event-hud,
.map-overlay-combat #combatHud,
.bottom-menu,
.camera-tools,
.topbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.modal {
  background: rgba(3, 2, 6, 0.72) !important;
}
.modal-card {
  background: linear-gradient(155deg, #19131f, #0b0910 78%) !important;
}
.modal-card .modal-head {
  position: relative !important;
  padding-right: 58px !important;
}
.modal-card .modal-head > button {
  position: absolute !important;
  right: 12px !important;
  top: 11px !important;
  margin: 0 !important;
  width: 34px !important;
  height: 34px !important;
  z-index: 50 !important;
}
.modal-card .modal-head .ashen-screen-label {
  margin-left: auto !important;
  padding-right: 44px !important;
}
.tooltip {
  z-index: 2500 !important;
  pointer-events: none !important;
}

.bag-card {
  width: 520px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: none !important;
  height: auto !important;
  overflow: hidden !important;
}
.bag-card .modal-head {
  margin-bottom: 8px !important;
}
.bag-list {
  width: max-content !important;
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(6, 64px) !important;
  grid-template-rows: repeat(5, 64px) !important;
  gap: 7px !important;
  padding: 8px !important;
  margin: 0 auto !important;
  overflow: visible !important;
}
.bag-slot {
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
}

.skill-modal {
  width: min(820px, calc(100vw - 32px)) !important;
  max-height: 62vh !important;
  height: min(540px, 62vh) !important;
}
.skill-modal .journal-layout {
  height: calc(100% - 58px) !important;
  min-height: 0 !important;
}
.skill-modal #skillList,
.skill-modal #skillDetail {
  min-height: 0 !important;
  overflow: auto !important;
}

body.ashen-skill-dragging .modal {
  pointer-events: none !important;
  background: transparent !important;
}
body.ashen-skill-dragging .modal-card {
  pointer-events: none !important;
}
body.ashen-skill-dragging .map-overlay-combat {
  z-index: 2600 !important;
}
body.ashen-skill-dragging .skill[data-hotbar-slot] {
  pointer-events: auto !important;
}
.ashen-drag-ghost {
  z-index: 3000 !important;
  pointer-events: none !important;
}
.skill-entry[data-drag-kind="ability"].dragging {
  opacity: 0.35 !important;
}
.skill[data-hotbar-slot].drag-over {
  border-color: #e4c477 !important;
  box-shadow:
    0 0 0 2px #e4c47788,
    0 0 22px #e4c47744 !important;
}

.talent-tree-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #3a2d40;
  border-radius: 10px;
  background: linear-gradient(145deg, #130f18, #09070d);
}
.talent-tree-head,
.specialization-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.talent-tree-head h3,
.specialization-head h3 {
  margin: 2px 0 2px;
  font-family: Georgia, serif;
  color: #ead8b4;
}
.talent-tree {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.talent-tier {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  min-height: 106px;
  padding: 10px 0 4px;
  border-top: 1px solid #2b2330;
}
.talent-tier:first-child {
  border-top: 0;
}
.talent-tier-label {
  position: absolute;
  left: 0;
  top: -7px;
  padding: 0 6px;
  background: #0f0b13;
  color: #a78d61;
  font-size: 8px;
  letter-spacing: 0.16em;
}
.talent-branch {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 8px;
}
.talent-branch.path-a {
  grid-column: 1;
}
.talent-branch.core {
  grid-column: 2;
}
.talent-branch.path-b {
  grid-column: 3;
}
.talent-branch.keystone {
  grid-column: 2;
  grid-row: 2;
  margin-top: -2px;
}
.talent-node-wrap {
  width: min(100%, 220px);
  display: grid;
  gap: 3px;
  position: relative;
}
.talent-connector-label {
  min-height: 15px;
  color: #817684;
  font-size: 8px;
  text-align: center;
  line-height: 1.2;
  white-space: normal;
}
.talent-node.available {
  border-color: #927342 !important;
}
.talent-node.learned {
  border-color: #d4ad61 !important;
  box-shadow: 0 0 0 1px #d4ad6144 inset !important;
}
.talent-node.keystone {
  border-color: #8b5a8d !important;
  background: linear-gradient(145deg, #211426, #0d0911) !important;
}
.talent-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #0a080e;
  border: 1px solid #4a3a4f;
  font-size: 17px;
}
.talent-node-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.talent-node-main b {
  font-size: 11px;
  color: #eadfcf;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.talent-node-main small {
  font-size: 8px;
  color: #918694;
}
.talent-node em {
  font-size: 7px;
  font-style: normal;
  color: #b7a788;
}
.specialization-panel {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #3a2d40;
  border-radius: 10px;
  background: linear-gradient(145deg, #17121e, #0c0910);
}
.build-points {
  padding: 5px 8px;
  border: 1px solid #5c4933;
  border-radius: 999px;
  color: #d9bd82;
  font-size: 9px;
  white-space: nowrap;
}
.build-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.build-choice {
  min-height: 78px !important;
  text-align: left !important;
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
  padding: 10px !important;
}
.build-choice b {
  font-family: Georgia, serif;
  color: #e8d7b5;
}
.build-choice span {
  font-size: 9px;
  color: #958b9a;
  line-height: 1.35;
}
.build-choice strong {
  font-size: 7px;
  letter-spacing: 0.15em;
  color: #d7b56d;
}
.build-choice.selected {
  border-color: #d1aa62 !important;
  box-shadow: 0 0 0 1px #d1aa6244 inset !important;
  background: linear-gradient(145deg, #2a2119, #15100d) !important;
}
.talent-tree-locked {
  text-align: center;
  padding: 28px 16px;
}

body.game-ready .world-card {
  min-height: 0 !important;
}
body.game-ready .viewport-wrap {
  min-height: 0 !important;
}
body.game-ready .map-help {
  display: none !important;
}
body.game-ready .info-grid {
  display: none !important;
}

#socialList .party-summary,
#socialList .player-card {
  contain: layout paint;
}

@media (max-width: 900px) {
  .build-choice-grid {
    grid-template-columns: 1fr;
  }
  .talent-tier {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .talent-branch.path-a,
  .talent-branch.core,
  .talent-branch.path-b,
  .talent-branch.keystone {
    grid-column: 1;
    grid-row: auto;
  }
  .talent-node-wrap {
    width: 100%;
  }
  .skill-modal {
    height: min(72vh, 620px) !important;
    max-height: 72vh !important;
  }
}

#create .class-choice img {
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: none !important;
  image-rendering: auto !important;
}
#create .class-choice:hover img {
  transform: scale(1.04) !important;
  filter: none !important;
}
#create .class-preview-image {
  background-size: contain !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  filter: none !important;
}
.character-avatar,
.map-avatar,
.target-avatar {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
.map-character-hud .map-avatar {
  background-color: transparent !important;
  box-shadow: none !important;
}
.dungeon-boss-art {
  height: 168px !important;
  width: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  mask-image: none !important;
  opacity: 1 !important;
  filter: none !important;
}
.dungeon-card:hover .dungeon-boss-art {
  transform: none !important;
  filter: none !important;
  opacity: 1 !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body {
  min-height: 100vh;
  box-sizing: border-box;
}
.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  height: 42px !important;
  min-height: 42px !important;
  z-index: 100 !important;
  background: rgba(8, 7, 11, 0.82) !important;
  border-bottom: 1px solid rgba(94, 76, 56, 0.45) !important;
  box-shadow: none !important;
}
body.game-ready main {
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
body.game-ready .game-layout {
  width: 100vw !important;
  height: 100vh !important;
  max-height: none !important;
  margin: 0 !important;
  overflow: hidden !important;
}
body.game-ready .main-column {
  width: 100% !important;
  height: 100% !important;
}
body.game-ready .world-card {
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.game-ready .viewport-wrap {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
#worldCanvas {
  width: 100% !important;
  height: 100% !important;
}

.modal {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
  inset: 0 !important;
  overflow: visible !important;
}
.modal-card {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.modal-card {
  left: 50% !important;
  top: 50% !important;
  transform: translate3d(-50%, -50%, 0) !important;
}
.modal-card.dragging,
.modal-card.is-drag-positioned {
  transform: none !important;
}
.modal-card .modal-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 48px !important;
}
.modal-card .modal-head > button {
  display: grid !important;
  place-items: center !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  line-height: 1 !important;
  font-size: 20px !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
}

.viewport-wrap canvas#minimap {
  width: 148px !important;
  height: 148px !important;
  right: 12px !important;
  top: 52px !important;
  border-width: 1px !important;
  box-shadow: 0 6px 18px #0008 !important;
}
.minimap-tools {
  right: 22px !important;
  top: 204px !important;
  transform: scale(0.86);
  transform-origin: top right;
}
.quest-helper {
  width: 225px !important;
  right: 12px !important;
  top: 214px !important;
  padding: 8px 10px !important;
  font-size: 11px !important;
}
.quest-helper:before {
  font-size: 8px !important;
}
.map-character-hud {
  width: 220px !important;
  left: 12px !important;
  top: 52px !important;
  padding: 7px 9px !important;
}
.map-overlay-combat {
  width: min(480px, 44vw) !important;
  bottom: 46px !important;
}
.map-overlay-combat .combat {
  padding: 4px 6px !important;
  border-radius: 9px !important;
}
.hotbar-row .skillbar {
  grid-template-columns: repeat(9, 38px) !important;
  gap: 3px !important;
}
.skill {
  width: 38px !important;
  height: 38px !important;
  border-radius: 7px !important;
}
.skill .icon {
  font-size: 21px !important;
}
.skill .key {
  font-size: 8px !important;
  left: 3px !important;
  top: 1px !important;
}
.skill .num {
  font-size: 13px !important;
}
.xp-track {
  margin-top: 3px !important;
}
.gcd-line {
  font-size: 9px !important;
}
.bottom-menu {
  right: 8px !important;
  bottom: 8px !important;
  padding: 3px !important;
  gap: 2px !important;
  max-width: calc(100vw - 16px) !important;
  border-radius: 8px !important;
  box-shadow: 0 6px 18px #0008 !important;
}
.bottom-menu button {
  min-width: 44px !important;
  height: 38px !important;
  padding: 3px 5px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
}
.bottom-menu button span {
  font-size: 7px !important;
}
.map-chat {
  left: 10px !important;
  bottom: 8px !important;
  width: 220px !important;
}
.map-chat-log {
  height: 58px !important;
}

.story-codex-quest {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  padding: 9px 10px !important;
  margin: 6px 0 !important;
  border: 1px solid #342a3a !important;
  border-radius: 8px !important;
  background: #100d15 !important;
}
.story-quest-name {
  font-size: 13px !important;
  line-height: 1.25 !important;
}
.story-quest-status {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
}
.story-quest-status.active {
  color: #d9b56c;
}
.story-quest-status.ready {
  color: #8fe0a9;
}
.story-quest-status.completed {
  color: #8aa7d8;
}
.story-quest-status.locked {
  color: #817782;
}

.viewport-wrap,
.map-overlay-combat,
.quest-helper,
.map-character-hud,
.bottom-menu,
.topbar {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
button,
.skill,
.item,
.journal-entry,
.skill-entry,
.zone,
.player-card {
  will-change: auto !important;
}
@media (max-width: 900px) {
  .map-overlay-combat {
    width: calc(100% - 16px) !important;
    bottom: 54px !important;
  }
  .hotbar-row .skillbar {
    grid-template-columns: repeat(9, 34px) !important;
  }
  .skill {
    width: 34px !important;
    height: 34px !important;
  }
  .viewport-wrap canvas#minimap {
    width: 128px !important;
    height: 128px !important;
  }
  .minimap-tools {
    top: 184px !important;
  }
  .quest-helper {
    width: 205px !important;
  }
}

.guild-create-row {
  display: flex;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
}
.guild-create-row input {
  flex: 1;
  min-width: 0;
}
.guild-create-panel {
  padding-bottom: 12px;
}
.danger {
  border-color: #7a3f45 !important;
  color: #f0b0b4 !important;
}
.danger:hover {
  border-color: #b95862 !important;
  background: #30161b !important;
}
#inspectModal .modal-card {
  width: min(520px, calc(100vw - 28px)) !important;
  max-height: 80vh !important;
}
#inspectBody .tags {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 7px;
}

:root {
  --ui-top: 42px;
  --ui-gold: #d7b36a;
  --ui-panel: rgba(14, 11, 18, 0.96);
  --ui-panel-2: rgba(22, 17, 27, 0.98);
  --ui-line: rgba(132, 105, 69, 0.48);
  --ui-muted: #968c9b;
}
html,
body {
  width: 100%;
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  overscroll-behavior: none !important;
}
body.game-ready {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  min-height: 100vh !important;
  overflow: hidden !important;
  background: #020205 !important;
}
body.game-ready .topbar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: 0 !important;
  width: 100vw !important;
  height: var(--ui-top) !important;
  min-height: var(--ui-top) !important;
  padding: 0 14px !important;
  z-index: 500 !important;
  display: flex !important;
  box-sizing: border-box !important;
  background: rgba(8, 7, 11, 0.92) !important;
  border-bottom: 1px solid rgba(132, 105, 69, 0.42) !important;
  backdrop-filter: none !important;
}
body.game-ready main {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  top: var(--ui-top) !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: calc(100vh - var(--ui-top)) !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}
body.game-ready .game-layout {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
body.game-ready .main-column {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.game-ready .world-card {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
  background: #020205 !important;
}
body.game-ready .viewport-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #020205 !important;
}
body.game-ready #worldCanvas {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: fill !important;
  background: #020205 !important;
}
body.game-ready .viewport-wrap:before,
body.game-ready .viewport-wrap:after {
  display: none !important;
}
body.game-ready .map-help {
  display: none !important;
}
body.game-ready .hero,
body.game-ready .info-grid,
body.game-ready .sidebar {
  display: none !important;
}
body.game-ready .zone-head {
  min-width: 0 !important;
}
body.game-ready .top-actions {
  gap: 5px !important;
  max-width: none !important;
}
body.game-ready .top-actions .hud-status {
  font-size: 9px !important;
  padding: 4px 7px !important;
}
body.game-ready .top-actions .hud-status:nth-child(2),
body.game-ready .top-actions .hud-status:nth-child(3) {
  display: none !important;
}

body.game-ready .map-character-hud {
  left: 12px !important;
  top: 12px !important;
  width: 218px !important;
  min-height: 70px !important;
  padding: 7px 9px !important;
  z-index: 80 !important;
  border-radius: 8px !important;
  background: rgba(10, 8, 13, 0.91) !important;
  border: 1px solid rgba(132, 105, 69, 0.52) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48) !important;
  backdrop-filter: none !important;
}
body.game-ready .map-character-hud .map-avatar {
  width: 48px !important;
  height: 48px !important;
  flex: 0 0 48px !important;
}
body.game-ready .map-hud-name {
  font-size: 12px !important;
}
.map-hud-role {
  font-size: 8px !important;
}
.map-hud-resource {
  font-size: 8px !important;
}
body.game-ready .target-hud {
  left: 242px !important;
  top: 12px !important;
  width: 232px !important;
  min-height: 70px !important;
  padding: 7px !important;
  z-index: 80 !important;
  background: rgba(10, 8, 13, 0.91) !important;
  border: 1px solid rgba(132, 105, 69, 0.46) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48) !important;
  backdrop-filter: none !important;
}
body.game-ready .target-avatar {
  width: 44px !important;
  height: 44px !important;
}
body.game-ready .quest-helper {
  right: 12px !important;
  top: 12px !important;
  width: 218px !important;
  max-width: 218px !important;
  padding: 8px 10px !important;
  z-index: 82 !important;
  background: rgba(10, 8, 13, 0.92) !important;
  border: 1px solid rgba(132, 105, 69, 0.48) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.48) !important;
  backdrop-filter: none !important;
  font-size: 10px !important;
}
body.game-ready .quest-helper:before {
  font-size: 7px !important;
  margin-bottom: 4px !important;
}
body.game-ready .viewport-wrap canvas#minimap {
  position: absolute !important;
  right: 12px !important;
  top: 244px !important;
  width: 132px !important;
  height: 132px !important;
  border: 1px solid rgba(132, 105, 69, 0.55) !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55) !important;
  z-index: 75 !important;
  background: #07090c !important;
}
body.game-ready .viewport-wrap .minimap-tools {
  right: 37px !important;
  top: 382px !important;
  z-index: 76 !important;
  transform: none !important;
  padding: 2px 3px !important;
  gap: 2px !important;
  background: rgba(9, 7, 12, 0.92) !important;
  backdrop-filter: none !important;
}
body.game-ready .viewport-wrap .minimap-tools button {
  width: 22px !important;
  height: 22px !important;
  padding: 0 !important;
  font-size: 12px !important;
}

body.game-ready .map-overlay-combat {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 52px !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  z-index: 90 !important;
  filter: none !important;
  pointer-events: none !important;
}
body.game-ready .map-overlay-combat .combat {
  width: auto !important;
  min-width: 0 !important;
  padding: 4px 6px !important;
  background: rgba(8, 7, 11, 0.84) !important;
  border: 1px solid rgba(132, 105, 69, 0.45) !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  backdrop-filter: none !important;
  pointer-events: auto !important;
}
body.game-ready .map-overlay-combat .target-strip,
body.game-ready .map-overlay-combat .cooldowns,
body.game-ready .map-overlay-combat .gcd-line {
  display: none !important;
}
body.game-ready .hotbar-row {
  margin: 0 !important;
  padding: 1px 0 !important;
  display: flex !important;
  justify-content: center !important;
}
body.game-ready .hotbar-row .skillbar {
  display: grid !important;
  grid-template-columns: repeat(9, 40px) !important;
  width: 364px !important;
  gap: 2px !important;
  padding: 0 !important;
}
body.game-ready .hotbar-row .skill {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  border-radius: 6px !important;
  background: rgba(20, 16, 25, 0.96) !important;
  border: 1px solid #3b3043 !important;
  box-shadow: none !important;
}
body.game-ready .hotbar-row .skill .icon {
  font-size: 20px !important;
}
.hotbar-row .skill .key {
  font-size: 7px !important;
}
.hotbar-row .skill .num {
  font-size: 12px !important;
}
body.game-ready .xp-track {
  width: 364px !important;
  margin: 2px auto 0 !important;
}
.xp-track-head {
  font-size: 7px !important;
}
.xp-bar {
  height: 4px !important;
}
.gcd-line {
  font-size: 8px !important;
}

body.game-ready .bottom-menu {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 8px !important;
  transform: translateX(-50%) !important;
  width: auto !important;
  max-width: calc(100vw - 24px) !important;
  height: 38px !important;
  padding: 3px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 2px !important;
  overflow: hidden !important;
  z-index: 95 !important;
  background: rgba(9, 7, 12, 0.91) !important;
  border: 1px solid rgba(132, 105, 69, 0.48) !important;
  border-radius: 9px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: none !important;
}
body.game-ready .bottom-menu button {
  position: relative !important;
  flex: 0 0 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  height: 30px !important;
  padding: 2px !important;
  border-radius: 6px !important;
  border: 1px solid #332938 !important;
  background: #15111b !important;
  font-size: 15px !important;
  line-height: 1 !important;
  transform: none !important;
}
body.game-ready .bottom-menu button span {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 7px) !important;
  transform: translateX(-50%) !important;
  display: none !important;
  padding: 4px 6px !important;
  border: 1px solid #493a4e !important;
  border-radius: 5px !important;
  background: #0e0b12 !important;
  color: #e8dbc5 !important;
  font-size: 8px !important;
  white-space: nowrap !important;
  box-shadow: 0 6px 16px #000b !important;
}
body.game-ready .bottom-menu button:hover span,
body.game-ready .bottom-menu button:focus-visible span {
  display: block !important;
}

body.game-ready .map-chat {
  position: absolute !important;
  left: 12px !important;
  bottom: 10px !important;
  width: 245px !important;
  height: auto !important;
  z-index: 78 !important;
  background: rgba(9, 7, 12, 0.84) !important;
  border: 1px solid rgba(132, 105, 69, 0.4) !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 20px #0008 !important;
  backdrop-filter: none !important;
}
body.game-ready .map-chat-head {
  height: 25px !important;
  padding: 4px 7px !important;
  font-size: 9px !important;
}
.map-chat-log {
  height: 58px !important;
  padding: 5px !important;
  font-size: 9px !important;
}
.map-chat-row {
  padding: 4px !important;
  gap: 4px !important;
}
.map-chat-row input {
  height: 25px !important;
  font-size: 10px !important;
  padding: 4px 6px !important;
}
.map-chat-row button {
  height: 25px !important;
  padding: 3px 7px !important;
  font-size: 9px !important;
}

body.game-ready .modal {
  position: fixed !important;
  inset: 0 !important;
  background: transparent !important;
  pointer-events: none !important;
  z-index: 1000 !important;
  overflow: visible !important;
  padding: 0 !important;
  backdrop-filter: none !important;
}
body.game-ready .modal-card {
  position: fixed !important;
  left: 50% !important;
  top: 50% !important;
  width: min(760px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
  max-height: min(82vh, 820px) !important;
  margin: 0 !important;
  transform: translate3d(-50%, -50%, 0) !important;
  padding: 0 !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  background: rgba(17, 13, 22, 0.975) !important;
  border: 1px solid rgba(132, 105, 69, 0.62) !important;
  border-radius: 10px !important;
  box-shadow:
    0 20px 70px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset !important;
  contain: layout paint !important;
  pointer-events: auto !important;
}
body.game-ready .modal-card.large {
  width: min(980px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
}
body.game-ready .modal-card.xlarge {
  width: min(1180px, calc(100vw - 40px)) !important;
  max-width: calc(100vw - 40px) !important;
}
body.game-ready .modal-card.dragging,
body.game-ready .modal-card.is-drag-positioned {
  transform: none !important;
}
body.game-ready .modal-card .modal-head h2 {
  font-family: Georgia, serif !important;
  font-size: 16px !important;
  letter-spacing: 0.01em !important;
}
body.game-ready .modal-card .modal-head > button {
  position: absolute !important;
  right: 10px !important;
  top: 8px !important;
  width: 30px !important;
  height: 30px !important;
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  font-size: 18px !important;
  line-height: 1 !important;
}
body.game-ready .modal-card > :not(.modal-head) {
  margin-left: 14px;
  margin-right: 14px;
}
body.game-ready .modal-card .journal-layout {
  grid-template-columns: 270px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding-bottom: 14px !important;
}
body.game-ready .modal-card .journal-list {
  min-width: 0 !important;
  max-height: 62vh !important;
  overflow: auto !important;
  padding-right: 2px !important;
}
body.game-ready .modal-card .detail-panel {
  min-width: 0 !important;
  min-height: 260px !important;
  background: #0f0c14 !important;
  border: 1px solid #302738 !important;
  border-radius: 8px !important;
}
body.game-ready .modal-card .quest-tabs {
  display: flex !important;
  gap: 4px !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #302738 !important;
  position: sticky !important;
  top: 48px !important;
  background: rgba(17, 13, 22, 0.985) !important;
  z-index: 25 !important;
}
body.game-ready .quest-tabs button {
  padding: 6px 10px !important;
  font-size: 10px !important;
}
.quest-tabs button.active {
  border-color: var(--ui-gold) !important;
  background: #30251a !important;
  color: #f0dcae !important;
}

.quest-journal-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 14px 0;
  padding: 10px 12px;
  border: 1px solid #352a3b;
  border-radius: 8px;
  background: linear-gradient(135deg, #17121d, #100d14);
}
.quest-journal-summary h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 14px;
}
.quest-journal-summary .summary-stats {
  display: flex;
  gap: 12px;
  color: #a99cae;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.quest-journal-summary .summary-stats b {
  color: #dfc17f;
  font-size: 12px;
  margin-right: 3px;
}
.quest-tabs + .journal-layout {
  margin-top: 0 !important;
}
.journal-entry {
  display: block !important;
  width: 100% !important;
  text-align: left !important;
  margin: 4px 0 !important;
  padding: 9px 10px !important;
  background: #141019 !important;
  border: 1px solid #2d2533 !important;
  border-radius: 7px !important;
}
.journal-entry:hover {
  border-color: #665036 !important;
}
.journal-entry.selected {
  border-color: #c19a58 !important;
  background: #211a19 !important;
  box-shadow: inset 3px 0 #d7b36a !important;
}
.quest-detail-head h2 {
  margin: 3px 0 4px !important;
  font-family: Georgia, serif !important;
}
.quest-status-line {
  display: inline-block !important;
  padding: 3px 7px !important;
  border: 1px solid #46364b !important;
  border-radius: 999px !important;
  font-size: 9px !important;
}
.quest-lore {
  margin-top: 10px !important;
  padding: 9px 10px !important;
  border: 1px solid #2d2533 !important;
  border-radius: 7px !important;
  background: #151019 !important;
}
.quest-lore > b {
  font-size: 9px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #c8b07d !important;
}
.quest-lore p {
  margin: 5px 0 0 !important;
  font-size: 11px !important;
  color: #c8becd !important;
}
.story-codex-quest {
  padding: 10px 11px !important;
  margin: 6px 0 !important;
}
.story-quest-name {
  font-size: 12px !important;
}
.story-quest-status {
  display: inline-flex !important;
  align-items: center !important;
  width: max-content !important;
  padding: 2px 7px !important;
  border-radius: 999px !important;
  border: 1px solid currentColor !important;
  font-size: 8px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}

body.game-ready .bag-card {
  width: min(560px, calc(100vw - 40px)) !important;
}
.bag-list {
  grid-template-columns: repeat(6, 64px) !important;
  gap: 6px !important;
}
.bag-slot {
  width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
}
.skill-modal .journal-layout {
  grid-template-columns: 300px minmax(0, 1fr) !important;
}
.skill-entry {
  padding: 8px !important;
}
.skill-detail-grid {
  grid-template-columns: 62px 1fr !important;
}
.skill-big {
  width: 60px !important;
  height: 60px !important;
  font-size: 30px !important;
}
.party-summary,
.guild-create-panel {
  padding: 10px !important;
  margin: 7px 0 !important;
  border: 1px solid #312738 !important;
  border-radius: 8px !important;
  background: #141019 !important;
}
.player-card {
  padding: 8px !important;
  margin: 5px 0 !important;
}
.actions-inline button {
  font-size: 9px !important;
  padding: 5px 7px !important;
}
.guild-create-row input {
  height: 32px !important;
}

.tooltip {
  max-width: 300px !important;
  padding: 9px 10px !important;
  border-radius: 7px !important;
  background: #0e0b12f7 !important;
  border: 1px solid #6a5235 !important;
  box-shadow: 0 12px 30px #000c !important;
  font-size: 10px !important;
  line-height: 1.45 !important;
  white-space: pre-line !important;
  pointer-events: none !important;
}

body.ashen-window-dragging,
body.modal-open {
  overflow: hidden !important;
}

@media (max-width: 900px) {
  body.game-ready .top-actions .hud-status {
    display: none !important;
  }
  body.game-ready .map-character-hud {
    width: 190px !important;
  }
  .map-character-hud .map-avatar {
    width: 42px !important;
    height: 42px !important;
    flex-basis: 42px !important;
  }
  body.game-ready .target-hud {
    left: 208px !important;
    width: 190px !important;
  }
  body.game-ready .quest-helper {
    width: 190px !important;
    max-width: 190px !important;
    top: 12px !important;
  }
  body.game-ready .viewport-wrap canvas#minimap {
    width: 118px !important;
    height: 118px !important;
    top: 196px !important;
  }
  .viewport-wrap .minimap-tools {
    top: 320px !important;
    right: 30px !important;
  }
  body.game-ready .map-overlay-combat {
    bottom: 48px !important;
  }
  .hotbar-row .skillbar {
    grid-template-columns: repeat(9, 34px) !important;
    width: 308px !important;
  }
  .hotbar-row .skill {
    width: 34px !important;
    min-width: 34px !important;
    height: 34px !important;
  }
  .hotbar-row .skill .icon {
    font-size: 17px !important;
  }
  .xp-track {
    width: 308px !important;
  }
  body.game-ready .bottom-menu {
    max-width: calc(100vw - 16px) !important;
  }
  .bottom-menu button {
    flex-basis: 34px !important;
    width: 34px !important;
    min-width: 34px !important;
    height: 28px !important;
    font-size: 13px !important;
  }
  body.game-ready .map-chat {
    width: 210px !important;
  }
}
@media (max-width: 650px) {
  body.game-ready .map-character-hud {
    left: 7px !important;
    top: 7px !important;
    width: 164px !important;
  }
  .map-hud-resource {
    display: none !important;
  }
  body.game-ready .target-hud {
    left: 178px !important;
    top: 7px !important;
    width: 164px !important;
  }
  .target-hud-role {
    display: none !important;
  }
  body.game-ready .quest-helper {
    right: 7px !important;
    top: 7px !important;
    width: 165px !important;
    max-width: 165px !important;
  }
  body.game-ready .viewport-wrap canvas#minimap {
    right: 7px !important;
    top: 164px !important;
    width: 100px !important;
    height: 100px !important;
  }
  .viewport-wrap .minimap-tools {
    right: 20px !important;
    top: 269px !important;
  }
  body.game-ready .map-chat {
    left: 7px !important;
    bottom: 7px !important;
    width: 190px !important;
  }
  .map-chat-log {
    height: 46px !important;
  }
  body.game-ready .map-overlay-combat {
    bottom: 43px !important;
  }
  .hotbar-row .skillbar {
    grid-template-columns: repeat(9, 29px) !important;
    width: 263px !important;
  }
  .hotbar-row .skill {
    width: 29px !important;
    min-width: 29px !important;
    height: 29px !important;
  }
  .hotbar-row .skill .icon {
    font-size: 14px !important;
  }
  .hotbar-row .skill .key {
    font-size: 6px !important;
  }
  .xp-track {
    width: 263px !important;
  }
  body.game-ready .bottom-menu {
    left: auto !important;
    right: 7px !important;
    transform: none !important;
    max-width: calc(100vw - 14px) !important;
  }
  .bottom-menu button {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    font-size: 12px !important;
  }
  body.game-ready .modal-card,
  .modal-card.large,
  .modal-card.xlarge {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
  }
  body.game-ready .modal-card .journal-layout {
    grid-template-columns: 1fr !important;
  }
  .journal-list {
    max-height: 30vh !important;
  }
  .detail-panel {
    min-height: 220px !important;
  }
}

body.game-ready .viewport-wrap {
  position: relative !important;
  overflow: hidden !important;
}

body.game-ready .viewport-wrap canvas#minimap {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  left: auto !important;
  width: 148px !important;
  height: 148px !important;
  z-index: 28 !important;
  border-radius: 50% !important;
}
body.game-ready .viewport-wrap .minimap-tools {
  position: absolute !important;
  top: 166px !important;
  right: 28px !important;
  left: auto !important;
  z-index: 29 !important;
}
body.game-ready .quest-helper {
  position: absolute !important;
  top: 198px !important;
  right: 14px !important;
  left: auto !important;
  width: 250px !important;
  max-width: 250px !important;
  z-index: 27 !important;
}

body.game-ready .map-overlay-combat {
  position: absolute !important;
  left: 50% !important;
  right: auto !important;
  bottom: 10px !important;
  transform: translateX(-50%) !important;
  width: 500px !important;
  min-width: 0 !important;
  max-width: calc(100vw - 560px) !important;
  z-index: 50 !important;
}
body.game-ready .hotbar-row {
  margin: 0 !important;
  padding: 0 !important;
  height: 46px !important;
  min-height: 46px !important;
  line-height: 0 !important;
}
body.game-ready .hotbar-row + .hotbar-row {
  margin-top: 2px !important;
}
body.game-ready .hotbar-row .skillbar {
  width: 468px !important;
  height: 46px !important;
  grid-template-columns: repeat(9, 48px) !important;
  gap: 4px !important;
}
body.game-ready .hotbar-row .skill {
  width: 48px !important;
  height: 46px !important;
  min-height: 46px !important;
}
body.game-ready .xp-track {
  margin-top: 3px !important;
}
body.game-ready .gcd-line {
  margin-top: 2px !important;
}

body.game-ready .bottom-menu {
  position: absolute !important;
  right: 14px !important;
  left: auto !important;
  bottom: 12px !important;
  top: auto !important;
  transform: none !important;
  width: 250px !important;
  max-width: 250px !important;
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
  grid-template-rows: repeat(3, 34px) !important;
  gap: 3px !important;
  padding: 4px !important;
  z-index: 52 !important;
  overflow: hidden !important;
  background: rgba(10, 8, 13, 0.78) !important;
  border: 1px solid rgba(104, 82, 57, 0.58) !important;
  border-radius: 9px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45) !important;
  backdrop-filter: none !important;
}
body.game-ready .bottom-menu button {
  width: auto !important;
  min-width: 0 !important;
  height: 32px !important;
  padding: 2px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  line-height: 1 !important;
  color: #d9d0d6 !important;
}
body.game-ready .bottom-menu button span {
  display: none !important;
}
body.game-ready .bottom-menu button:hover {
  border-color: rgba(184, 145, 79, 0.55) !important;
  background: rgba(184, 145, 79, 0.1) !important;
  color: #f2dfb3 !important;
}
body.game-ready .bottom-menu button:focus-visible {
  outline: 1px solid rgba(214, 173, 91, 0.75) !important;
  outline-offset: -2px !important;
}

body.game-ready .bottom-menu button.active,
body.game-ready .bottom-menu button.selected,
body.game-ready .bottom-menu button[aria-current="true"] {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

@media (max-width: 1250px) {
  body.game-ready .map-overlay-combat {
    max-width: calc(100vw - 430px) !important;
    width: 480px !important;
  }
  body.game-ready .bottom-menu {
    width: 230px !important;
    max-width: 230px !important;
  }
}
@media (max-width: 950px) {
  body.game-ready .viewport-wrap canvas#minimap {
    width: 132px !important;
    height: 132px !important;
    top: 10px !important;
    right: 10px !important;
  }
  body.game-ready .viewport-wrap .minimap-tools {
    top: 150px !important;
    right: 23px !important;
  }
  body.game-ready .quest-helper {
    top: 180px !important;
    right: 10px !important;
    width: 225px !important;
    max-width: 225px !important;
  }
  body.game-ready .map-overlay-combat {
    bottom: 10px !important;
    width: 420px !important;
    max-width: calc(100vw - 280px) !important;
  }
  body.game-ready .hotbar-row,
  body.game-ready .hotbar-row {
    height: 40px !important;
    min-height: 40px !important;
  }
  body.game-ready .hotbar-row .skillbar {
    width: 384px !important;
    height: 40px !important;
    grid-template-columns: repeat(9, 40px) !important;
    gap: 3px !important;
  }
  body.game-ready .hotbar-row .skill {
    width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
  }
  body.game-ready .bottom-menu {
    width: 210px !important;
    max-width: 210px !important;
    grid-template-columns: repeat(5, 1fr) !important;
    grid-template-rows: repeat(3, 31px) !important;
  }
  body.game-ready .bottom-menu button {
    height: 29px !important;
  }
}
@media (max-width: 700px) {
  body.game-ready .viewport-wrap canvas#minimap {
    width: 108px !important;
    height: 108px !important;
    top: 8px !important;
    right: 8px !important;
  }
  body.game-ready .viewport-wrap .minimap-tools {
    top: 124px !important;
    right: 18px !important;
  }
  body.game-ready .quest-helper {
    top: 150px !important;
    right: 8px !important;
    width: 190px !important;
    max-width: 190px !important;
  }
  body.game-ready .map-overlay-combat {
    left: 50% !important;
    bottom: 8px !important;
    width: 300px !important;
    max-width: calc(100vw - 220px) !important;
  }
  body.game-ready .hotbar-row,
  body.game-ready .hotbar-row {
    height: 32px !important;
    min-height: 32px !important;
  }
  body.game-ready .hotbar-row .skillbar {
    width: 270px !important;
    height: 32px !important;
    grid-template-columns: repeat(9, 28px) !important;
    gap: 2px !important;
  }
  body.game-ready .hotbar-row .skill {
    width: 28px !important;
    height: 32px !important;
    min-height: 32px !important;
  }
  body.game-ready .hotbar-row .skill .icon {
    font-size: 14px !important;
  }
  body.game-ready .bottom-menu {
    right: 7px !important;
    bottom: 7px !important;
    width: 180px !important;
    max-width: 180px !important;
    grid-template-rows: repeat(3, 28px) !important;
  }
  body.game-ready .bottom-menu button {
    height: 26px !important;
    font-size: 12px !important;
  }
}

.social-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 0 12px;
  padding: 4px;
  background: #0e0b12;
  border: 1px solid #2d2534;
  border-radius: 9px;
}
.social-tabs button {
  flex: 1 1 110px;
  border: 1px solid transparent;
  background: transparent;
  color: #aa9d8a;
  padding: 8px 10px;
  border-radius: 7px;
  font-weight: 700;
  font-size: 11px;
}
.social-tabs button:hover {
  background: #19131f;
  color: #ead7ad;
}
.social-tabs button.active {
  background: linear-gradient(180deg, #332818, #201911);
  border-color: #8d6b3d;
  color: #f0d69b;
}
.social-search {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}
.social-search input {
  flex: 1;
  min-width: 0;
}
.social-search-results {
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #302638;
  border-radius: 9px;
  background: #0f0c13;
}
.social-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 7px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2b2431;
}
.social-section-head h3 {
  margin: 0;
  font-size: 13px;
  color: #e8d7b5;
}
.social-section-title {
  font-size: 10px;
  color: #a98f63;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 2px 4px 8px;
  font-weight: 800;
}
.social-friend-row,
.social-result,
.social-request {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  margin: 5px 0;
  border: 1px solid #2e2635;
  border-radius: 9px;
  background: linear-gradient(145deg, #17121d, #0f0c13);
  min-width: 0;
}
.social-friend-row:hover,
.social-result:hover,
.social-request:hover {
  border-color: #5b4634;
  background: #1a1420;
}
.social-friend-row.offline {
  opacity: 0.7;
}
.social-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #110e15;
  border: 1px solid #3b3041;
  font-size: 18px;
}
.guild-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
  font-size: 25px;
  border-color: #8d6b3d;
}
.presence {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #5b4e5e;
  box-shadow: 0 0 0 2px #0f0c13;
}
.presence.online {
  background: #65c98a;
  box-shadow: 0 0 7px #65c98a66;
}
.presence.offline {
  background: #6f6570;
}
.social-empty {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  padding: 12px;
  color: #918577;
  text-align: center;
  border: 1px dashed #332a39;
  border-radius: 9px;
  background: #0f0c13;
}
.social-empty b {
  color: #cbbda8;
}
.guild-hero {
  display: flex;
  gap: 12px;
  padding: 13px;
  border: 1px solid #493a2b;
  border-radius: 10px;
  background: linear-gradient(145deg, #1b151d, #0f0c13);
  margin-bottom: 9px;
}
.guild-hero h3 {
  margin: 0 0 3px;
  color: #edd9ad;
}
.guild-motd {
  margin: 8px 0 2px;
  padding: 7px 9px;
  border-left: 2px solid #9a7742;
  background: #151018;
  color: #ddc9a3;
  font-size: 11px;
}
.guild-create-form {
  display: flex;
  gap: 7px;
  padding: 11px;
  border: 1px solid #332a3a;
  border-radius: 9px;
  background: #111018;
}
.guild-create-form input {
  flex: 1;
  min-width: 0;
}
.guild-edit-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
  margin: 10px 0;
}
.guild-edit-grid label {
  display: grid;
  gap: 4px;
  color: #a99a86;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.guild-edit-grid input {
  font-size: 12px;
  text-transform: none;
  letter-spacing: normal;
}
.guild-chat {
  margin-top: 12px;
  padding-top: 2px;
}
.guild-chat-log {
  height: 170px;
  overflow: auto;
  padding: 8px;
  border: 1px solid #2e2635;
  border-radius: 9px;
  background: #0b0910;
}
.guild-chat-row {
  display: grid;
  grid-template-columns: max-content 1fr max-content;
  gap: 8px;
  padding: 5px 2px;
  border-bottom: 1px solid #1e1923;
  font-size: 11px;
}
.guild-chat-row b {
  color: #d8bd86;
}
.guild-chat-row span {
  color: #ddd2c1;
  overflow-wrap: anywhere;
}
.guild-chat-row time {
  color: #756b77;
  font-size: 9px;
}
.social-chat-input {
  display: flex;
  gap: 7px;
  margin-top: 7px;
}
.social-chat-input input {
  flex: 1;
  min-width: 0;
}
.social-danger-row {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #302632;
}
.whisper-row {
  padding: 8px 10px;
  border: 1px solid #2c2433;
  border-radius: 8px;
  margin: 5px 0;
  background: #100d15;
}
.whisper-row.out {
  border-left: 2px solid #8f7143;
}
.whisper-row.in {
  border-left: 2px solid #54728a;
}
.whisper-row > div:last-child {
  margin-top: 3px;
  color: #ded2c1;
  overflow-wrap: anywhere;
}
.whisper-composer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #2d2532;
}
@media (max-width: 700px) {
  .social-friend-row,
  .social-result,
  .social-request {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .social-friend-row .actions-inline,
  .social-result .actions-inline,
  .social-request .actions-inline {
    width: 100%;
    padding-left: 48px;
  }
  .guild-edit-grid {
    grid-template-columns: 1fr;
  }
  .guild-edit-grid button {
    justify-self: start;
  }
  .guild-chat-row {
    grid-template-columns: 1fr;
  }
  .guild-chat-row time {
    display: none;
  }
}
.party-empty-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid #493a2b;
  border-radius: 10px;
  background: linear-gradient(145deg, #1b151d, #0f0c13);
  margin-bottom: 10px;
}
.party-empty-hero h3 {
  margin: 0 0 3px;
  color: #ead7b0;
}
.party-role-pill {
  padding: 5px 8px;
  border: 1px solid #493c4c;
  border-radius: 999px;
  color: #d5c4a5;
  background: #120f16;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.party-member-card {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 9px 10px;
  margin: 5px 0;
  border: 1px solid #2e2635;
  border-radius: 9px;
  background: linear-gradient(145deg, #17121d, #0f0c13);
}
.party-member-card.offline {
  opacity: 0.62;
}
.party-mini-bars {
  height: 4px;
  background: #241d28;
  border-radius: 999px;
  overflow: hidden;
  margin: 5px 0 2px;
}
.party-mini-bars i {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.party-mini-bars i.hp {
  background: #a84d5d;
}
.party-mini-bars i.res {
  background: #b58d46;
}
.party-footer {
  justify-content: flex-end;
  padding-top: 10px;
  margin-top: 10px;
  border-top: 1px solid #2b2431;
}

.progression-panel {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid #3b3040;
  border-radius: 12px;
  background: linear-gradient(145deg, #17121d, #0b090e);
  box-shadow: inset 0 1px #fff1;
}
.progression-overview {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 1.8fr) minmax(
      180px,
      1fr
    );
  gap: 14px;
  align-items: center;
}
.progression-level {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progression-level-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid #b28c51;
  background: radial-gradient(circle, #3b2b1a, #110c0a);
  font:
    700 22px Georgia,
    serif;
  color: #f0d6a0;
  box-shadow: 0 0 22px #d7b36a14;
}
.progression-level-copy b {
  display: block;
  font:
    700 20px Georgia,
    serif;
  color: #efdfbf;
}
.progression-level-copy span {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #a99888;
}
.progression-xp {
  display: grid;
  gap: 6px;
}
.progression-xp-head,
.progression-xp-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #c6b9ac;
}
.progression-xp-bar {
  height: 10px;
  border-radius: 999px;
  background: #07060a;
  border: 1px solid #352b3b;
  overflow: hidden;
}
.progression-xp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7f6033, #d9b86f);
  box-shadow: 0 0 12px #d7b36a55;
}
.progression-next {
  padding: 10px;
  border-left: 1px solid #342b3b;
}
.progression-next b {
  display: block;
  color: #e8d5b1;
}
.progression-next .unlock-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}
.unlock-chip {
  padding: 4px 7px;
  border-radius: 999px;
  border: 1px solid #4a3a2b;
  background: #1b1410;
  color: #d9c29a;
  font-size: 9px;
}
.progression-milestones {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  overflow: auto;
  padding-bottom: 2px;
}
.milestone-dot {
  min-width: 62px;
  text-align: center;
  padding: 6px 4px;
  border: 1px solid #312936;
  border-radius: 8px;
  background: #0d0a11;
  color: #77717a;
}
.milestone-dot.reached {
  border-color: #6e5738;
  color: #e2c78f;
  background: #171108;
}
.milestone-dot.next {
  border-color: #9b7947;
  box-shadow: 0 0 14px #d7b36a14;
}
.milestone-dot b {
  display: block;
  font-size: 11px;
}
.milestone-dot span {
  font-size: 8px;
  text-transform: uppercase;
}
.journey-card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #3b3040;
  border-radius: 10px;
  background: #0e0b12;
}
.journey-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.journey-head > b,
.journey-head > div > b {
  color: #ead8b8;
}
.journey-head > div > span {
  display: block;
  margin-top: 3px;
  color: #91867d;
  font-size: 10px;
}
.journey-next-skill {
  min-width: 150px;
  text-align: right;
  border-left: 1px solid #342b3b;
  padding-left: 12px;
}
.journey-next-skill strong {
  display: block;
  color: #d9b86f;
  font-size: 12px;
}
.journey-next-skill small {
  display: block;
  color: #b9aaa0;
  margin-top: 2px;
}
.journey-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}
.journey-row label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 8px;
  color: #766b63;
  margin-bottom: 5px;
}
.journey-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.journey-chip {
  padding: 5px 7px;
  border-radius: 7px;
  border: 1px solid #4a3a2b;
  background: #171108;
  color: #d9c29a;
  font-size: 9px;
}
.journey-chip small {
  color: #95887d;
  margin-left: 3px;
}
.journey-chip.dungeon {
  border-color: #3d3548;
  background: #11101a;
}
@media (max-width: 900px) {
  .journey-row {
    grid-template-columns: 1fr;
  }
  .journey-head {
    flex-direction: column;
  }
  .journey-next-skill {
    text-align: left;
    border-left: 0;
    border-top: 1px solid #342b3b;
    padding: 8px 0 0;
    width: 100%;
  }
}
.loadout-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #342a3a;
}
.loadout-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.loadout-card {
  padding: 10px;
  border: 1px solid #342a3a;
  border-radius: 9px;
  background: linear-gradient(145deg, #151019, #0c0a0f);
}
.loadout-card.active {
  border-color: #a47e49;
  box-shadow: inset 0 0 0 1px #a47e4922;
}
.loadout-card h4 {
  margin: 0 0 3px;
  font:
    700 13px Georgia,
    serif;
  color: #ead8b4;
}
.loadout-card .loadout-meta {
  font-size: 9px;
  color: #8f858e;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.loadout-card .loadout-actions {
  display: flex;
  gap: 5px;
  margin-top: 8px;
}
.loadout-card button {
  flex: 1;
  font-size: 10px;
  padding: 6px;
}
.loadout-empty {
  padding: 12px;
  border: 1px dashed #3b3040;
  border-radius: 8px;
  color: #847a85;
  font-size: 11px;
}
.level-up-card {
  text-align: center;
  max-width: 480px;
  padding: 34px 28px 28px !important;
  overflow: hidden;
}
.level-up-glow {
  font-size: 42px;
  color: #e4c477;
  text-shadow: 0 0 30px #d7b36a88;
  margin-bottom: 4px;
}
.level-up-card h1 {
  font:
    700 34px Georgia,
    serif;
  color: #f0dfbe;
  margin: 6px 0;
}
.level-up-card #levelUpSummary {
  color: #bcb0a4;
}
.level-up-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0;
  text-align: left;
}
.level-up-rewards .reward {
  padding: 10px;
  border: 1px solid #3b3040;
  border-radius: 8px;
  background: #100c12;
}
.level-up-rewards b {
  display: block;
  color: #e5c98f;
}
.level-up-rewards span {
  font-size: 10px;
  color: #938995;
}
@media (max-width: 900px) {
  .progression-overview {
    grid-template-columns: 1fr;
  }
  .progression-next {
    border-left: 0;
    border-top: 1px solid #342b3b;
    padding-top: 10px;
  }
  .loadout-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .loadout-grid {
    grid-template-columns: 1fr;
  }
  .level-up-rewards {
    grid-template-columns: 1fr;
  }
}

.combat-presentation {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 72;
  overflow: hidden;
}
.combat-phase-banner {
  position: absolute;
  left: 50%;
  top: 13%;
  transform: translateX(-50%) translateY(-8px);
  padding: 8px 18px;
  border: 1px solid rgba(214, 177, 91, 0.72);
  border-radius: 999px;
  background: rgba(10, 8, 12, 0.92);
  color: #f3dfb1;
  font:
    800 12px/1 system-ui,
    sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    0 8px 30px #0009,
    0 0 22px rgba(212, 168, 73, 0.12);
  opacity: 0;
  transition:
    opacity 0.18s,
    transform 0.18s;
}
.combat-phase-banner:not(.hidden) {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.combat-phase-banner.pulse {
  animation: combatPhasePulse 0.65s ease-out;
}
@keyframes combatPhasePulse {
  0% {
    box-shadow: 0 0 0 rgba(219, 177, 83, 0);
    filter: brightness(1);
  }
  35% {
    box-shadow: 0 0 36px rgba(219, 177, 83, 0.42);
    filter: brightness(1.18);
  }
  100% {
    box-shadow: 0 8px 30px #0009;
    filter: brightness(1);
  }
}
.combat-feedback {
  position: absolute;
  left: 50%;
  bottom: 18%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 260px;
  max-width: 420px;
}
.combat-feedback-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(117, 95, 68, 0.52);
  border-radius: 999px;
  background: rgba(10, 8, 12, 0.78);
  color: #e9dece;
  font:
    700 11px/1.1 system-ui,
    sans-serif;
  box-shadow: 0 5px 16px #0008;
  animation:
    combatFeedbackIn 0.18s ease-out,
    combatFeedbackOut 0.55s ease-in 850ms forwards;
}
.combat-feedback-item.good {
  border-color: rgba(83, 159, 119, 0.58);
  color: #bdebd1;
}
.combat-feedback-item.bad {
  border-color: rgba(172, 67, 79, 0.58);
  color: #ffd0d4;
}
.combat-feedback-item.crit {
  border-color: rgba(220, 176, 65, 0.7);
  color: #ffe6a0;
}
.combat-feedback-item.info {
  border-color: rgba(91, 143, 182, 0.62);
  color: #c9e8ff;
}
.combat-feedback-icon {
  font-size: 14px;
}
@keyframes combatFeedbackIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes combatFeedbackOut {
  to {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
}
.combat-vignette {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.25s;
  background: radial-gradient(
    circle at center,
    transparent 45%,
    rgba(142, 24, 37, 0.08) 70%,
    rgba(100, 8, 18, 0.38) 100%
  );
}
.combat-vignette.danger {
  opacity: 1;
  animation: lowHpPulse 1.2s ease-in-out infinite;
}
@keyframes lowHpPulse {
  50% {
    opacity: 0.72;
  }
}
.combat-cast-bar {
  width: 310px;
  margin: 5px auto 4px;
  padding: 6px 8px;
  border: 1px solid rgba(139, 87, 65, 0.65);
  border-radius: 7px;
  background: rgba(9, 7, 11, 0.9);
  box-shadow: 0 5px 18px #0008;
}
.combat-cast-bar.hidden {
  display: none;
}
.combat-cast-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #f1dec0;
  font:
    700 10px/1.2 system-ui,
    sans-serif;
}
.combat-cast-track {
  height: 6px;
  margin-top: 5px;
  border-radius: 99px;
  background: #24151a;
  overflow: hidden;
  border: 1px solid #4b3035;
}
.combat-cast-track i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #b53b4b, #e6b85e);
  transition: width 0.08s linear;
}
.combat-cast-hint {
  margin-top: 3px;
  color: #a99b8d;
  font:
    9px/1.1 system-ui,
    sans-serif;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
body.game-ready .combat-cast-bar {
  width: 290px;
  background: rgba(9, 7, 11, 0.88);
  backdrop-filter: none;
}
@media (max-width: 700px) {
  .combat-phase-banner {
    top: 10%;
    font-size: 10px;
  }
  .combat-feedback {
    bottom: 23%;
    min-width: 220px;
  }
  .combat-cast-bar {
    width: 240px;
  }
}

.region-hud {
  position: absolute;
  left: 16px;
  top: 16px;
  width: 236px;
  padding: 10px 11px;
  border: 1px solid #493b48;
  border-radius: 10px;
  background: linear-gradient(145deg, #100d14e8, #08070be8);
  box-shadow:
    0 12px 30px #0008,
    inset 0 1px #fff1;
  pointer-events: none;
  z-index: 7;
}
.region-hud.hidden {
  display: none;
}
.region-hud-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.region-hud-top > span:first-child {
  font-size: 22px;
}
.region-hud-top > div {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.region-hud-top b {
  font:
    600 14px Georgia,
    serif;
  color: #ead8b5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-hud-top div span {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8e7c69;
}
.region-danger {
  font-size: 8px !important;
  color: #c98a78 !important;
  letter-spacing: 0.08em;
}
.region-hud-condition {
  margin-top: 6px;
  font-size: 9px;
  color: #a99b8d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-progress {
  height: 3px;
  background: #241c26;
  border-radius: 99px;
  overflow: hidden;
  margin-top: 7px;
}
.region-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #8d6b3c, #d6b46b);
}
.region-hud-discovery {
  margin-top: 4px;
  font-size: 8px;
  color: #786c61;
  text-align: right;
}
.region-hud-activity {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #2a222c;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.region-hud-activity b {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #b89a68;
}
.region-hud-activity span {
  font-size: 9px;
  color: #d8c8b4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.region-hud-activity small {
  font-size: 8px;
  color: #7f746b;
}

.dungeon-finder-v2 {
  align-items: stretch !important;
  padding: 16px !important;
}
.df-main {
  flex: 1;
  min-width: 0;
}
.df-main h3 {
  margin: 2px 0 4px;
}
.df-controls {
  display: flex;
  gap: 18px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 10px;
}
.df-controls label {
  display: grid;
  gap: 5px;
  font-size: 11px;
  color: #b9a98f;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.df-controls select {
  min-width: 210px;
  background: #0d0b10;
  color: #eadfca;
  border: 1px solid #4c3d30;
  border-radius: 7px;
  padding: 8px;
}
.role-picks {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.role-pick {
  padding: 7px 9px !important;
  font-size: 11px !important;
}
.role-pick.active {
  border-color: #b58b4e !important;
  background: #2b2117 !important;
  color: #f0d7a2 !important;
}
.role-coverage {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  font-size: 10px;
  color: #9d958b;
}
.dungeon-active-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid #5b4630;
  border-radius: 10px;
  background: linear-gradient(145deg, #1c151b, #0d0a10);
}
.dungeon-active-hero h3 {
  margin: 2px 0;
}
.dungeon-run-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.7fr);
  gap: 10px;
  margin-bottom: 12px;
}
.dungeon-run-sidebar {
  display: grid;
  gap: 8px;
  align-content: start;
}
.dungeon-summary-box {
  padding: 10px 12px;
  border: 1px solid #332b37;
  border-radius: 8px;
  background: #100c13;
}
.dungeon-summary-box > b {
  display: block;
  margin-bottom: 7px;
  color: #e6d4ae;
}
.dungeon-party-line {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  padding: 5px 0;
  border-bottom: 1px solid #26202a;
}
.dungeon-party-line:last-child {
  border-bottom: 0;
}
.dungeon-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 7px 0;
}
.dungeon-choice-grid button {
  display: grid;
  text-align: left;
  gap: 3px;
}
.dungeon-choice-grid small,
.dungeon-room-card button small {
  display: block;
  color: #9f968c;
}
.dungeon-event-callout {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  margin: 8px 0;
  border-left: 3px solid #c05a5d;
  background: #241317;
  border-radius: 5px;
}
.dungeon-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0;
  font-size: 10px;
  color: #a9a09a;
}
.dungeon-meta span {
  padding: 4px 6px;
  border: 1px solid #302936;
  border-radius: 5px;
  background: #100d13;
}
.dungeon-mechanics {
  font-size: 10px;
  line-height: 1.45;
}
.dungeon-card.locked {
  opacity: 0.65;
}
.dungeon-lock {
  margin-top: 8px;
  padding: 7px;
  border-radius: 5px;
  background: #151116;
  color: #aa9b8b;
  font-size: 11px;
}
.dungeon-active-label {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: #3a2b17;
  color: #e7c87f;
  font-size: 9px;
  letter-spacing: 0.12em;
}
.dungeon-match-popup {
  width: min(520px, calc(100vw - 28px)) !important;
}
.dungeon-ready-head {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 0 14px;
}
.dungeon-ready-icon {
  font-size: 38px;
}
.dungeon-ready-head h3 {
  margin: 0 0 3px;
}
.ready-group {
  display: grid;
  gap: 5px;
}
.ready-player {
  display: grid;
  grid-template-columns: 1fr 70px 70px;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  background: #110e14;
  border: 1px solid #2e2732;
  border-radius: 6px;
  font-size: 11px;
}
.ready-player b {
  color: #cdb27f;
}
.ready-state {
  font-size: 9px;
  text-align: right;
  color: #8f8882;
  letter-spacing: 0.08em;
}
.ready-state.ready {
  color: #73d48b;
}
.ready-actions {
  justify-content: flex-end;
  margin-top: 12px;
}
@media (max-width: 760px) {
  .dungeon-run-grid {
    grid-template-columns: 1fr;
  }
  .dungeon-choice-grid {
    grid-template-columns: 1fr;
  }
  .df-controls {
    align-items: stretch;
  }
  .df-controls select {
    width: 100%;
    min-width: 0;
  }
  .dungeon-active-hero {
    align-items: flex-start;
    flex-direction: column;
  }
  .ready-player {
    grid-template-columns: 1fr 60px 62px;
  }
}

.viewport-wrap {
  overflow: hidden !important;
  isolation: isolate !important;
}

.map-overlay-combat .target-strip {
  display: none !important;
}

.map-overlay-combat {
  width: min(680px, calc(100% - 360px)) !important;
  min-width: 0 !important;
  bottom: 8px !important;
}
.map-overlay-combat .combat {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 6px 8px !important;
}
.hotbar-row {
  padding: 0 !important;
  margin: 0 !important;
  height: 44px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.hotbar-row + .hotbar-row {
  margin-top: 3px !important;
}
.hotbar-row .skillbar {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  gap: 3px !important;
  box-sizing: border-box !important;
}
.hotbar-row .skill {
  width: 100% !important;
  height: 42px !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  border-radius: 7px !important;
}
.hotbar-row .skill .icon {
  font-size: 23px !important;
  line-height: 1 !important;
}
.hotbar-row .skill .key {
  left: 3px !important;
  top: 2px !important;
  font-size: 8px !important;
}
.hotbar-row .skill .num {
  font-size: 14px !important;
}
.xp-track {
  margin: 3px 0 0 !important;
}
.gcd-line {
  margin: 2px 0 0 !important;
}

.bottom-menu {
  position: absolute !important;
  right: 8px !important;
  left: auto !important;
  bottom: 8px !important;
  width: 292px !important;
  max-width: 292px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(4, 42px) !important;
  gap: 4px !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  z-index: 100 !important;
  pointer-events: auto !important;
}
.bottom-menu button span {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: 8px !important;
  line-height: 9px !important;
}
.bottom-menu button:hover {
  transform: none !important;
}

.map-chat {
  left: 8px !important;
  bottom: 8px !important;
  width: 330px !important;
  max-width: calc(100% - 320px) !important;
  z-index: 99 !important;
}
.map-chat-log {
  max-height: 120px !important;
  min-height: 78px !important;
}
.map-chat-row input {
  min-width: 0 !important;
  flex: 1 !important;
}

.map-character-hud {
  left: 12px !important;
  top: 12px !important;
  width: 270px !important;
}
.target-hud {
  left: 292px !important;
  top: 12px !important;
  width: 250px !important;
  min-height: 76px !important;
  z-index: 12 !important;
}

.combat-presentation {
  pointer-events: none !important;
}
.map-overlay-combat,
.bottom-menu,
.map-chat {
  pointer-events: auto !important;
}

@media (max-width: 1100px) {
  .map-overlay-combat {
    width: calc(100% - 330px) !important;
  }
  .bottom-menu {
    width: 278px !important;
    max-width: 278px !important;
  }
  .map-chat {
    width: 300px !important;
    max-width: calc(100% - 300px) !important;
  }
  .target-hud {
    left: 280px !important;
    width: 230px !important;
  }
}
@media (max-width: 800px) {
  .map-overlay-combat {
    width: calc(100% - 16px) !important;
    bottom: 94px !important;
  }
  .bottom-menu {
    right: 6px !important;
    bottom: 6px !important;
    width: 270px !important;
    max-width: 270px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(4, 38px) !important;
  }
  .bottom-menu button {
    height: 38px !important;
    min-height: 38px !important;
  }
  .map-chat {
    left: 6px !important;
    bottom: 94px !important;
    width: calc(100% - 286px) !important;
    max-width: none !important;
  }
  .target-hud {
    left: 12px !important;
    top: 112px !important;
    width: 240px !important;
  }
}
@media (max-width: 560px) {
  .map-overlay-combat {
    bottom: 122px !important;
  }
  .bottom-menu {
    width: calc(100% - 12px) !important;
    max-width: none !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
  .map-chat {
    left: 6px !important;
    bottom: 122px !important;
    width: calc(100% - 12px) !important;
  }
  .map-chat-log {
    max-height: 90px !important;
    min-height: 55px !important;
  }
}

.viewport-wrap {
  position: relative !important;
  overflow: hidden !important;
}

#combatHud .target-strip {
  display: none !important;
}
.map-overlay-combat #combatHud {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.map-overlay-combat {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  bottom: 86px !important;
  width: 560px !important;
  min-width: 0 !important;
  max-width: calc(100% - 24px) !important;
  z-index: 70 !important;
  pointer-events: none !important;
}
.map-overlay-combat #combatHud {
  pointer-events: auto !important;
}

.hotbar-row {
  padding: 2px 0 !important;
  margin: 0 !important;
}

.hotbar-row .skillbar {
  display: flex !important;
  flex-wrap: nowrap !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.hotbar-row .skill {
  box-sizing: border-box !important;
  flex: 0 0 54px !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 7px !important;
  position: relative !important;
  line-height: 1 !important;
}
.hotbar-row .skill .key {
  position: absolute !important;
  left: 3px !important;
  top: 3px !important;
  z-index: 5 !important;
  min-width: 14px !important;
  height: 13px !important;
  padding: 0 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 3px !important;
  background: rgba(0, 0, 0, 0.82) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #f2dfb2 !important;
  font-size: 9px !important;
  line-height: 11px !important;
  font-weight: 800 !important;
  box-sizing: border-box !important;
  text-shadow: 0 1px 2px #000 !important;
}
.hotbar-row .skill .icon {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 27px !important;
  line-height: 1 !important;
  z-index: 1 !important;
}
.hotbar-row .skill .num {
  z-index: 6 !important;
  pointer-events: none !important;
}
.hotbar-row .skill .shade {
  z-index: 4 !important;
  pointer-events: none !important;
}
.hotbar-row .skill .hotbar-qty {
  z-index: 7 !important;
}
.xp-track {
  width: 460px !important;
  max-width: 100% !important;
  margin: 2px auto 2px !important;
}
.gcd-line {
  width: 460px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
}

.bottom-menu {
  position: absolute !important;
  left: auto !important;
  right: 12px !important;
  bottom: 12px !important;
  transform: none !important;
  width: max-content !important;
  max-width: calc(100% - 24px) !important;
  height: 54px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 4px !important;
  padding: 5px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  z-index: 100 !important;
  pointer-events: auto !important;
  border: 1px solid #514151 !important;
  border-radius: 8px !important;
  background: linear-gradient(
    180deg,
    rgba(18, 13, 23, 0.98),
    rgba(7, 6, 10, 0.98)
  ) !important;
  box-shadow: 0 12px 34px #000c !important;
  backdrop-filter: none !important;
}
.bottom-menu::-webkit-scrollbar {
  height: 3px;
}
.bottom-menu::-webkit-scrollbar-thumb {
  background: #67533b;
  border-radius: 99px;
}
.bottom-menu button {
  position: relative !important;
  flex: 0 0 44px !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid #3c3042 !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #211926, #0e0b12) !important;
  font-size: 21px !important;
  line-height: 1 !important;
  pointer-events: auto !important;
  z-index: 101 !important;
}
.bottom-menu button span {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 8px) !important;
  transform: translateX(-50%) !important;
  width: max-content !important;
  max-width: 180px !important;
  padding: 5px 7px !important;
  border: 1px solid #5b4937 !important;
  border-radius: 5px !important;
  background: #0b0910 !important;
  color: #ead8b4 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.1s !important;
  box-shadow: 0 8px 20px #000b !important;
}
.bottom-menu button:hover span,
.bottom-menu button:focus-visible span {
  opacity: 1 !important;
  visibility: visible !important;
}
.bottom-menu .menu-badge {
  position: absolute !important;
  right: -3px !important;
  top: -3px !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  font-size: 8px !important;
  border-radius: 50% !important;
  background: #a63b4b !important;
  color: #fff !important;
}

.map-chat {
  left: 12px !important;
  bottom: 12px !important;
  width: 360px !important;
  height: 174px !important;
  min-height: 174px !important;
  z-index: 90 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px !important;
  border: 1px solid #514151 !important;
  border-radius: 8px !important;
  background: linear-gradient(
    180deg,
    rgba(13, 10, 16, 0.97),
    rgba(7, 6, 10, 0.97)
  ) !important;
  box-shadow: 0 14px 36px #000b !important;
}
.map-chat-head {
  flex: 0 0 auto !important;
  font-size: 12px !important;
  padding-bottom: 6px !important;
}
.map-chat-log {
  flex: 1 1 auto !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  padding: 4px 3px !important;
}
.map-chat-row {
  flex: 0 0 34px !important;
  display: grid !important;
  grid-template-columns: 1fr 54px !important;
  gap: 5px !important;
  margin-top: 6px !important;
}
.map-chat-row input {
  min-width: 0 !important;
  height: 34px !important;
  padding: 6px 9px !important;
  font-size: 12px !important;
}
.map-chat-row button {
  height: 34px !important;
  padding: 5px 7px !important;
  font-size: 11px !important;
}

.map-character-hud {
  left: 14px !important;
  top: 14px !important;
  z-index: 80 !important;
}
.target-hud {
  left: 14px !important;
  top: 116px !important;
  z-index: 80 !important;
  width: 270px !important;
}

.combat-phase-banner,
.combat-feedback,
.combat-vignette {
  pointer-events: none !important;
}

@media (max-width: 1200px) {
  .hotbar-row .skill {
    flex-basis: 48px !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    height: 48px !important;
  }
  .hotbar-row .skill .icon {
    font-size: 24px !important;
  }
  .map-overlay-combat {
    width: 500px !important;
    bottom: 84px !important;
  }
  .bottom-menu {
    right: 8px !important;
    bottom: 8px !important;
    max-width: calc(100% - 16px) !important;
  }
  .map-chat {
    width: 320px !important;
  }
}
@media (max-width: 900px) {
  .map-overlay-combat {
    width: calc(100% - 16px) !important;
    bottom: 82px !important;
  }
  .hotbar-row .skill {
    flex-basis: 42px !important;
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
  }
  .hotbar-row .skill .icon {
    font-size: 21px !important;
  }
  .hotbar-row .skill .key {
    font-size: 8px !important;
    min-width: 12px !important;
    height: 12px !important;
  }
  .map-chat {
    width: 300px !important;
    height: 160px !important;
    min-height: 160px !important;
  }
  .bottom-menu {
    bottom: 6px !important;
    right: 6px !important;
    max-width: calc(100% - 12px) !important;
  }
}
@media (max-width: 650px) {
  .map-overlay-combat {
    bottom: 78px !important;
  }
  .map-chat {
    left: 8px !important;
    bottom: 8px !important;
    width: calc(100% - 16px) !important;
    height: 140px !important;
    min-height: 140px !important;
  }
  .bottom-menu {
    right: 4px !important;
    bottom: 4px !important;
    max-width: calc(100% - 8px) !important;
  }
}

body.game-ready .region-hud {
  display: none !important;
}
body.game-ready .map-character-hud {
  left: 12px !important;
  top: 12px !important;
  width: 220px !important;
}
body.game-ready .target-hud {
  left: 242px !important;
  top: 12px !important;
  width: 232px !important;
}

body.game-ready .bottom-menu {
  position: absolute !important;
  left: auto !important;
  right: 12px !important;
  top: auto !important;
  bottom: 12px !important;
  transform: none !important;
  width: 348px !important;
  max-width: calc(100vw - 24px) !important;
  height: 76px !important;
  display: grid !important;
  grid-template-columns: repeat(8, 38px) !important;
  grid-template-rows: repeat(2, 30px) !important;
  justify-content: center !important;
  align-content: center !important;
  gap: 4px !important;
  padding: 4px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  z-index: 120 !important;
  pointer-events: auto !important;
  scrollbar-width: none !important;
}
body.game-ready .bottom-menu::-webkit-scrollbar {
  display: none !important;
}
body.game-ready .bottom-menu button {
  position: relative !important;
  flex: none !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 30px !important;
  min-height: 30px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  box-sizing: border-box !important;
  pointer-events: auto !important;
  border: 1px solid #3c3042 !important;
  border-radius: 6px !important;
  background: linear-gradient(180deg, #211926, #0e0b12) !important;
  font-size: 16px !important;
  line-height: 1 !important;
  overflow: visible !important;
}
body.game-ready .bottom-menu button span {
  position: absolute !important;
  left: 50% !important;
  bottom: calc(100% + 8px) !important;
  transform: translateX(-50%) !important;
  display: block !important;
  width: max-content !important;
  max-width: 180px !important;
  padding: 5px 7px !important;
  border: 1px solid #5b4937 !important;
  border-radius: 5px !important;
  background: #0b0910 !important;
  color: #ead8b4 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 300 !important;
}
body.game-ready .bottom-menu button:hover span,
body.game-ready .bottom-menu button:focus-visible span {
  opacity: 1 !important;
  visibility: visible !important;
}
body.game-ready .bottom-menu .menu-badge {
  position: absolute !important;
  right: -3px !important;
  top: -3px !important;
  left: auto !important;
  bottom: auto !important;
  width: 16px !important;
  height: 16px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 8px !important;
}

body.game-ready .map-chat {
  left: 12px !important;
  right: auto !important;
  bottom: 12px !important;
  width: 430px !important;
  max-width: min(430px, calc(100vw - 36px)) !important;
  height: 190px !important;
  min-height: 190px !important;
  z-index: 110 !important;
}
body.game-ready .map-chat-head {
  font-size: 12px !important;
  height: 28px !important;
  padding: 5px 8px !important;
}
body.game-ready .map-chat-log {
  height: auto !important;
  min-height: 0 !important;
  font-size: 11px !important;
  line-height: 1.45 !important;
  padding: 6px !important;
}
body.game-ready .map-chat-row {
  height: 36px !important;
  min-height: 36px !important;
  grid-template-columns: 1fr 60px !important;
  padding: 4px !important;
  gap: 5px !important;
}
body.game-ready .map-chat-row input {
  height: 34px !important;
  font-size: 12px !important;
  padding: 6px 9px !important;
}
body.game-ready .map-chat-row button {
  height: 34px !important;
  font-size: 11px !important;
}

@media (max-width: 900px) {
  body.game-ready .bottom-menu {
    right: 12px !important;
    width: 348px !important;
  }
  body.game-ready .map-chat {
    width: 360px !important;
    max-width: calc(100vw - 24px) !important;
  }
}
@media (max-width: 700px) {
  body.game-ready .target-hud {
    left: 12px !important;
    top: 92px !important;
    width: 220px !important;
  }
  body.game-ready .map-chat {
    width: calc(100vw - 24px) !important;
    max-width: none !important;
    bottom: 96px !important;
  }
  body.game-ready .bottom-menu {
    bottom: 8px !important;
    right: 8px !important;
    width: 348px !important;
    max-width: calc(100vw - 16px) !important;
  }
}

body.game-ready .bottom-menu button:focus,
body.game-ready .bottom-menu button:focus-visible,
body.game-ready .bottom-menu button:active {
  outline: none !important;
  box-shadow: none !important;
}
body.game-ready .bottom-menu button:focus-visible {
  border-color: #3c3042 !important;
}

body.creating-character .viewport-wrap,
body.creating-character .map-overlay-combat,
body.creating-character .map-character-hud,
body.creating-character .target-hud,
body.creating-character .party-hud,
body.creating-character .quest-helper,
body.creating-character .world-event-hud,
body.creating-character .bottom-menu {
  visibility: hidden !important;
  pointer-events: none !important;
}

.build-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.build-choice:hover:not(:disabled),
.build-choice.selected {
  border-color: #b99152;
  background: #1b1420;
}
.build-choice span,
.build-choice small {
  color: #a9a1aa;
  line-height: 1.35;
}
.build-choice-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}
.talent-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #342a38;
}
.talent-tier {
  margin: 10px 0;
}
.talent-tier-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9f8a68;
  margin-bottom: 6px;
}
.talent-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.talent-icon {
  grid-row: 1/3;
  font-size: 23px;
  align-self: center;
  text-align: center;
}
.talent-name {
  font-weight: 700;
}
.talent-rank {
  font-size: 10px;
  color: #c5b9a3;
}
.talent-desc {
  grid-column: 2/4;
  color: #9f98a0;
  font-size: 11px;
  line-height: 1.3;
}
@media (max-width: 900px) {
  .build-choice-grid,
  .talent-tier-grid {
    grid-template-columns: 1fr;
  }
  .build-choice-head {
    flex-direction: column;
  }
}

.toast {
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.toast.show {
  opacity: 1;
  transform: none;
}
.combat-phase-banner.pulse {
  animation: combatPhasePulse 0.65s ease-out;
}
.combat-cast-bar {
  box-shadow:
    0 8px 24px #000b,
    0 0 20px rgba(191, 55, 72, 0.12);
}
@keyframes combatPhasePulse {
  0% {
    box-shadow:
      0 0 0 rgba(212, 168, 73, 0),
      0 8px 30px #0009;
    transform: translateX(-50%) scale(0.94);
  }
  45% {
    box-shadow:
      0 0 28px rgba(212, 168, 73, 0.32),
      0 8px 30px #0009;
    transform: translateX(-50%) scale(1.04);
  }
  100% {
    box-shadow:
      0 0 0 rgba(212, 168, 73, 0),
      0 8px 30px #0009;
    transform: translateX(-50%) scale(1);
  }
}
.skill.ready {
  box-shadow:
    inset 0 0 0 1px rgba(216, 173, 90, 0.22),
    0 0 8px rgba(216, 173, 90, 0.06);
}
.skill.ready:hover {
  box-shadow:
    inset 0 0 0 1px rgba(216, 173, 90, 0.55),
    0 0 14px rgba(216, 173, 90, 0.16);
}
.target-hud:not(.hidden) {
  box-shadow:
    0 8px 24px #0008,
    0 0 0 1px rgba(216, 173, 90, 0.08);
}
@media (prefers-reduced-motion: reduce) {
  .combat-phase-banner.pulse {
    animation: none !important;
  }
  .toast {
    transition: none;
  }
}

.build-grid {
  display: block !important;
}
.talent-build-shell {
  margin: 14px 18px 18px !important;
}
.talent-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: linear-gradient(180deg, #19131f, #0e0a12) !important;
  padding: 12px 0 !important;
}
.talent-tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}
.talent-tier {
  padding: 16px 0 8px !important;
}
.talent-node {
  min-width: 0 !important;
  width: 100% !important;
  min-height: 104px !important;
  grid-template-columns: 42px minmax(0, 1fr) !important;
  grid-template-rows: auto auto auto !important;
  align-content: start !important;
  padding: 11px !important;
  overflow: hidden !important;
}
.talent-icon {
  width: 42px !important;
  height: 42px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 25px !important;
  grid-row: 1/4 !important;
}
.talent-node-main {
  min-width: 0 !important;
  display: grid !important;
  gap: 3px !important;
}
.talent-node-main b {
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: visible !important;
}
.talent-node-main small {
  font-size: 10px !important;
}
.talent-node em {
  grid-column: 2 !important;
  font-size: 9px !important;
  color: #9d8b6b !important;
  min-height: 12px;
}
.talent-desc {
  grid-column: 2 !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
  color: #aaa1ad !important;
}
.build-choice-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}
.chat-line.chat-system {
  color: #d9bd79;
  background: linear-gradient(90deg, rgba(199, 159, 79, 0.08), transparent);
  font-weight: 600;
}
.chat-line.chat-system b {
  color: #e7c983;
}
.toast {
  left: 50% !important;
  right: auto !important;
  bottom: 92px !important;
  transform: translate(-50%, 10px) !important;
  max-width: min(520px, calc(100vw - 40px)) !important;
}
.toast.show {
  transform: translate(-50%, 0) !important;
}
.dungeon-queue-hud {
  right: 166px !important;
  top: 244px !important;
  max-width: 310px !important;
}
.trainer-hero {
  padding: 12px;
  border: 1px solid #3d3042;
  border-radius: 10px;
  background: linear-gradient(145deg, #18121e, #0d0a11);
  margin-bottom: 12px;
}
.trainer-hero h3 {
  margin: 2px 0 4px;
  font-family: Georgia, serif;
  color: #ead8b4;
}
.trainer-skill-list {
  display: grid;
  gap: 7px;
}
.trainer-skill-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #342b3b;
  border-radius: 9px;
  background: #110d15;
}
.trainer-skill-row.learned {
  border-color: #506d58;
}
.trainer-skill-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #211927;
  font-size: 22px;
}
.trainer-skill-main {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.trainer-skill-main b {
  font-size: 12px;
}
.trainer-skill-main span,
.trainer-skill-main small {
  color: #9e96a0;
  font-size: 10px;
}
.journal-entry.selected {
  border-color: #d1a85d !important;
  box-shadow:
    inset 4px 0 #d7b46a,
    0 8px 24px #0008 !important;
}
@media (max-width: 900px) {
  .talent-tier-grid,
  .build-choice-grid {
    grid-template-columns: 1fr !important;
  }
  .dungeon-queue-hud {
    right: 150px !important;
    top: 170px !important;
    max-width: 260px !important;
  }
}

.character-cols .stat-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 64px 38px !important;
  align-items: center !important;
  gap: 8px !important;
}
.character-cols .stat-row > b {
  min-width: 0 !important;
  text-align: left !important;
}
.character-cols .stat-row > span {
  width: 64px !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
  justify-self: center !important;
}
.character-cols .stat-row > button {
  width: 38px !important;
  justify-self: end !important;
}
.character-cols .gear-slot-row {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) 92px 76px !important;
  align-items: center !important;
  gap: 9px !important;
}
.character-cols .gear-slot-icon {
  display: grid;
  place-items: center;
  width: 32px !important;
}
.character-cols .gear-item-main {
  min-width: 0 !important;
}
.character-cols .gear-slot-name {
  justify-self: end !important;
  text-align: right !important;
  color: #9b92a0 !important;
  text-transform: capitalize !important;
  white-space: nowrap !important;
}
.character-cols .gear-state {
  justify-self: end !important;
  text-align: right !important;
  min-width: 62px !important;
}
.character-cols .gear-state.empty {
  color: #8f8792 !important;
}
.character-cols .gear-state.equipped {
  color: #65c48d !important;
}
.journey-fallback {
  display: block !important;
  padding: 7px 9px !important;
  border: 1px solid #3a3040 !important;
  border-radius: 7px !important;
  color: #aaa0aa !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  background: #13101a !important;
}
.talent-node {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  min-height: 88px !important;
  align-items: center !important;
}
.talent-node .talent-icon {
  grid-row: 1/3 !important;
  width: 46px !important;
  height: 46px !important;
  display: grid !important;
  place-items: center !important;
  font-size: 28px !important;
}
.talent-node .talent-node-main {
  grid-column: 2 !important;
  min-width: 0 !important;
}
.talent-node em,
.talent-node .talent-desc {
  display: none !important;
}
.talent-node:hover:not(:disabled),
.talent-node:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px #0008 !important;
}
.arena-queue-hud {
  position: absolute;
  left: 16px;
  top: 244px;
  z-index: 27;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #665238;
  background: rgba(12, 9, 14, 0.96);
  border-radius: 8px;
  box-shadow: 0 10px 28px #000a;
  min-width: 250px;
}
.arena-queue-hud.hidden {
  display: none;
}
.arena-queue-hud .aq-icon {
  font-size: 22px;
}
.arena-queue-hud .aq-main {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.arena-queue-hud .aq-main span {
  font-size: 10px;
  color: #aaa;
}
.arena-queue-hud button {
  margin-left: auto;
  padding: 5px 8px;
}
.viewport-wrap.combat-impact {
  animation: none !important;
  transform: none !important;
}
@media (max-width: 900px) {
  .arena-queue-hud {
    left: 12px;
    top: 210px;
    min-width: 220px;
  }
  .character-cols .gear-slot-row {
    grid-template-columns: 28px minmax(0, 1fr) 76px 60px !important;
    gap: 6px !important;
  }
  .character-cols .gear-state {
    min-width: 52px !important;
    font-size: 10px !important;
  }
}

.talent-build-shell {
  margin: 14px 18px 22px !important;
  max-height: calc(90vh - 210px);
  overflow: auto;
  padding: 0 4px 12px;
  scrollbar-gutter: stable;
}
.talent-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 8 !important;
  background: linear-gradient(
    180deg,
    #19131f 82%,
    rgba(14, 10, 18, 0.96)
  ) !important;
  backdrop-filter: blur(6px);
  padding: 12px 0 10px !important;
  margin: 0 0 6px !important;
}
.talent-tier {
  position: relative !important;
  display: block !important;
  margin: 0 !important;
  padding: 20px 0 18px !important;
  border-top: 1px solid #342a38 !important;
}
.talent-tier:first-of-type {
  border-top: 0 !important;
}
.talent-tier-label {
  position: static !important;
  display: block !important;
  margin: 0 0 9px !important;
  padding: 0 !important;
  background: none !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
  color: #9f8a68 !important;
}
.talent-tier-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(180px, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
}
.talent-node {
  position: relative !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 82px !important;
  height: auto !important;
  display: grid !important;
  grid-template-columns: 56px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 3px 10px !important;
  align-items: center !important;
  padding: 10px !important;
  overflow: visible !important;
  border-radius: 10px !important;
  background: linear-gradient(145deg, #17121d, #0d0a11) !important;
}
.talent-node .talent-icon {
  grid-column: 1 !important;
  grid-row: 1/3 !important;
  width: 52px !important;
  height: 52px !important;
  border-radius: 8px !important;
  font-size: 29px !important;
  background: radial-gradient(circle, #2b2035, #0c0910) !important;
  border: 1px solid #4a3a4f !important;
  box-shadow:
    inset 0 1px #fff1,
    0 6px 14px #0008 !important;
}
.talent-node-main {
  grid-column: 2 !important;
  grid-row: 1/3 !important;
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
  align-content: center !important;
}
.talent-node-main b {
  font-size: 12px !important;
  line-height: 1.2 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  color: #eadfcf !important;
}
.talent-node-main small {
  font-size: 9px !important;
  color: #9b929d !important;
}
.talent-node em,
.talent-node .talent-desc {
  display: none !important;
}
.talent-node:hover:not(:disabled),
.talent-node:focus-visible {
  transform: translateY(-1px) !important;
  box-shadow: 0 9px 24px #0009 !important;
}
.talent-node.learned {
  border-color: #d4ad61 !important;
  box-shadow: 0 0 0 1px #d4ad6138 inset !important;
}
.talent-node.keystone {
  border-color: #8b5a8d !important;
}
.talent-node.capstone {
  border-color: #b28a45 !important;
}
.arena-queue-help {
  margin-top: 7px;
  color: #8f8792;
  font-size: 10px;
}
.arena-queue-hud {
  left: auto !important;
  right: 166px !important;
  top: 300px !important;
  z-index: 29 !important;
  min-width: 250px !important;
}
.dungeon-queue-hud {
  right: 166px !important;
  top: 244px !important;
  z-index: 29 !important;
}
.character-cols .stat-row {
  grid-template-columns: minmax(0, 1fr) 72px 38px !important;
}
.character-cols .stat-row > span {
  width: 72px !important;
  justify-self: center !important;
  text-align: center !important;
  font-variant-numeric: tabular-nums !important;
}
.character-cols .gear-slot-row {
  display: grid !important;
  grid-template-columns: 32px minmax(0, 1fr) 68px 68px 78px !important;
  gap: 8px !important;
  align-items: center !important;
  padding: 9px 10px !important;
  background: linear-gradient(145deg, #17121d, #100c13) !important;
  border: 1px solid #302638 !important;
  border-radius: 8px !important;
  margin: 5px 0 !important;
  transition:
    border-color 0.12s,
    transform 0.12s,
    background 0.12s !important;
}
.character-cols .gear-slot-row:hover {
  border-color: #66503b !important;
  background: #1b1522 !important;
  transform: translateX(2px) !important;
}
.character-cols .gear-item-main {
  min-width: 0 !important;
  overflow: hidden !important;
}
.character-cols .gear-item-main > b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap !important;
}
.character-cols .gear-slot-name {
  justify-self: start !important;
  text-align: left !important;
  color: #9b92a0 !important;
  text-transform: capitalize !important;
  white-space: nowrap !important;
}
.character-cols .gear-state {
  justify-self: start !important;
  text-align: left !important;
  min-width: 68px !important;
  font-size: 10px !important;
}
.character-cols .gear-unequip,
.character-cols .gear-unequip-placeholder {
  width: 78px !important;
  justify-self: end !important;
  margin: 0 !important;
  padding: 6px 7px !important;
  font-size: 10px !important;
  text-align: center !important;
}
.character-cols .gear-unequip-placeholder {
  display: block !important;
  height: 30px !important;
}
@media (max-width: 1050px) {
  .talent-tier-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
  .character-cols .gear-slot-row {
    grid-template-columns: 30px minmax(0, 1fr) 62px 62px 72px !important;
  }
}
@media (max-width: 760px) {
  .talent-tier-grid {
    grid-template-columns: 1fr !important;
  }
  .arena-queue-hud,
  .dungeon-queue-hud {
    right: 12px !important;
    max-width: calc(100% - 24px) !important;
  }
  .arena-queue-hud {
    top: 300px !important;
  }
  .dungeon-queue-hud {
    top: 244px !important;
  }
  .character-cols .gear-slot-row {
    grid-template-columns: 30px minmax(0, 1fr) auto !important;
  }
  .character-cols .gear-slot-name {
    display: none !important;
  }
  .character-cols .gear-state {
    justify-self: end !important;
  }
  .character-cols .gear-unequip,
  .character-cols .gear-unequip-placeholder {
    width: 70px !important;
  }
}

body.game-ready .arena-queue-hud,
body.game-ready .dungeon-queue-hud {
  position: absolute !important;
  right: 174px !important;
  left: auto !important;
  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;
  z-index: 31 !important;
  box-sizing: border-box !important;
  transition: none !important;
  animation: none !important;
}
body.game-ready .arena-queue-hud {
  top: 14px !important;
}
body.game-ready .dungeon-queue-hud {
  top: 76px !important;
}
body.game-ready .arena-queue-hud.hidden,
body.game-ready .dungeon-queue-hud.hidden {
  display: none !important;
}
body.game-ready .arena-queue-hud button,
body.game-ready .dungeon-queue-hud button {
  transition: none !important;
  animation: none !important;
  transform: none !important;
}

.talent-explainer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 14px;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #3a2e40;
  border-radius: 10px;
  background: linear-gradient(145deg, #17121e, #0d0a11);
}
.talent-explainer-copy h3 {
  margin: 3px 0 5px;
  font-family: Georgia, serif;
  color: #ead8b4;
  font-size: 15px;
}
.talent-explainer-copy p {
  margin: 0 0 10px;
  color: #a9a0ab;
  font-size: 10px;
  line-height: 1.5;
  max-width: 720px;
}
.talent-skill-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.talent-strip-label {
  width: 100%;
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #9b8968;
  margin-bottom: 2px;
}
.talent-skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border: 1px solid #33293a;
  border-radius: 7px;
  background: #100c14;
  font-size: 9px;
}
.talent-skill-chip > span {
  font-size: 15px;
}
.talent-skill-chip small {
  color: #8f8792;
}
.talent-next-skill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
  padding: 7px 9px;
  border: 1px solid #5d4930;
  border-radius: 7px;
  background: #1b1510;
  color: #dfc489;
  font-size: 9px;
}
.talent-next-skill > span {
  font-size: 18px;
}
.talent-next-skill div {
  display: grid;
  gap: 1px;
}
.talent-next-skill small {
  color: #9e9384;
}
.talent-next-skill.complete {
  border-color: #3b5b49;
  background: #101912;
  color: #9ad1ae;
}
.talent-journey-rail {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 3px 0;
}
.talent-journey-step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 35px;
  padding: 5px 7px;
  border: 1px solid #30263a;
  border-radius: 7px;
  background: #100c14;
  color: #8f8792;
}
.talent-journey-step.current {
  border-color: #b28a45;
  background: #211910;
  color: #ecd39c;
  box-shadow: 0 0 0 1px #b28a4530 inset;
}
.talent-journey-step.reached:not(.current) {
  color: #b8c7bd;
  border-color: #39493e;
}
.talent-journey-dot {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #514356;
  background: #17111d;
  font-size: 9px;
  font-weight: 800;
}
.talent-journey-step.current .talent-journey-dot {
  border-color: #c7a45f;
  color: #f0d8a0;
}
.talent-journey-step.reached .talent-journey-dot {
  border-color: #55725d;
  color: #9bd1aa;
}
.talent-journey-step div {
  display: grid;
  gap: 0;
}
.talent-journey-step b {
  font-size: 9px;
  letter-spacing: 0.08em;
}
.talent-journey-step small {
  font-size: 8px;
  color: #827985;
}
.talent-tier {
  padding: 16px 0 25px !important;
}
.talent-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.talent-tier-head .talent-tier-label {
  margin: 0 !important;
  color: #b49a6d !important;
  font-size: 10px !important;
  letter-spacing: 0.16em !important;
}
.talent-tier-rule {
  font-size: 8px;
  color: #817784;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.talent-tier.unlocked .talent-tier-rule {
  color: #6eaa7f;
}
.talent-flow {
  height: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #9d8150;
}
.talent-flow i {
  display: block;
  width: 1px;
  height: 13px;
  background: #5b4730;
}
.talent-flow span {
  font-size: 13px;
  line-height: 10px;
}
.talent-node-wrap {
  min-width: 0;
}
.talent-branch-label {
  display: block;
  text-align: center;
  margin-top: 3px;
  font-size: 7px;
  letter-spacing: 0.1em;
  color: #756a79;
  text-transform: uppercase;
}
.talent-node {
  transition:
    border-color 0.12s,
    box-shadow 0.12s,
    transform 0.12s !important;
}

@media (max-width: 900px) {
  .talent-explainer {
    grid-template-columns: 1fr;
  }
  body.game-ready .arena-queue-hud,
  body.game-ready .dungeon-queue-hud {
    right: 10px !important;
    left: auto !important;
    width: min(250px, calc(100% - 20px)) !important;
    min-width: 0 !important;
    max-width: 250px !important;
  }
  body.game-ready .arena-queue-hud {
    top: 14px !important;
  }
  body.game-ready .dungeon-queue-hud {
    top: 76px !important;
  }
}
@media (max-width: 650px) {
  body.game-ready .arena-queue-hud,
  body.game-ready .dungeon-queue-hud {
    right: 7px !important;
    width: calc(100% - 14px) !important;
    max-width: 220px !important;
  }
  body.game-ready .arena-queue-hud {
    top: 14px !important;
  }
  body.game-ready .dungeon-queue-hud {
    top: 70px !important;
  }
}

.talent-explainer {
  grid-template-columns: minmax(0, 1fr) 230px !important;
  gap: 16px !important;
}
.talent-skill-strip {
  display: grid !important;
  gap: 6px !important;
  margin-top: 12px !important;
  padding-top: 10px !important;
  border-top: 1px solid #2f2735 !important;
}
.talent-strip-label {
  font-size: 9px !important;
  letter-spacing: 0.14em !important;
  color: #b69a6a !important;
  font-weight: 800 !important;
}
.talent-strip-help {
  font-size: 9px !important;
  color: #817985 !important;
  line-height: 1.35 !important;
}
.talent-skill-track {
  display: flex !important;
  gap: 6px !important;
  overflow-x: auto !important;
  padding: 3px 1px 6px !important;
  scrollbar-width: thin !important;
}
.talent-skill-chip {
  flex: 0 0 92px !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  align-items: center !important;
  gap: 0 6px !important;
  padding: 6px !important;
  border: 1px solid #30263a !important;
  border-radius: 7px !important;
  background: #100c14 !important;
  color: #7e7581 !important;
}
.talent-skill-chip > span {
  grid-row: 1/3;
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 6px !important;
  background: #18121f !important;
  font-size: 16px !important;
}
.talent-skill-chip b {
  font-size: 8px !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.talent-skill-chip small {
  font-size: 7px !important;
  color: #766d7a !important;
}
.talent-skill-chip.reached {
  border-color: #465b4b !important;
  color: #b8c9bd !important;
}
.talent-skill-chip.next {
  border-color: #b08a4d !important;
  box-shadow: 0 0 0 1px #b08a4d33 inset !important;
  color: #ecd39c !important;
}
.talent-tier {
  padding: 18px 0 12px !important;
}
.talent-tier-head {
  display: flex !important;
  align-items: flex-end !important;
  justify-content: space-between !important;
  gap: 14px !important;
  margin-bottom: 10px !important;
}
.talent-tier-head > div {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}
.talent-tier-label {
  margin: 0 !important;
  font-size: 10px !important;
  letter-spacing: 0.15em !important;
  color: #b59a6d !important;
  font-weight: 800 !important;
}
.talent-tier-desc {
  font-size: 8px !important;
  color: #7f7782 !important;
  line-height: 1.35 !important;
}
.talent-tier-rule {
  font-size: 8px !important;
  color: #8f8792 !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
.talent-tier.unlocked .talent-tier-rule {
  color: #76a884 !important;
}
.talent-tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  position: relative !important;
}
.talent-node-wrap {
  width: 100% !important;
  min-width: 0 !important;
}
.talent-node {
  min-height: 78px !important;
  height: auto !important;
  grid-template-columns: 50px minmax(0, 1fr) !important;
  grid-template-rows: auto auto !important;
  gap: 3px 9px !important;
  padding: 9px !important;
  overflow: visible !important;
}
.talent-node .talent-icon {
  width: 48px !important;
  height: 48px !important;
  border-radius: 9px !important;
  font-size: 27px !important;
}
.talent-node-main {
  gap: 4px !important;
}
.talent-node-main b {
  font-size: 11px !important;
  line-height: 1.18 !important;
}
.talent-node-main small {
  font-size: 8px !important;
  color: #938995 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.talent-branch-label {
  font-size: 7px !important;
  margin-top: 4px !important;
}
.talent-flow {
  height: 32px !important;
}
.talent-flow i {
  height: 18px !important;
}
.talent-next-skill {
  margin-top: 8px !important;
}
@media (max-width: 900px) {
  .talent-explainer {
    grid-template-columns: 1fr !important;
  }
  .talent-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 650px) {
  .talent-tier-grid {
    grid-template-columns: 1fr !important;
  }
  .talent-skill-chip {
    flex-basis: 86px !important;
  }
}

button,
.skill,
.talent-node,
.build-choice,
.journal-entry,
.skill-entry {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

button:hover,
.topbar button:hover,
.talent-node:hover:not(:disabled),
.journal-entry:hover,
.skill-entry:hover {
  transform: none !important;
}

.talent-build-shell {
  font-size: 13px !important;
}
.talent-header {
  padding: 14px 0 12px !important;
}
.talent-header > b,
.talent-header > div > b {
  font-size: 14px !important;
}
.talent-header .muted {
  font-size: 11px !important;
  line-height: 1.5 !important;
}
.talent-explainer {
  grid-template-columns: minmax(0, 1fr) 290px !important;
  gap: 18px !important;
  padding: 16px !important;
}
.talent-explainer-copy h3 {
  font-size: 18px !important;
  line-height: 1.25 !important;
  margin: 4px 0 7px !important;
}
.talent-explainer-copy p {
  font-size: 12px !important;
  line-height: 1.55 !important;
  max-width: none !important;
}
.talent-strip-label {
  font-size: 10px !important;
  letter-spacing: 0.12em !important;
  font-weight: 800 !important;
  color: #b59a6d !important;
}
.talent-strip-help {
  font-size: 10px !important;
  color: #928895 !important;
  line-height: 1.4 !important;
}
.talent-skill-track {
  gap: 8px !important;
  padding: 5px 1px 8px !important;
}
.talent-skill-chip {
  flex: 0 0 132px !important;
  min-height: 48px !important;
  grid-template-columns: 34px minmax(0, 1fr) !important;
  gap: 0 8px !important;
  padding: 8px !important;
}
.talent-skill-chip > span {
  width: 32px !important;
  height: 32px !important;
  font-size: 18px !important;
}
.talent-skill-chip b {
  font-size: 10px !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.talent-skill-chip small {
  font-size: 9px !important;
}
.talent-next-skill {
  font-size: 11px !important;
  padding: 9px 11px !important;
  min-height: 48px !important;
}
.talent-next-skill > span {
  font-size: 21px !important;
}
.talent-next-skill small {
  font-size: 9px !important;
}
.talent-journey-rail {
  gap: 9px !important;
}
.talent-journey-step {
  min-height: 48px !important;
  padding: 8px 9px !important;
  gap: 9px !important;
}
.talent-journey-dot {
  width: 25px !important;
  height: 25px !important;
  flex-basis: 25px !important;
  font-size: 10px !important;
}
.talent-journey-step b {
  font-size: 10px !important;
  letter-spacing: 0.06em !important;
}
.talent-journey-step small {
  font-size: 9px !important;
}
.talent-tier {
  padding: 20px 0 16px !important;
}
.talent-tier-label {
  font-size: 11px !important;
}
.talent-tier-desc {
  font-size: 10px !important;
  line-height: 1.4 !important;
}
.talent-tier-rule {
  font-size: 9px !important;
}
.talent-tier-grid {
  gap: 14px !important;
}
.talent-node {
  min-height: 92px !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 4px 10px !important;
  padding: 11px !important;
}
.talent-node .talent-icon {
  width: 52px !important;
  height: 52px !important;
  font-size: 29px !important;
}
.talent-node-main b {
  font-size: 12px !important;
  line-height: 1.25 !important;
}
.talent-node-main small {
  font-size: 10px !important;
  line-height: 1.3 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
}
.talent-branch-label {
  font-size: 8px !important;
  letter-spacing: 0.08em !important;
}

.progression-panel {
  padding: 16px !important;
}
.progression-overview {
  gap: 16px !important;
}
.progression-level-copy b {
  font-size: 21px !important;
}
.progression-level-copy span {
  font-size: 11px !important;
}
.progression-xp-head,
.progression-xp-foot {
  font-size: 12px !important;
}
.progression-next {
  padding: 12px !important;
}
.progression-next b {
  font-size: 13px !important;
}
.unlock-chip {
  padding: 5px 8px !important;
  font-size: 10px !important;
}
.journey-card {
  padding: 15px !important;
}
.journey-head > b,
.journey-head > div > b {
  font-size: 14px !important;
}
.journey-head > div > span {
  font-size: 11px !important;
  line-height: 1.45 !important;
}
.journey-next-skill {
  min-width: 175px !important;
}
.journey-next-skill strong {
  font-size: 13px !important;
}
.journey-next-skill small {
  font-size: 10px !important;
}
.journey-row {
  gap: 14px !important;
  margin-top: 13px !important;
}
.journey-row label {
  font-size: 10px !important;
  margin-bottom: 6px !important;
}
.journey-chip {
  padding: 7px 9px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
.journey-chip small {
  font-size: 10px !important;
}
.milestone-dot {
  min-width: 68px !important;
  padding: 7px 5px !important;
}
.milestone-dot b {
  font-size: 12px !important;
}
.milestone-dot span {
  font-size: 9px !important;
}

#worldCanvas {
  image-rendering: auto;
}

@media (max-width: 900px) {
  .talent-explainer {
    grid-template-columns: 1fr !important;
  }
  .talent-tier-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr)) !important;
  }
}
@media (max-width: 650px) {
  .talent-tier-grid {
    grid-template-columns: 1fr !important;
  }
  .talent-skill-chip {
    flex-basis: 118px !important;
  }
  .journey-chip {
    font-size: 10px !important;
  }
}

.world-intel-modal {
  width: min(1180px, 96vw) !important;
}
.world-intel-body {
  display: grid;
  gap: 12px;
}
.intel-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 1px solid #3b3041;
  border-radius: 12px;
  background: linear-gradient(135deg, #211a27, #120f17);
}
.intel-hero h2 {
  margin: 3px 0 5px;
  font-size: 23px;
}
.intel-hero p {
  margin: 0;
  color: #aaa0ad;
  max-width: 760px;
}
.intel-status {
  min-width: 160px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 3px;
  text-align: right;
}
.intel-status b {
  color: #d9b75c;
}
.intel-status span {
  font-size: 11px;
  color: #9d94a0;
}
.intel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.intel-card {
  padding: 13px;
  border: 1px solid #302736;
  border-radius: 11px;
  background: #100d15;
}
.intel-card h3 {
  margin: 0;
  font-size: 14px;
}
.intel-meter {
  margin: 10px 0;
}
.intel-meter > div {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #b8adb8;
}
.intel-meter > i {
  display: block;
  height: 6px;
  border-radius: 99px;
  background: #4d3d2b;
  margin-top: 4px;
}
.intel-facts {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.intel-facts span {
  padding: 5px 7px;
  border: 1px solid #2f2735;
  border-radius: 7px;
  color: #a79ca9;
  font-size: 10px;
}
.intel-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #211c26;
}
.intel-row:last-child {
  border-bottom: 0;
}
.intel-row b {
  display: block;
  font-size: 12px;
}
.intel-row small {
  display: block;
  color: #8f8792;
  font-size: 10px;
  margin-top: 2px;
}
.intel-row > span,
.intel-row > strong {
  font-size: 10px;
  color: #c6a96b;
  white-space: nowrap;
}
.intel-event {
  padding: 9px;
  margin: 6px 0;
  border: 1px solid #2f2735;
  border-radius: 9px;
  background: #17121d;
}
.intel-event b {
  font-size: 12px;
}
.intel-event p {
  margin: 4px 0;
  color: #b0a6b0;
  font-size: 11px;
}
.intel-event small {
  font-size: 9px;
  color: #827985;
}
.intel-event.opportunity {
  border-left: 3px solid #a9864b;
}
.intel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #302736;
  border-radius: 10px;
  background: #120e17;
}
.intel-footer > div {
  display: grid;
  gap: 4px;
}
.intel-footer span {
  color: #9b919d;
  font-size: 10px;
}
.intel-footer em {
  display: inline-block;
  font-style: normal;
  padding: 3px 6px;
  margin-right: 4px;
  border-radius: 999px;
  border: 1px solid #41364a;
  color: #c4ad82;
}
.intel-footer button {
  white-space: nowrap;
}
@media (max-width: 800px) {
  .intel-grid {
    grid-template-columns: 1fr;
  }
  .intel-hero {
    display: grid;
  }
  .intel-status {
    justify-items: start;
    text-align: left;
  }
  .intel-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

.intel-event.opportunity,
.intel-event.contract {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.intel-event.opportunity > div,
.intel-event.contract > div {
  min-width: 0;
}
.intel-event .compact {
  padding: 5px 9px;
  font-size: 10px;
  white-space: nowrap;
}
.intel-badge {
  font-size: 9px;
  letter-spacing: 0.08em;
  color: #bfa76e;
  border: 1px solid #4b3b29;
  border-radius: 999px;
  padding: 4px 7px;
  white-space: nowrap;
}

#bottomMenu.bottom-menu {
  position: absolute !important;
  right: 12px !important;
  left: auto !important;
  bottom: 12px !important;
  top: auto !important;
  width: 374px !important;
  max-width: calc(100vw - 24px) !important;
  height: 76px !important;
  min-height: 76px !important;
  max-height: 76px !important;
  display: grid !important;
  grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, 34px) !important;
  grid-auto-flow: row !important;
  gap: 3px !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  justify-content: stretch !important;
  align-content: stretch !important;
}
#bottomMenu.bottom-menu > button {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: grid !important;
  place-items: center !important;
}

body.game-ready .viewport-wrap canvas#minimap {
  top: 14px !important;
  right: 14px !important;
  z-index: 22 !important;
}
body.game-ready #questHelper.quest-helper:not(.hidden) {
  top: 206px !important;
  right: 14px !important;
  left: auto !important;
  width: 290px !important;
  max-width: 290px !important;
  z-index: 23 !important;
  pointer-events: auto !important;
}

body.game-ready .arena-queue-hud:not(.hidden),
body.game-ready .dungeon-queue-hud:not(.hidden) {
  left: auto !important;
  right: 204px !important;
  width: 250px !important;
  max-width: 250px !important;
  z-index: 24 !important;
}
body.game-ready .arena-queue-hud:not(.hidden) {
  top: 14px !important;
}
body.game-ready .dungeon-queue-hud:not(.hidden) {
  top: 76px !important;
}

.world-map-wrap canvas {
  image-rendering: auto !important;
  text-rendering: geometricPrecision;
}
@media (max-width: 900px) {
  #bottomMenu.bottom-menu {
    width: calc(100vw - 12px) !important;
    max-width: calc(100vw - 12px) !important;
    right: 6px !important;
    bottom: 6px !important;
  }
  body.game-ready #questHelper.quest-helper:not(.hidden) {
    top: calc(8px + min(125px, 28vw) + 12px) !important;
    right: 8px !important;
    width: min(240px, calc(100vw - 16px)) !important;
    max-width: 240px !important;
  }
  body.game-ready .arena-queue-hud:not(.hidden),
  body.game-ready .dungeon-queue-hud:not(.hidden) {
    right: calc(8px + min(125px, 28vw) + 12px) !important;
    max-width: min(250px, calc(100vw - 16px)) !important;
  }
}
@media (max-width: 650px) {
  #bottomMenu.bottom-menu {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    grid-template-rows: 29px 29px !important;
    gap: 2px !important;
    padding: 2px !important;
  }
  #bottomMenu.bottom-menu > button {
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
    font-size: 13px !important;
  }
}

#bottomMenu.bottom-menu {
  display: grid !important;
  grid-template-columns: repeat(9, 38px) !important;
  grid-template-rows: repeat(2, 34px) !important;
  grid-auto-flow: row !important;
  gap: 4px !important;
  width: 374px !important;
  min-width: 374px !important;
  max-width: calc(100vw - 12px) !important;
  height: 72px !important;
  min-height: 72px !important;
  max-height: 72px !important;
  padding: 3px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  align-content: start !important;
  justify-content: center !important;
}
#bottomMenu.bottom-menu > button {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}
@media (max-width: 430px) {
  #bottomMenu.bottom-menu {
    width: calc(100vw - 12px) !important;
    min-width: 0 !important;
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 29px) !important;
    gap: 2px !important;
    padding: 2px !important;
  }
  #bottomMenu.bottom-menu > button {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 29px !important;
    min-height: 29px !important;
    max-height: 29px !important;
  }
}

body.game-ready .toast {
  left: auto !important;
  right: 12px !important;
  bottom: 90px !important;
  transform: translateY(10px) !important;
  max-width: min(420px, calc(100vw - 24px)) !important;
  z-index: 12000 !important;
}
body.game-ready .toast.show {
  transform: translateY(0) !important;
}
@media (max-width: 430px) {
  body.game-ready .toast {
    right: 8px !important;
    bottom: 76px !important;
    max-width: calc(100vw - 16px) !important;
  }
}

body.game-ready .bottom-menu {
  padding: 8px 10px !important;
  gap: 6px !important;
  box-sizing: border-box !important;
}
body.game-ready .bottom-menu button {
  margin: 0 !important;
}
body.game-ready .toast {
  left: auto !important;
  right: 12px !important;
  bottom: 76px !important;
  transform: translateY(10px) !important;
  z-index: 12000 !important;
}
body.game-ready .toast.show {
  transform: translateY(0) !important;
}
@media (max-width: 700px) {
  body.game-ready .bottom-menu {
    padding: 8px !important;
    gap: 5px !important;
  }
  body.game-ready .toast {
    right: 8px !important;
    bottom: 70px !important;
    max-width: calc(100vw - 16px) !important;
  }
}

#bottomMenu.bottom-menu {
  width: 390px !important;
  min-width: 390px !important;
  max-width: calc(100vw - 16px) !important;
  height: 80px !important;
  min-height: 80px !important;
  max-height: 80px !important;
  grid-template-columns: repeat(9, 38px) !important;
  grid-template-rows: repeat(2, 30px) !important;
  gap: 4px !important;
  padding: 8px !important;
  align-content: start !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}
#bottomMenu.bottom-menu > button {
  width: 38px !important;
  min-width: 38px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-height: 30px !important;
  padding: 0 !important;
}
body.game-ready .toast {
  bottom: 80px !important;
}
@media (max-width: 430px) {
  #bottomMenu.bottom-menu {
    width: calc(100vw - 16px) !important;
    min-width: 0 !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    grid-template-columns: repeat(9, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, 27px) !important;
    gap: 2px !important;
    padding: 6px !important;
  }
  #bottomMenu.bottom-menu > button {
    width: 100% !important;
    min-width: 0 !important;
    height: 27px !important;
    min-height: 27px !important;
    max-height: 27px !important;
  }
  body.game-ready .toast {
    right: 8px !important;
    bottom: 78px !important;
  }
}
body.game-ready .toast {
  left: auto !important;
  right: 12px !important;
  bottom: 100px !important;
  z-index: 12000 !important;
  transform: translateY(10px) !important;
}
body.game-ready .toast.show {
  transform: translateY(0) !important;
}
@media (max-width: 700px) {
  body.game-ready .toast {
    right: 8px !important;
    bottom: 84px !important;
    max-width: calc(100vw - 16px) !important;
  }
}

#bottomMenu.bottom-menu {
  overflow: visible !important;
  border-color: rgba(132, 105, 69, 0.48) !important;
}
#bottomMenu.bottom-menu:hover {
  border-color: rgba(132, 105, 69, 0.48) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55) !important;
}
#bottomMenu.bottom-menu > button:hover,
#bottomMenu.bottom-menu > button:focus-visible {
  border-color: rgba(184, 145, 79, 0.78) !important;
  background: rgba(184, 145, 79, 0.14) !important;
  outline: none !important;
  box-shadow: none !important;
}
#bottomMenu.bottom-menu > button span {
  pointer-events: none !important;
}

body.game-ready,
body.game-ready * {
}
body.game-ready input,
body.game-ready textarea,
body.game-ready select {
}
body.game-ready button:disabled,
body.game-ready [aria-disabled="true"] {
}

#bottomMenu.bottom-menu,
#bottomMenu.bottom-menu:hover {
  border: 1px solid rgba(132, 105, 69, 0.48) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55) !important;
}
#bottomMenu.bottom-menu > button,
#bottomMenu.bottom-menu > button:hover,
#bottomMenu.bottom-menu > button:focus,
#bottomMenu.bottom-menu > button:focus-visible,
#bottomMenu.bottom-menu > button:active {
  outline: none !important;
  transform: none !important;
}
#bottomMenu.bottom-menu > button {
  border: 1px solid #3c3042 !important;
  background: linear-gradient(180deg, #211926, #0e0b12) !important;
}
#bottomMenu.bottom-menu > button:hover,
#bottomMenu.bottom-menu > button:focus-visible {
  border: 1px solid rgba(184, 145, 79, 0.78) !important;
  background: rgba(184, 145, 79, 0.14) !important;
}

#bottomMenu.bottom-menu > button > span:not(.menu-badge) {
  display: none !important;
}
#bottomMenu.bottom-menu .menu-badge {
  display: grid !important;
}

body.game-ready,
body.game-ready * {
}
body.game-ready input,
body.game-ready textarea,
body.game-ready [contenteditable="true"] {
}
body.game-ready button:disabled,
body.game-ready [aria-disabled="true"] {
}

body.game-ready #bottomMenu.bottom-menu,
body.game-ready #bottomMenu.bottom-menu:hover {
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  transform: none !important;
}
body.game-ready #bottomMenu.bottom-menu > button {
  border: 1px solid transparent !important;
  background: rgba(255, 255, 255, 0.025) !important;
  transform: none !important;
}
body.game-ready #bottomMenu.bottom-menu > button:hover,
body.game-ready #bottomMenu.bottom-menu > button:focus-visible {
  border-color: #b69254 !important;
  background: rgba(216, 173, 90, 0.12) !important;
  transform: none !important;
}

body.game-ready #bottomMenu.bottom-menu > button:focus,
body.game-ready #bottomMenu.bottom-menu > button:focus-visible {
  border-color: transparent !important;
  background: linear-gradient(180deg, #211926, #0e0b12) !important;
  outline: none !important;
}
body.game-ready #bottomMenu.bottom-menu > button:hover {
  border-color: rgba(184, 145, 79, 0.78) !important;
  background: rgba(184, 145, 79, 0.14) !important;
}

body.creating-character {
  background: #000 !important;
  background-image: none !important;
}
body.creating-character #create {
  background: #000 !important;
  background-image: none !important;
}

body.auth-gate {
  min-height: 100vh !important;
  width: 100% !important;
  overflow: hidden !important;
  background: #07060a !important;
}
body.auth-gate > .topbar,
body.auth-gate > main {
  visibility: hidden !important;
  pointer-events: none !important;
}
body.auth-gate #authScreen {
  visibility: visible !important;
  pointer-events: auto !important;
}
.auth-screen {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: grid !important;
  place-items: center !important;
  min-height: 100vh !important;
  width: 100vw !important;
  padding: 28px !important;
  overflow: auto !important;
  isolation: isolate !important;
  background:
    radial-gradient(
      ellipse at 50% 28%,
      rgba(74, 53, 88, 0.24) 0%,
      rgba(24, 18, 31, 0.16) 34%,
      rgba(4, 4, 7, 0.78) 72%
    ),
    linear-gradient(180deg, #0b0810 0%, #050509 100%) !important;
}
.auth-screen.hidden {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}
.auth-backdrop {
  position: absolute !important;
  inset: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  z-index: -1 !important;
}
.auth-backdrop:before {
  content: "";
  position: absolute !important;
  inset: -15% !important;
  background:
    radial-gradient(
      circle at 50% 32%,
      rgba(164, 124, 65, 0.12),
      transparent 22%
    ),
    radial-gradient(circle at 18% 78%, rgba(85, 49, 96, 0.12), transparent 28%),
    radial-gradient(circle at 84% 68%, rgba(91, 52, 72, 0.1), transparent 26%);
}
.auth-backdrop:after {
  content: "";
  position: absolute !important;
  inset: 0 !important;
  opacity: 0.28 !important;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.014) 1px, transparent 1px) !important;
  background-size: 44px 44px !important;
  mask-image: linear-gradient(
    to bottom,
    transparent,
    #000 18%,
    #000 82%,
    transparent
  ) !important;
}
.auth-glow {
  position: absolute !important;
  border-radius: 50% !important;
  filter: blur(55px) !important;
  opacity: 0.28 !important;
}
.auth-glow-a {
  width: 380px !important;
  height: 380px !important;
  left: calc(50% - 520px) !important;
  top: calc(50% - 260px) !important;
  background: #6b405f !important;
}
.auth-glow-b {
  width: 330px !important;
  height: 330px !important;
  right: calc(50% - 520px) !important;
  bottom: calc(50% - 260px) !important;
  background: #75552d !important;
}
.auth-particles {
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  color: rgba(216, 173, 90, 0.14) !important;
  font-size: 28px !important;
  letter-spacing: 18px !important;
  transform: translateY(-210px) !important;
  white-space: nowrap !important;
}
.auth-shell {
  position: relative !important;
  width: min(560px, calc(100vw - 40px)) !important;
  z-index: 2 !important;
}
.auth-panel {
  width: 100% !important;
  border: 1px solid rgba(155, 124, 77, 0.46) !important;
  border-radius: 16px !important;
  background: linear-gradient(
    180deg,
    rgba(24, 18, 30, 0.97),
    rgba(11, 9, 15, 0.985)
  ) !important;
  box-shadow:
    0 30px 100px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 0 55px rgba(112, 76, 55, 0.08) !important;
  color: var(--text) !important;
}
.landing-panel {
  padding: 42px 44px 34px !important;
  text-align: center !important;
}
.landing-mark {
  width: 72px !important;
  height: 72px !important;
  margin: 0 auto 18px !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(216, 173, 90, 0.48) !important;
  border-radius: 50% !important;
  background: radial-gradient(
    circle,
    rgba(104, 75, 43, 0.42),
    rgba(24, 17, 28, 0.95) 68%
  ) !important;
  box-shadow:
    0 0 0 7px rgba(216, 173, 90, 0.035),
    0 12px 35px rgba(0, 0, 0, 0.45) !important;
  font-size: 34px !important;
}
.landing-mark.small {
  width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  font-size: 21px !important;
  flex: 0 0 auto !important;
}
.landing-panel .eyebrow,
.auth-card .eyebrow {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.22em !important;
  color: #d2aa60 !important;
  text-transform: uppercase !important;
}
.landing-panel h1 {
  margin: 8px 0 12px !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(42px, 8vw, 62px) !important;
  line-height: 0.95 !important;
  letter-spacing: 0.12em !important;
  text-indent: 0.12em !important;
  color: #f1e7d4 !important;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.55) !important;
}
.landing-lead {
  max-width: 450px !important;
  margin: 0 auto !important;
  color: #a99eae !important;
  font-size: 14px !important;
  line-height: 1.65 !important;
}
.landing-features {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  margin: 27px 0 25px !important;
}
.landing-features span {
  padding: 9px 6px !important;
  border: 1px solid rgba(90, 72, 97, 0.52) !important;
  border-radius: 8px !important;
  background: rgba(10, 8, 14, 0.62) !important;
  color: #c7bbc9 !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}
.landing-actions {
  display: grid !important;
  gap: 9px !important;
}
.landing-actions button {
  height: 44px !important;
  margin: 0 !important;
  border-radius: 9px !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}
.landing-actions .auth-primary {
  box-shadow: 0 8px 24px rgba(91, 65, 35, 0.22) !important;
}
.auth-footnote {
  margin: 19px auto 0 !important;
  max-width: 420px !important;
  color: #756d7b !important;
  font-size: 10px !important;
  line-height: 1.55 !important;
}
.auth-card {
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 28px !important;
}
.auth-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  margin-bottom: 20px !important;
}
.auth-card-head h2 {
  margin: 3px 0 0 !important;
  font-family: Georgia, serif !important;
  font-size: 24px !important;
}
.auth-card label {
  display: grid !important;
  gap: 6px !important;
  margin: 12px 0 !important;
  color: #cfc4b6 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}
.auth-card input {
  width: 100% !important;
  height: 42px !important;
  padding: 0 12px !important;
  border: 1px solid #403746 !important;
  border-radius: 8px !important;
  background: #0b0910 !important;
  color: var(--text) !important;
  outline: none !important;
}
.auth-card input:focus {
  border-color: #9a7948 !important;
  box-shadow: 0 0 0 2px rgba(154, 121, 72, 0.12) !important;
}
.auth-card .wide {
  height: 42px !important;
  margin-top: 12px !important;
}
.auth-links {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center !important;
  gap: 4px 14px !important;
  margin-top: 16px !important;
}
.auth-links button {
  padding: 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: #a996b0 !important;
  font-size: 11px !important;
}
.auth-links button:hover {
  color: #dfc17f !important;
}
.auth-hint {
  color: #817787 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}
.auth-status {
  position: fixed !important;
  left: 50% !important;
  bottom: 24px !important;
  transform: translateX(-50%) !important;
  z-index: 10001 !important;
  max-width: min(520px, calc(100vw - 32px)) !important;
  padding: 9px 13px !important;
  border: 1px solid rgba(132, 105, 69, 0.52) !important;
  border-radius: 8px !important;
  background: rgba(12, 9, 16, 0.96) !important;
  color: #d8cbbb !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55) !important;
  text-align: center !important;
  font-size: 11px !important;
}
.auth-status:empty {
  display: none !important;
}
@media (max-width: 600px) {
  .auth-screen {
    padding: 16px !important;
    place-items: center !important;
  }
  .auth-shell {
    width: min(100%, 420px) !important;
  }
  .landing-panel {
    padding: 32px 22px 26px !important;
  }
  .landing-features {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .landing-panel h1 {
    font-size: 44px !important;
  }
  .auth-card {
    padding: 24px 20px !important;
  }
}

body.game-ready,
body.game-ready * {
  cursor:
    url("/assets/cursors/move.png?v=050") 16 16,
    auto !important;
}
body.game-ready input,
body.game-ready textarea {
  cursor: text !important;
}
body.game-ready select {
  cursor: pointer !important;
}
body.game-ready button:disabled {
  cursor: not-allowed !important;
}

#worldCanvas {
  cursor:
    url("/assets/cursors/move.png?v=050") 16 16,
    auto !important;
}
#worldCanvas[data-cursor-action="attack"],
#worldCanvas[data-cursor-action="mob"] {
  cursor:
    url("/assets/cursors/attack.png?v=050") 5 5,
    auto !important;
}
#worldCanvas[data-cursor-action="target"],
#worldCanvas[data-cursor-action="player"] {
  cursor:
    url("/assets/cursors/target.png?v=050") 4 4,
    auto !important;
}
#worldCanvas[data-cursor-action="talk"],
#worldCanvas[data-cursor-action="npc"] {
  cursor:
    url("/assets/cursors/talk.png?v=050") 16 16,
    auto !important;
}
#worldCanvas[data-cursor-action="gate"] {
  cursor:
    url("/assets/cursors/gate.png?v=050") 16 16,
    auto !important;
}
#worldCanvas[data-cursor-action="mine"],
#worldCanvas[data-cursor-action="ore"] {
  cursor:
    url("/assets/cursors/mine.png?v=050") 6 24,
    auto !important;
}
#worldCanvas[data-cursor-action="loot"] {
  cursor:
    url("/assets/cursors/loot.png?v=050") 16 16,
    auto !important;
}

#mapChatChannel {
  width: auto !important;
  min-width: 72px !important;
  height: 26px !important;
  padding: 3px 22px 3px 8px !important;
  border: 1px solid #4a4050 !important;
  border-radius: 6px !important;
  background: #100d15 !important;
  color: #eee6d8 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  outline: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035) !important;
}
#mapChatChannel:hover,
#mapChatChannel:focus {
  border-color: #b69254 !important;
}
.map-chat-head {
  gap: 8px !important;
}
.map-chat-head > span:first-child {
  white-space: nowrap;
}
.map-chat-head #chatZone {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-line {
  padding: 3px 4px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.025) !important;
}
.chat-line.chat-whisper {
  color: #d7a7ff !important;
  cursor: pointer !important;
}
.chat-line.chat-whisper b {
  color: #dca9ff !important;
}
.chat-line.chat-party {
  color: #8fd6ff !important;
}
.chat-line.chat-party b {
  color: #78c8f0 !important;
}
.chat-line.chat-whisper:hover {
  background: rgba(180, 110, 240, 0.09) !important;
}

.bag-card .bag-list {
  display: grid !important;
  grid-template-columns: repeat(6, 64px) !important;
  grid-auto-rows: 64px !important;
  gap: 7px !important;
  align-items: start !important;
  justify-content: center !important;
  width: max-content !important;
  padding: 18px !important;
}
.bag-card .bag-slot {
  width: 64px !important;
  height: 64px !important;
  min-height: 64px !important;
  display: grid !important;
  place-items: center !important;
  position: relative !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.bag-card .bag-slot .bag-icon {
  font-size: 30px !important;
  line-height: 1 !important;
  z-index: 1 !important;
}
.bag-card .bag-slot .bag-count {
  position: absolute !important;
  right: 3px !important;
  top: 2px !important;
  bottom: auto !important;
  z-index: 8 !important;
  min-width: 15px !important;
  padding: 0 3px !important;
  text-align: right !important;
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 900 !important;
  color: #fff !important;
  text-shadow:
    0 1px 3px #000,
    0 0 2px #000 !important;
  pointer-events: none !important;
}
.bag-card .bag-slot .bag-cooldown {
  position: absolute !important;
  inset: 0 !important;
  z-index: 6 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  color: #fff !important;
  background: rgba(0, 0, 0, 0.52) !important;
  border-radius: 8px !important;
  text-shadow: 0 1px 4px #000 !important;
  pointer-events: none !important;
}

.hotbar-row .skill.hotbar-item {
  position: relative !important;
  overflow: hidden !important;
}
.hotbar-row .skill.hotbar-item .shade {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 4 !important;
  background: rgba(0, 0, 0, 0.62) !important;
  pointer-events: none !important;
}
.hotbar-row .skill.hotbar-item .num {
  z-index: 7 !important;
  position: absolute !important;
  inset: 0 !important;
  display: grid !important;
  place-items: center !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  color: #fff !important;
  text-shadow: 0 1px 4px #000 !important;
  pointer-events: none !important;
}
.hotbar-row .skill.hotbar-item .hotbar-qty {
  position: absolute !important;
  right: 3px !important;
  top: 2px !important;
  bottom: auto !important;
  z-index: 8 !important;
  font-size: 10px !important;
  line-height: 13px !important;
  font-weight: 900 !important;
  color: #fff !important;
  text-shadow: 0 1px 3px #000 !important;
  pointer-events: none !important;
}

body.game-ready #bottomMenu.bottom-menu {
  background: linear-gradient(180deg, #15101bee, #08070cf5) !important;
  border: 1px solid #4b3a4d !important;
  border-bottom: 0 !important;
  box-shadow: 0 -14px 40px #000b !important;
}
body.game-ready #bottomMenu.bottom-menu > button {
  border: 1px solid #3c3042 !important;
  background: linear-gradient(180deg, #211926, #0e0b12) !important;
}
body.game-ready #bottomMenu.bottom-menu > button:hover,
body.game-ready #bottomMenu.bottom-menu > button:focus-visible {
  border-color: #b69254 !important;
  background: rgba(184, 145, 79, 0.14) !important;
}

body.game-ready:not(.game-cursors-ready),
body.game-ready:not(.game-cursors-ready) * {
  cursor: none !important;
}

body.game-ready,
body.game-ready * {
  cursor:
    url("/assets/cursors/move.png?v=050") 8 8,
    auto !important;
}
body.game-ready button,
body.game-ready a,
body.game-ready [role="button"],
body.game-ready select {
  cursor:
    url("/assets/cursors/target.png?v=050") 8 8,
    pointer !important;
}
body.game-ready input,
body.game-ready textarea {
  cursor: text !important;
}
body.game-ready button:disabled {
  cursor: not-allowed !important;
}
body.game-ready #worldCanvas {
  cursor:
    url("/assets/cursors/move.png?v=050") 8 8,
    auto !important;
}
body.game-ready #worldCanvas[data-cursor-action="attack"],
body.game-ready #worldCanvas[data-cursor-action="mob"] {
  cursor:
    url("/assets/cursors/attack.png?v=050") 5 5,
    auto !important;
}
body.game-ready #worldCanvas[data-cursor-action="target"],
body.game-ready #worldCanvas[data-cursor-action="player"] {
  cursor:
    url("/assets/cursors/target.png?v=050") 4 4,
    auto !important;
}
body.game-ready #worldCanvas[data-cursor-action="talk"],
body.game-ready #worldCanvas[data-cursor-action="npc"] {
  cursor:
    url("/assets/cursors/talk.png?v=050") 8 8,
    auto !important;
}
body.game-ready #worldCanvas[data-cursor-action="gate"] {
  cursor:
    url("/assets/cursors/gate.png?v=050") 8 8,
    auto !important;
}
body.game-ready #worldCanvas[data-cursor-action="mine"],
body.game-ready #worldCanvas[data-cursor-action="ore"] {
  cursor:
    url("/assets/cursors/mine.png?v=050") 6 24,
    auto !important;
}
body.game-ready #worldCanvas[data-cursor-action="loot"] {
  cursor:
    url("/assets/cursors/loot.png?v=050") 8 8,
    auto !important;
}

.bag-card .bag-slot {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
}
.bag-card .bag-slot .bag-icon {
  position: relative !important;
  z-index: 1 !important;
  line-height: 1 !important;
}
.bag-card .bag-slot .bag-count {
  position: absolute !important;
  right: 3px !important;
  top: 2px !important;
  bottom: auto !important;
  z-index: 8 !important;
  pointer-events: none !important;
  font-weight: 900 !important;
  font-size: 11px !important;
  line-height: 15px !important;
  color: #fff !important;
  text-shadow:
    0 1px 3px #000,
    0 0 2px #000 !important;
}
.bag-card .bag-slot .bag-cooldown {
  position: absolute !important;
  inset: 0 !important;
  z-index: 6 !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none !important;
  background: rgba(0, 0, 0, 0.52) !important;
  color: #fff !important;
  font-weight: 900 !important;
}
.hotbar-row .skill.hotbar-item {
  position: relative !important;
  overflow: hidden !important;
}
.hotbar-row .skill.hotbar-item .shade {
  position: absolute !important;
  inset: auto 0 0 !important;
  z-index: 4 !important;
  pointer-events: none !important;
  background: rgba(0, 0, 0, 0.62) !important;
}
.hotbar-row .skill.hotbar-item .num {
  position: absolute !important;
  inset: 0 !important;
  z-index: 7 !important;
  display: grid !important;
  place-items: center !important;
  pointer-events: none !important;
  font-weight: 900 !important;
  color: #fff !important;
  text-shadow: 0 1px 4px #000 !important;
}
.hotbar-row .skill.hotbar-item .hotbar-qty {
  position: absolute !important;
  right: 3px !important;
  top: 2px !important;
  bottom: auto !important;
  z-index: 8 !important;
  pointer-events: none !important;
  font-weight: 900 !important;
  color: #fff !important;
  text-shadow: 0 1px 3px #000 !important;
}

body.game-ready .quest-helper {
  width: 270px !important;
  max-width: 270px !important;
  padding: 9px 10px !important;
}
body.game-ready .qh-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 5px !important;
  color: #d7b875 !important;
  font-size: 9px !important;
  letter-spacing: 0.12em !important;
}
body.game-ready .qh-head b {
  display: grid !important;
  place-items: center !important;
  min-width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #251d17 !important;
  border: 1px solid #5c4933 !important;
  color: #e6cc91 !important;
  font-size: 9px !important;
}
body.game-ready .qh-entry {
  padding: 7px 7px 6px !important;
  margin: 4px 0 !important;
  border: 1px solid #2c2531 !important;
  border-radius: 6px !important;
  background: #100d14e8 !important;
}
body.game-ready .qh-entry.active {
  border-color: #5c4934 !important;
  background: #171219f0 !important;
}
body.game-ready .qh-entry .qh-title {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  gap: 5px !important;
  align-items: center !important;
}
body.game-ready .qh-entry .qh-title > b {
  font-size: 10px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  color: #e5d4b5 !important;
}
body.game-ready .qh-entry .qh-title em {
  font-style: normal !important;
  font-size: 8px !important;
  color: #b99a62 !important;
  white-space: nowrap !important;
}
body.game-ready .qh-entry .qh-text {
  margin-top: 3px !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
  color: #b8adb8 !important;
}
body.game-ready .qh-entry .qh-route {
  margin-top: 4px !important;
  font-size: 8px !important;
  color: #7f7581 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 5px !important;
}
body.game-ready .qh-entry .quest-route-toggle {
  font-size: 8px !important;
  padding: 2px 5px !important;
  line-height: 1 !important;
}

body.game-ready .modal-card .modal-head > button {
  pointer-events: auto !important;
  z-index: 100 !important;
  cursor:
    url("/assets/cursors/target.png?v=050") 8 8,
    pointer !important;
}

.settings-sections {
  display: grid;
  gap: 12px;
}
.settings-section {
  padding: 13px;
  border: 1px solid #3b3042;
  border-radius: 10px;
  background: linear-gradient(145deg, #15101a, #0c0a0f);
  box-shadow: inset 0 1px #fff1;
}
.settings-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid #2f2635;
}
.settings-section-head h3 {
  margin: 0 0 2px;
  font-family: Georgia, serif;
  color: #e5d4b3;
}
.settings-section-icon {
  font-size: 18px;
  opacity: 0.8;
}
.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #251e2a;
  cursor: pointer;
}
.settings-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.settings-row b {
  display: block;
  color: #d9c7a8;
  font-size: 12px;
}
.settings-row .muted {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.35;
}
.settings-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 260px;
}
.settings-control input[type="range"] {
  width: 220px;
}
.settings-row > input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #a88454;
}
.settings-row output {
  min-width: 34px;
  text-align: right;
  color: #d9c18a;
  font-variant-numeric: tabular-nums;
}
.settings-status {
  margin-top: 8px;
  padding: 7px 9px;
  border: 1px solid #493b2b;
  border-radius: 7px;
  color: #d8c49c;
  background: #0b090e;
  font-size: 10px;
}
.dungeon-active-hero {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.dungeon-active-boss-art,
.dungeon-active-boss-placeholder {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  border: 1px solid #6a4d43;
  background: #0b090d;
  object-fit: cover;
  image-rendering: auto;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: inset 0 0 18px #0009;
}
.dungeon-active-main {
  min-width: 0;
}
.dungeon-active-boss-name {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 5px;
  font-size: 10px;
  color: #a99b88;
}
.dungeon-active-boss-name b {
  color: #d9b86f;
  font-size: 12px;
}
@media (max-width: 720px) {
  .settings-control {
    min-width: 0;
  }
  .settings-control input[type="range"] {
    width: min(180px, 42vw);
  }
  .dungeon-active-hero {
    grid-template-columns: 58px minmax(0, 1fr);
  }
  .dungeon-active-boss-art,
  .dungeon-active-boss-placeholder {
    width: 54px;
    height: 54px;
  }
  .dungeon-active-hero > .actions-inline {
    grid-column: 1/-1;
    justify-content: flex-end;
  }
}

.hotbar-row::before,
.hotbar-row:before {
  content: none !important;
  display: none !important;
}

body.game-ready .hotbar-row::before,
body.game-ready .hotbar-row:before {
  content: none !important;
  display: none !important;
  background: none !important;
}

#storyModal > .modal-card.dialogue:empty,
#storyModal > .modal-card.dialogue:empty:after {
  display: none !important;
  content: none !important;
}

.cast-bar {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  width: min(320px, 52%);
  height: 22px;
  border: 1px solid rgba(117, 95, 68, 0.7);
  border-radius: 6px;
  background: rgba(10, 8, 14, 0.82);
  overflow: hidden;
  display: none;
  pointer-events: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.cast-bar .cast-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #8a5a1e, #e0a43a);
}
.cast-bar .cast-label {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
  font:
    600 12px/22px system-ui,
    sans-serif;
  color: #f6ead2;
  text-shadow: 0 1px 2px #000;
}
#viewportGuard {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  color: #eee6d8;
  padding: 24px;
  text-align: center;
  cursor: default;
  user-select: none;
}
#viewportGuard[hidden] {
  display: none;
}
html.viewport-too-small,
html.viewport-too-small body {
  overflow: hidden !important;
}
.viewport-guard-card {
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.viewport-guard-icon {
  font-size: 44px;
  line-height: 1;
}
.viewport-guard-card h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #d8ad5a;
}
.viewport-guard-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #cfc6d6;
}
.viewport-guard-card .viewport-guard-size {
  font-weight: 700;
  color: #eee6d8;
}
.viewport-guard-card .viewport-guard-hint {
  font-size: 13px;
  color: #948b9b;
}

/* The minimap forces itself visible elsewhere; without this it escapes the hidden <main> and shows as a lone ring on the login / loading / character-creation screens. */
body.auth-gate .viewport-wrap canvas#minimap,
body.auth-gate .viewport-wrap .minimap-tools,
body.creating-character .viewport-wrap canvas#minimap,
body.creating-character .viewport-wrap .minimap-tools {
  visibility: hidden !important;
  display: none !important;
  opacity: 0 !important;
}
