@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/lora-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lora";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("./fonts/lora-italic-latin.woff2") format("woff2");
}
:root {
  color-scheme: dark;
  --bg: #0c111b;
  --panel: #121621;
  --line: #444155;
  --text: #eeedf4;
  --muted: #afb1c3;
  --dim: #888ba2;
  --gold: #e8c780;
  --green: #91d7b2;
  --purple: #ba9af5;
  --serif: "Lora", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  font: 16px var(--sans);
  background: var(--bg);
  color: var(--text);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
label,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
label:focus-within {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}
h1 {
  font-size: 1.8rem;
  line-height: 1.4;
}
h2 {
  font-size: 1.25rem;
  line-height: 1.5;
}
h3 {
  font-size: 1.1rem;
  line-height: 1.5;
}
p {
  line-height: 1.7;
}
strong {
  font-weight: 600;
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  vertical-align: middle;
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: var(--gold);
  color: var(--bg);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
#app {
  height: 100dvh;
  isolation: isolate;
}
.world-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: #15212a;
}
#world-canvas {
  width: 100%;
  height: 100%;
  display: block;
  image-rendering: pixelated;
}
.world-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 52% 55%,
      transparent 25%,
      #050b1844 70%,
      #050918b3 100%
    ),
    linear-gradient(#06091640, transparent 30%, transparent 75%, #06091688);
}
body:not([data-view="adventure"]) .world-layer {
  filter: blur(3px) brightness(0.55);
}
.workspace {
  height: 100%;
  position: relative;
}
.topbar {
  position: fixed;
  inset: 18px 22px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  z-index: 50;
  min-height: 62px;
  padding: 8px 14px;
  border: 1px solid #74638d66;
  background: linear-gradient(100deg, #0d111deb, #171424eb);
  box-shadow: 0 8px 35px #02040a55;
  backdrop-filter: blur(12px);
  border-radius: 4px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.03rem;
  color: #e9dfc6;
}
.brand i {
  color: var(--gold);
  font-size: 1rem;
}
.brand-mark {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: #d2b3ff;
  background: radial-gradient(#69459544, #2c234033);
  border: 1px solid #8e71b2;
  border-radius: 3px;
  transform: rotate(-5deg);
}
.brand-mark .icon {
  width: 24px;
  height: 24px;
}
.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 0.66rem;
  letter-spacing: 0.09rem;
  color: #9d96b0;
  margin-top: 4px;
}
.world-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.nav-item {
  position: relative;
  min-height: 45px;
  padding: 5px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-size: 0.75rem;
  color: #b6b5c6;
  white-space: nowrap;
}
.nav-item > .icon {
  width: 21px;
  height: 21px;
  color: #a899c1;
  transition: transform 0.15s;
}
.nav-item:hover {
  background: #9b7acf14;
  border-color: #a38bbb44;
  color: #e5d9ff;
}
.nav-item:hover > .icon {
  transform: translateY(-2px);
}
.nav-item.active {
  background: #9b7acf15;
  border-color: #9f81cc66;
  color: #e0d2ff;
}
.nav-item.active:after {
  content: "";
  position: absolute;
  bottom: -9px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: #b396e2;
  box-shadow: 0 0 9px #a27ce27a;
}
.nav-count {
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 0.7rem;
  line-height: 17px;
  min-width: 17px;
  text-align: center;
  color: #fff;
  background: #7853a5;
  border: 1px solid #ba94e4;
  border-radius: 3px;
  padding: 0 3px;
}
.talent-count {
  background: #ba9a5d;
  border-color: #e5c482;
  color: #151522;
}
.resources {
  display: flex;
  align-items: center;
  gap: 15px;
  border-left: 1px solid #5b496a66;
  padding-left: 17px;
  flex-shrink: 0;
}
.resource {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #d8afbe;
  font-size: 0.875rem;
}
.resource .icon {
  width: 17px;
  height: 17px;
}
.resource.gold {
  color: var(--gold);
}
.resource strong {
  font-variant-numeric: tabular-nums;
}
.settings-shortcut {
  display: grid;
  place-items: center;
  width: 28px;
  height: 34px;
  color: #aba3bd;
}
.settings-shortcut:hover {
  color: #dbc7ff;
}
#main {
  position: fixed;
  top: 104px;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1260px, calc(100% - 64px));
  padding: 28px 30px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #79638b #171521;
  border: 1px solid #77608f88;
  background: linear-gradient(120deg, #141522f7, #10151ef7);
  box-shadow: 0 18px 80px #03040c99;
  border-radius: 6px;
  backdrop-filter: blur(18px);
  outline: none;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid #65507355;
  padding-bottom: 23px;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12rem;
  color: #b8a0ce;
  line-height: 1.6;
}
.page-heading h1 {
  margin: 7px 0 8px;
  color: #f1e6cf;
}
.page-heading p:last-child {
  color: var(--muted);
  font-size: 1rem;
}
.close-panel {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  border: 1px solid #7c62866b;
  border-radius: 3px;
  flex-shrink: 0;
  color: #c3b2d1;
}
.close-panel:hover {
  background: #9473ad22;
}
.close-panel > .icon {
  width: 18px;
  height: 18px;
}
.footer {
  position: fixed;
  inset: auto 24px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
  color: #c1bed0;
  text-shadow: 0 1px 4px #050611;
  pointer-events: none;
}
.footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.footer .icon {
  width: 12px;
  height: 12px;
  color: #b9c6a4;
}
.keyboard-hint {
  font-size: 0.75rem;
  letter-spacing: 0.02rem;
  color: #a6a4b6;
}
.keyboard-hint i {
  font-style: normal;
  color: #655e77;
  margin: 0 5px;
}
.breadcrumb {
  color: #a59bb7;
  font-size: 0.75rem;
}
body[data-view="adventure"] #main {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none;
  padding: 0;
  overflow: visible;
  border: 0;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  pointer-events: none;
}
body[data-view="adventure"] .page-heading {
  display: none;
}
body[data-view="adventure"] .breadcrumb {
  display: none;
}
.battle-field {
  height: 100%;
  pointer-events: none;
}
.hud {
  background: linear-gradient(125deg, #111521ed, #12101eed);
  border: 1px solid #77608d70;
  border-top-color: #aa8ac39c;
  border-radius: 3px;
  box-shadow:
    0 6px 25px #04040d66,
    inset 0 0 20px #9773be05;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
.hud-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  color: #c2afd9;
  font-weight: 650;
  line-height: 1.6;
}
.hud-heading > .icon {
  width: 13px;
  height: 13px;
  color: #9d82bc;
}
.location-hud {
  position: fixed;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: 440px;
  pointer-events: auto;
  text-shadow: 0 2px 7px #03040c;
}
.location-hud > .eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.16rem;
  color: #d5bfdc;
}
.location-hud > button {
  padding: 2px 12px 5px;
  display: block;
  margin: auto;
}
.location-hud h1 {
  font-size: 1.65rem;
  white-space: nowrap;
  color: #f0e3ce;
}
.location-hud > p:not(.eyebrow) {
  font-size: 0.75rem;
  color: #d0c8d2;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: #b2dac6;
  margin-top: 7px;
}
.live-badge > i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9ce8be;
  box-shadow: 0 0 7px #9ce8be66;
}
.live-badge.is-paused {
  color: var(--gold);
}
.live-badge.is-paused > i {
  background: var(--gold);
}
.target-hud {
  position: fixed;
  top: 218px;
  left: 50%;
  transform: translateX(-50%);
  width: 290px;
  padding: 10px 12px;
}
.target-hud > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.8rem;
  margin-bottom: 7px;
}
.target-hud > div:first-child > span {
  font-size: 0.7rem;
  color: #c4b3c8;
}
.fighter-health {
  position: relative;
  height: 7px;
  border: 1px solid #2e2843;
  background: #11131dd9;
  overflow: hidden;
}
.fighter-health > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5aa782, #a2dab4);
  transition: width 0.2s;
}
.enemy-health {
  height: 17px;
  border-color: #4e364e;
}
.enemy-health > i {
  background: linear-gradient(90deg, #994760, #cb627e);
}
.enemy-health > span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.67rem;
  font-weight: 600;
  color: #f9e8ec;
  text-shadow: 0 1px 3px #421b2d;
}
.actor-nameplate {
  position: fixed;
  transform: translateX(-50%);
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 2px 3px #02040b,
    1px 0 2px #02040b;
  font-size: 0.875rem;
  color: #f1e9f6;
  pointer-events: none;
}
.actor-nameplate > div:first-of-type {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.actor-title {
  display: block;
  color: #cfb2f0;
  font-size: 0.75rem;
  margin-bottom: 3px;
}
.hero-nameplate .fighter-health {
  height: 5px;
  width: 88px;
  margin: 5px auto 0;
  border-color: #c6b9d14a;
}
.hero-nameplate #hero-level {
  font-size: 0.75rem;
  color: #dbd0e6;
}
.enemy-nameplate strong {
  font-size: 0.75rem;
}
.enemy-mini-health {
  width: 80px;
  height: 4px;
  background: #291e2a;
  margin: 6px auto 0;
  border: 1px solid #b98b9d55;
}
.enemy-mini-health > i {
  display: block;
  height: 100%;
  background: #ba5f79;
  transition: width 0.2s;
}
.enemy-nameplate.defeated {
  opacity: 0;
}
.battle-message {
  position: fixed;
  left: 50%;
  top: 34%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.02rem;
  color: #e6d4f1;
  text-shadow: 0 2px 6px #03040c;
  white-space: nowrap;
}
.player-hud {
  position: fixed;
  top: 105px;
  left: 22px;
  width: 251px;
  padding: 15px;
}
.character-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 17px 0;
}
.portrait {
  width: 66px;
  height: 69px;
  border: 1px solid #9978b866;
  border-radius: 3px;
  background: radial-gradient(#62507c55, #1d1d3122);
  flex-shrink: 0;
  overflow: hidden;
}
.cat-art {
  display: block;
  width: 100%;
  height: 100%;
}
.sprite-art {
  background-image: url("./assets/cat-heroes.png");
  background-size: 400% 500%;
  background-position: 0 var(--sprite-row);
  background-repeat: no-repeat;
  image-rendering: pixelated;
}
.character-summary h2 {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.5;
}
.character-summary p {
  font-size: 0.75rem;
  color: #b4acc4;
  margin: 3px 0 6px;
}
.class-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  color: #cfb7ef;
  border: 1px solid #9c79be55;
  padding: 2px 6px;
  line-height: 1.5;
  border-radius: 2px;
  background: #8c65bd10;
}
.xp-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.65rem;
  color: #cec1de;
}
.xp-label > span {
  font-size: 0.6rem;
  font-variant-numeric: tabular-nums;
  color: #ae9fbe;
}
.xp-track {
  height: 5px;
  background: #332743;
  border: 1px solid #63516f;
  margin-top: 7px;
  overflow: hidden;
}
.xp-track > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #9969cd, #c3a4e5);
  transition: width 0.25s;
}
.stat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #7a65842b;
  padding-top: 14px;
  margin-top: 17px;
}
.stat-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.8rem;
}
.stat-list span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #bdb6ca;
}
.stat-list .icon {
  width: 14px;
  height: 14px;
  color: #a38ab8;
}
.stat-list > div:first-child .icon {
  color: #d494a8;
}
.stat-list strong {
  font-size: 0.8rem;
  font-weight: 500;
  color: #e0d8ea;
  font-variant-numeric: tabular-nums;
}
.talents-link {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  border-top: 1px solid #7a658444;
  padding: 13px 0 0;
  margin-top: 15px;
  font-size: 0.8rem;
  color: #d6b7f8;
  text-align: left;
}
.talents-link .icon {
  width: 16px;
  height: 16px;
}
.talents-link > b {
  margin-left: auto;
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  border: 1px solid #c6a4eb77;
  background: #9d6fce22;
  border-radius: 3px;
  font-size: 0.75rem;
}
.talents-link:hover {
  color: #edd5ff;
}
.active-effects {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.active-effects:empty {
  display: none;
}
.active-effects:not(:empty) {
  border-top: 1px solid #7a65842b;
  padding-top: 11px;
  margin-top: 12px;
}
.active-effects > span {
  font-size: 0.65rem;
  border: 1px solid #83709a44;
  padding: 3px 5px;
  border-radius: 3px;
  color: #c2bbdf;
  display: flex;
  align-items: center;
  gap: 4px;
}
.active-effects .icon {
  width: 11px;
  height: 11px;
}
.quest-hud {
  position: fixed;
  top: 105px;
  right: 22px;
  width: 253px;
  padding: 15px;
}
.quest-hud .hud-heading {
  font-size: 0.62rem;
}
.quest-card {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 21px;
  border: 1px solid #6f547c55;
  border-radius: 4px;
  background: #171b29;
}
.quest-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 40px;
  flex-shrink: 0;
  color: #cfb6e4;
  border: 1px solid #80628f66;
  border-radius: 3px;
  background: #9870ba12;
}
.quest-icon > .icon {
  width: 21px;
  height: 21px;
}
.quest-body {
  flex: 1;
  min-width: 0;
}
.quest-card h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 550;
  line-height: 1.5;
  color: #e8ddf2;
}
.quest-card p {
  font-size: 0.875rem;
  color: #a6a4ba;
  margin-top: 5px;
}
.quest-track {
  height: 4px;
  background: #373048;
  margin-top: 11px;
  overflow: hidden;
}
.quest-track > i {
  display: block;
  height: 100%;
  background: #a18ac6;
  transition: width 0.25s;
}
.quest-body > small {
  display: block;
  font-size: 0.75rem;
  color: #a69ab9;
  margin-top: 5px;
}
.quest-reward {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.quest-reward > span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--gold);
  font-size: 0.8rem;
}
.quest-reward .icon {
  width: 14px;
  height: 14px;
}
.quest-reward > button {
  font-size: 0.875rem;
}
.quest-card.claimed {
  opacity: 0.6;
}
.quest-reward .claimed-label {
  color: var(--green);
}
.quest-hud .quest-card {
  flex-wrap: wrap;
  gap: 8px;
  padding: 15px 0;
  border: 0;
  border-bottom: 1px solid #74608144;
  background: none;
  border-radius: 0;
}
.quest-hud .quest-icon {
  width: 24px;
  height: 28px;
  background: none;
  border: 0;
  color: #bfa5d4;
}
.quest-hud .quest-icon > .icon {
  width: 18px;
  height: 18px;
}
.quest-hud .quest-card h3 {
  font-size: 0.8rem;
}
.quest-hud .quest-card p {
  font-size: 0.75rem;
  line-height: 1.6;
}
.quest-hud .quest-body > small {
  font-size: 0.65rem;
}
.quest-hud .quest-reward {
  margin-left: 32px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: calc(100% - 32px);
}
.quest-hud .quest-reward > span {
  font-size: 0.75rem;
}
.quest-hud .quest-reward > button {
  font-size: 0.75rem;
  min-height: 27px;
  padding: 4px 8px;
}
.text-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px 0 0;
  color: #c1afd2;
  font-size: 0.8rem;
}
.text-button:hover {
  color: #e2c5ff;
}
.text-button > .icon {
  width: 15px;
  height: 15px;
}
.all-done {
  font-size: 0.875rem;
  color: var(--green);
  line-height: 1.7;
  padding: 20px 0;
}
.all-done .icon {
  width: 16px;
  height: 16px;
  margin-right: 7px;
}
.damage-hud {
  position: fixed;
  left: 22px;
  bottom: 82px;
  width: 251px;
  padding: 15px;
}
.dps-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 16px 0;
}
.dps-line > strong {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: #e8d1a1;
  font-variant-numeric: tabular-nums;
}
.dps-line > span {
  font-size: 0.65rem;
  letter-spacing: 0.1rem;
  color: #a89cb7;
}
.damage-row {
  margin-top: 13px;
}
.damage-row > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.75rem;
  color: #c5bfd3;
}
.damage-row strong {
  font-size: 0.75rem;
  font-weight: 500;
  color: #e3d2b3;
}
.damage-row > i {
  display: block;
  height: 3px;
  background: #312b3e;
  margin-top: 6px;
  overflow: hidden;
}
.damage-row b {
  display: block;
  height: 100%;
  background: #bda479;
}
.damage-row.magic b {
  background: #ac8bdb;
}
.damage-row.summon b {
  background: #82bdb7;
}
.damage-row.curse b {
  background: #c68bbf;
}
.damage-footnote {
  font-size: 0.65rem;
  color: #8f84a1;
  margin-top: 15px;
  border-top: 1px solid #76618033;
  padding-top: 12px;
}
.damage-empty {
  font-size: 0.75rem;
  color: #a49ab4;
  padding: 10px 0;
  line-height: 1.7;
}
.journal-hud {
  position: fixed;
  right: 22px;
  bottom: 282px;
  width: 253px;
  padding: 15px;
}
.journal {
  height: 164px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #665077 transparent;
  margin-top: 14px;
  padding-right: 6px;
}
.journal-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 12px;
}
.journal-glyph {
  margin-top: 1px;
  flex-shrink: 0;
  color: #a78bbb;
}
.journal-glyph > .icon {
  width: 12px;
  height: 12px;
}
.journal-entry p {
  font-size: 0.75rem;
  color: #b7b0c5;
  line-height: 1.7;
}
.journal-entry small {
  display: block;
  font-size: 0.65rem;
  color: #7e7590;
  margin-top: 3px;
}
.journal-entry.magic p {
  color: #c4a7e0;
}
.journal-entry.loot .journal-glyph {
  color: #d6b57b;
}
.journal-entry.danger p {
  color: #da9ea5;
}
.journal-entry.rare p {
  color: #a4c4e6;
}
.journal-entry.epic p {
  color: #d4a9ee;
}
.journal-empty {
  font-size: 0.75rem;
  color: #aaa0b8;
  text-align: center;
  padding: 20px 0;
}
.journal-empty > .icon {
  width: 26px;
  height: 26px;
  opacity: 0.6;
  margin-bottom: 10px;
}
.journal-empty p {
  font-size: 0.75rem;
}
.expedition-hud {
  position: fixed;
  right: 22px;
  bottom: 82px;
  width: 253px;
  padding: 15px;
}
.expedition-hud .hud-heading {
  font-size: 0.62rem;
  gap: 8px;
}
.encounter-steps {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 17px 0;
}
.encounter-steps > i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #6c587d;
  border-radius: 50%;
  background: #241e32;
}
.encounter-steps > i > span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #736380;
}
.encounter-steps > i.current {
  border-color: #c4a8e4;
  box-shadow: 0 0 9px #bc98e433;
}
.encounter-steps > i.current > span {
  background: #d8baf6;
}
.encounter-steps > i.done {
  border-color: #9c82bb;
  background: #8d70ac;
  color: #171323;
}
.encounter-steps > i > .icon {
  width: 12px;
  height: 12px;
}
.encounter-steps > b {
  height: 1px;
  background: #685177;
  flex: 1;
}
.hunt-totals {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.7rem;
  color: #aaa0b7;
}
.hunt-totals > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.hunt-totals .icon {
  width: 12px;
  height: 12px;
  color: #baa2c8;
}
.hunt-totals > span:last-child .icon,
.hunt-totals > span:last-child strong {
  color: #d6ba80;
}
.expedition-hud .text-button {
  border-top: 1px solid #76618044;
  margin-top: 14px;
  padding-top: 12px;
}
.combat-controls {
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  width: min(580px, calc(100% - 598px));
  pointer-events: auto;
}
.battle-state {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #d6c7e8;
  font-size: 0.65rem;
  font-weight: 550;
  letter-spacing: 0.12rem;
  margin-bottom: 10px;
  text-shadow: 0 1px 4px #060711;
}
.battle-state > .icon {
  width: 13px;
  height: 13px;
}
.hotbar {
  display: flex;
  align-items: stretch;
  gap: 9px;
  padding: 8px;
  background: #10121fef;
}
.ability {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 10px;
  flex: 1;
  min-width: 0;
  min-height: 65px;
  padding: 10px;
  border: 1px solid #8161a577;
  background: linear-gradient(120deg, #5a3b7c33, #29203c55);
  border-radius: 3px;
  overflow: hidden;
}
.ability:hover:not(:disabled) {
  border-color: #d0a4ff;
  box-shadow: inset 0 0 20px #a071cb22;
}
.ability:disabled {
  opacity: 0.8;
}
.ability-icon {
  width: 35px;
  height: 39px;
  display: grid;
  place-items: center;
  border: 1px solid #ae84d555;
  background: linear-gradient(135deg, #7c4a9f66, #26213c);
  border-radius: 3px;
  color: #dec2ff;
  flex-shrink: 0;
}
.ability-icon > .icon {
  width: 25px;
  height: 25px;
}
.ability > span:nth-child(2) {
  z-index: 1;
}
.ability strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 550;
  color: #e0d1ef;
  line-height: 1.5;
}
.ability small {
  display: block;
  margin-top: 4px;
  font-size: 0.7rem;
  color: #aba1bd;
  line-height: 1.5;
}
.ability kbd {
  position: absolute;
  top: 5px;
  right: 6px;
  font: 10px var(--sans);
  color: #bba6cd;
  z-index: 2;
}
.potion-ability {
  background: linear-gradient(120deg, #604c3333, #352a2544);
  border-color: #9f825c77;
}
.potion-ability .ability-icon {
  background: linear-gradient(135deg, #80574b66, #32262e);
  border-color: #bca17b55;
  color: #e4b8a2;
}
.potion-ability strong {
  color: #e5ccb2;
}
.cooldown-cover {
  position: absolute;
  inset: 0 auto 0 0;
  background: #05081366;
  z-index: -1;
  transition: width 0.2s;
}
.pause-button {
  width: 42px;
  border: 1px solid #7f6b9766;
  background: #39304444;
  border-radius: 3px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #c4b2d6;
}
.pause-button:hover {
  border-color: #b392d7;
  background: #604a7344;
}
.pause-button > .icon {
  width: 19px;
  height: 19px;
}
.auto-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 0.7rem;
  color: #baadc7;
  margin: 10px auto 0;
  text-shadow: 0 1px 4px #080810;
}
.auto-toggle > span {
  width: 24px;
  height: 13px;
  border-radius: 12px;
  background: #4d435e;
  position: relative;
  flex-shrink: 0;
}
.auto-toggle > span:after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aa9bbf;
}
.auto-toggle.enabled > span {
  background: #9671b3;
}
.auto-toggle.enabled > span:after {
  left: 14px;
  background: #e5d4ef;
}
.primary-button,
.subtle-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 3px;
  font-size: 0.875rem;
  line-height: 1.5;
  border: 1px solid #8c71a6;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.primary-button {
  background: linear-gradient(#b599d0, #9c7cb9);
  border-color: #d1b6e6;
  color: #171220;
  font-weight: 650;
  box-shadow: inset 0 1px #f4dfff22;
}
.primary-button:hover:not(:disabled) {
  background: linear-gradient(#c8ade2, #b08ace);
  border-color: #edd7ff;
}
.subtle-button {
  color: #d2c5df;
  background: #8b6aa510;
  border-color: #85649b66;
}
.subtle-button:hover:not(:disabled) {
  background: #9f7ab722;
  border-color: #b797cd;
}
.danger-button {
  background: #b0637715;
  border-color: #b57e8a66;
  color: #e4b0bb;
}
.danger-button:hover {
  background: #b0637733;
}
.primary-button > .icon,
.subtle-button > .icon,
.danger-button > .icon {
  width: 17px;
  height: 17px;
}
.return-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 18px 0 0;
  margin-top: 22px;
  border-top: 1px solid #65507344;
  font-size: 0.875rem;
  color: #bfa5d5;
}
.return-button:hover {
  color: #e7cefb;
}
.panel {
  background: #1b1c2a;
  border: 1px solid #68517255;
  border-radius: 5px;
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 21px;
  border-bottom: 1px solid #68517266;
}
.panel-heading p {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 8px;
}
.panel-heading > .class-tag {
  font-size: 0.8rem;
}
.helper-text {
  font-size: 0.875rem;
  color: var(--dim);
  line-height: 1.8;
  margin-top: 24px;
}
.world-intro,
.quests-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 23px;
  margin-bottom: 24px;
}
.world-intro > .icon {
  width: 38px;
  height: 38px;
  color: var(--purple);
}
.world-intro p,
.quests-summary p {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 7px;
}
.world-intro > span {
  margin-left: auto;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--gold);
}
.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 23px;
}
.zone-card.locked {
  opacity: 0.55;
}
.zone-art {
  height: 165px;
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(#0e0f1944, #17122155),
    url("./assets/whispering-woods.png") center 40% / cover;
  image-rendering: pixelated;
}
.zone-art-1 {
  filter: hue-rotate(35deg);
}
.zone-art-2 {
  filter: hue-rotate(270deg);
}
.zone-art-3 {
  filter: hue-rotate(25deg) brightness(1.12);
}
.zone-art > .icon {
  width: 40px;
  height: 40px;
  color: #e1c9ed;
  filter: drop-shadow(0 0 12px #ae83d2);
}
.zone-art > span {
  position: absolute;
  left: 22px;
  bottom: 17px;
  font-size: 0.75rem;
  letter-spacing: 0.1rem;
  color: #e4c7ec;
}
.zone-copy {
  padding: 25px;
}
.zone-copy .eyebrow {
  font-size: 0.75rem;
  color: var(--zone-color);
}
.zone-copy h2 {
  font-size: 1.5rem;
  margin: 8px 0 10px;
}
.zone-copy > p {
  font-size: 1rem;
  color: var(--muted);
  min-height: 55px;
}
.zone-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 0.8rem;
  color: var(--dim);
  margin: 23px 0;
}
.zone-meta > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.zone-meta .icon {
  width: 15px;
  height: 15px;
}
.zone-copy > button {
  width: 100%;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.equipment-slot {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 22px 18px;
}
.equipment-glyph,
.item-glyph {
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid #896ba36b;
  background: linear-gradient(135deg, #79649522, #26233822);
  border-radius: 4px;
  color: #c6b1dd;
}
.equipment-slot .eyebrow {
  font-size: 0.7rem;
}
.equipment-slot h3 {
  font: 550 0.875rem var(--sans);
  line-height: 1.6;
  margin: 5px 0;
}
.equipment-slot p {
  font-size: 0.75rem;
  color: var(--muted);
}
.bag-panel {
  padding: 25px;
}
.empty-state {
  text-align: center;
  padding: 60px 20px;
}
.empty-state > .icon {
  width: 45px;
  height: 45px;
  color: #bba0d0;
  opacity: 0.6;
  margin-bottom: 20px;
}
.empty-state h3 {
  font-size: 1.3rem;
}
.empty-state p {
  font-size: 1rem;
  color: var(--muted);
  margin: 15px 0 24px;
}
.item-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #68517255;
  padding: 22px 0;
}
.item-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.item-info {
  flex: 1;
}
.item-info h3 {
  font: 550 1rem var(--sans);
  line-height: 1.6;
  margin: 5px 0;
}
.item-info p {
  font-size: 0.875rem;
  color: var(--muted);
}
.rarity {
  font-size: 0.75rem;
  color: #adb4c2;
}
.rare .rarity,
.rare .item-glyph {
  color: #94c1e5;
}
.rare .item-glyph {
  border-color: #82b4da88;
}
.epic .rarity,
.epic .item-glyph {
  color: #d6a3f1;
}
.epic .item-glyph {
  border-color: #c384e788;
}
.item-actions {
  display: flex;
  gap: 10px;
}
.item-actions .subtle-button {
  font-size: 0.8rem;
}
.item-actions .icon {
  width: 14px;
  height: 14px;
}
.camp-banner {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 30px;
  background:
    radial-gradient(ellipse at 10% 50%, #917b4f26, transparent 60%), #1a1c29;
}
.camp-illustration {
  height: 110px;
  width: 110px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: #d2ba8a;
}
.camp-illustration > .icon {
  width: 90px;
  height: 90px;
  stroke-width: 1;
}
.camp-banner h2 {
  font-size: 1.65rem;
  margin: 8px 0 12px;
}
.camp-banner p:not(.eyebrow) {
  font-size: 1rem;
  color: var(--muted);
}
.training-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 25px 0;
}
.training-card {
  padding: 25px;
}
.build-glyph {
  width: 47px;
  height: 47px;
  display: grid;
  place-items: center;
  border: 1px solid #9376a666;
  border-radius: 5px;
  background: #9878b214;
  color: #c8abd9;
  flex-shrink: 0;
}
.build-glyph > .icon {
  width: 25px;
  height: 25px;
}
.training-card h3 {
  font-size: 1.25rem;
  margin: 20px 0 10px;
}
.training-card p {
  font-size: 1rem;
  color: var(--muted);
}
.training-level {
  display: block;
  margin: 20px 0;
  font-size: 0.875rem;
  color: var(--dim);
}
.training-card > button {
  width: 100%;
}
.apothecary {
  display: flex;
  align-items: center;
  gap: 19px;
  padding: 25px;
}
.apothecary > div {
  flex: 1;
}
.apothecary h3 {
  font-size: 1.2rem;
}
.apothecary p {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 6px;
}
.quests-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.settings-panel {
  padding: 27px;
}
.settings-panel h2 {
  font-size: 1.3rem;
  margin-bottom: 15px;
}
.settings-panel p:not(.helper-text) {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 22px;
}
.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.file-label {
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.file-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  cursor: pointer;
}
.settings-panel hr {
  border: 0;
  border-top: 1px solid #68517266;
  margin: 27px 0;
}
.adventure-numbers > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 16px;
}
.adventure-numbers strong {
  color: var(--gold);
}
.talent-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 1px solid #72578377;
  background:
    radial-gradient(ellipse at 20% 50%, #805ba02c, transparent 65%), #191a2a;
  padding: 20px 30px;
  border-radius: 5px;
}
.talent-character {
  display: flex;
  align-items: center;
  gap: 20px;
}
.talent-character > .cat-art {
  width: 120px;
  height: 124px;
  flex-shrink: 0;
}
.talent-character h2 {
  font-size: 1.65rem;
  margin: 7px 0 10px;
}
.talent-character p:not(.eyebrow) {
  font-size: 1rem;
  color: var(--muted);
}
.talent-points {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  text-align: center;
  flex-shrink: 0;
  padding: 10px 18px;
  border-left: 1px solid #87699555;
  min-width: 195px;
}
.talent-points > strong {
  font-family: var(--serif);
  font-size: 2.7rem;
  color: #e4c78f;
  line-height: 1.2;
}
.talent-points > span {
  font-size: 0.875rem;
  color: #e0c9ee;
}
.talent-points > small {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 4px;
}
.tree-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 24px 0;
}
.tree-toolbar > p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 720px;
}
.tree-toolbar > p > .icon {
  width: 17px;
  height: 17px;
  margin-right: 5px;
  color: var(--purple);
}
.tree-toolbar > button {
  flex-shrink: 0;
}
.talent-tree {
  overflow-x: auto;
  padding: 20px 10px 35px;
  background: radial-gradient(ellipse at 50% 0, #60427e20, transparent 75%);
  border: 1px solid #59406355;
  border-radius: 5px;
  scrollbar-width: thin;
  scrollbar-color: #8e6ca5 #181524;
}
.tree-root {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 43px;
  width: 100%;
  min-width: calc(var(--branches) * 215px);
  color: #dabcee;
  font-family: var(--serif);
  font-size: 1rem;
}
.tree-root > .icon {
  width: 42px;
  height: 42px;
  border: 1px solid #ac86c8;
  padding: 8px;
  box-shadow: 0 0 25px #9a65c333;
  border-radius: 5px;
  background: #31243e;
}
.tree-root:after {
  content: "";
  width: 1px;
  height: 28px;
  background: #9d78bd88;
  position: absolute;
  bottom: -35px;
  left: 50%;
}
.talent-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--branches), minmax(215px, 1fr));
  min-width: calc(var(--branches) * 215px);
}
.talent-branches:before {
  content: "";
  position: absolute;
  left: calc(50% / var(--branches));
  right: calc(50% / var(--branches));
  top: 0;
  height: 1px;
  background: #9d78bd88;
}
.talent-branch {
  --branch: #bb98e5;
  padding: 0 20px;
  text-align: center;
  position: relative;
}
.talent-branch:nth-child(2) {
  --branch: #a4d2ba;
}
.talent-branch:nth-child(3) {
  --branch: #e3b28b;
}
.talent-branch:nth-child(4) {
  --branch: #a0bedb;
}
.talent-branch > header {
  position: relative;
  padding-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  height: 132px;
}
.talent-branch > header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  height: 22px;
  width: 1px;
  background: #9d78bd88;
}
.talent-branch > header > span {
  width: 31px;
  height: 31px;
  border: 1px solid #9c7caf55;
  display: grid;
  place-items: center;
  color: var(--branch);
  background: #8c67a818;
  border-radius: 50%;
}
.talent-branch > header > .icon {
  width: 18px;
  height: 18px;
}
.talent-branch h3 {
  font-size: 1.15rem;
  color: var(--branch);
}
.talent-branch > header > small {
  font-size: 0.75rem;
  color: #93839f;
}
.talent-branch ol {
  padding: 0;
  margin: 0;
  list-style: none;
}
.talent-tier {
  position: relative;
  min-height: 227px;
  padding: 13px 0 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.talent-wire {
  position: absolute;
  top: -13px;
  left: 50%;
  width: 2px;
  height: 29px;
  background: #504256;
}
.talent-wire.connected {
  background: var(--branch);
  opacity: 0.65;
  box-shadow: 0 0 7px #b788dc22;
}
.talent-tier:not(:last-child):after {
  content: "";
  position: absolute;
  left: 50%;
  top: 87px;
  bottom: 0;
  width: 1px;
  background: #514259;
}
.talent-node {
  width: 64px;
  height: 64px;
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 2px solid #65546f;
  border-radius: 9px;
  background: linear-gradient(140deg, #382b41, #191823);
  color: #a597b2;
  box-shadow:
    inset 0 0 18px #8870a011,
    0 0 0 4px #11121b;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
  z-index: 1;
}
.talent-node > .icon {
  width: 30px;
  height: 30px;
}
.talent-node > b {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  border: 1px solid #766084;
  border-radius: 3px;
  min-width: 38px;
  padding: 1px 4px;
  font-size: 0.75rem;
  line-height: 1.4;
  color: #d0c4dd;
  background: #211d2a;
  font-weight: 500;
}
.talent-node.keystone {
  border-radius: 50%;
  width: 72px;
  height: 72px;
  margin-top: -4px;
  margin-bottom: -4px;
}
.talent-tier h4 {
  z-index: 1;
  font-size: 0.875rem;
  font-weight: 550;
  color: #b0a3bd;
  margin: 24px 0 7px;
  padding: 0 8px;
  line-height: 1.5;
  background: #161622;
}
.talent-tier p {
  font-size: 0.8rem;
  color: #94879f;
  line-height: 1.7;
  max-width: 245px;
  z-index: 1;
  background: #171723;
  padding: 2px 6px;
}
.talent-requirement {
  font-size: 0.75rem;
  line-height: 1.6;
  display: block;
  margin-top: 9px;
  color: #85758d;
  z-index: 1;
  background: #171723;
  padding: 1px 5px;
  max-width: 240px;
}
.talent-tier.learned .talent-node {
  border-color: var(--branch);
  color: var(--branch);
  background: linear-gradient(140deg, #6f4c852e, #282039);
  box-shadow:
    0 0 17px #a981c722,
    inset 0 0 20px #b381d622,
    0 0 0 4px #171421;
}
.talent-tier.learned h4 {
  color: #e1ceeb;
}
.talent-tier.learned .talent-node > b {
  border-color: var(--branch);
  color: #eee1f4;
}
.talent-tier.available .talent-node {
  border-color: #bca0d6;
  box-shadow:
    0 0 17px #af89d622,
    0 0 0 4px #191623;
  color: #d8b9f0;
  cursor: pointer;
}
.talent-node:hover {
  border-color: #e0bcf7;
  box-shadow:
    0 0 24px #b48bd33b,
    0 0 0 4px #21182c;
}
.talent-tier.available .talent-requirement {
  color: #c8afd9;
}
.talent-tier.equipped .talent-node {
  border-color: #eed8a1;
  color: #f0d59e;
  box-shadow:
    0 0 23px #e3b8712e,
    0 0 0 4px #261e22;
}
.talent-tier.equipped .talent-requirement {
  color: #dec286;
}
.talent-node[aria-disabled="true"] {
  cursor: help;
}
dialog {
  border: 1px solid #a286b288;
  border-radius: 7px;
  background: linear-gradient(120deg, #211b30, #151923);
  color: var(--text);
  box-shadow: 0 25px 100px #02040cbb;
  padding: 35px;
  max-width: 550px;
  width: calc(100% - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #9072a2 #171323;
}
dialog::backdrop {
  background: #060813c9;
  backdrop-filter: blur(7px);
}
dialog h2 {
  font-size: 1.7rem;
  line-height: 1.45;
  color: #f0e3cf;
}
dialog > p:not(.eyebrow) {
  font-size: 1rem;
  color: var(--muted);
  margin-top: 16px;
}
.modal-symbol {
  display: inline-flex;
  color: var(--purple);
  margin-bottom: 20px;
}
.modal-symbol > .icon {
  width: 35px;
  height: 35px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}
.onboarding {
  max-width: 830px;
  padding: 30px 35px 25px;
  background:
    radial-gradient(ellipse at 50% 0, #795b8a22, transparent 75%), #171a26;
}
.onboarding-intro {
  text-align: center;
}
.onboarding-logo {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ac83c5;
  border-radius: 5px;
  color: #ddc3f3;
  margin-bottom: 12px;
  background: #7d53922b;
}
.onboarding-logo > .icon {
  width: 25px;
  height: 25px;
}
.onboarding-intro .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.12rem;
}
.onboarding-intro h2 {
  font-size: 2rem;
  margin: 12px 0;
  line-height: 1.3;
}
.onboarding-intro em {
  font-weight: 400;
  color: #d8b2f0;
}
.onboarding-intro > p:last-child {
  font-size: 0.875rem;
  color: var(--muted);
}
.class-picker {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
  margin-top: 25px;
}
.class-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #69507877;
  border-radius: 4px;
  background: #9770b008;
  padding: 10px 5px 13px;
  transition:
    border-color 0.15s,
    background 0.15s;
  min-width: 0;
}
.class-choice:hover {
  background: #9874b11c;
  border-color: #ad84c2;
}
.class-choice.selected {
  border-color: #c5a4dc;
  background: radial-gradient(ellipse at 50% 50%, #9f71c32b, transparent 85%);
  box-shadow: 0 0 18px #a47ac412;
}
.class-choice .cat-art {
  width: 116px;
  height: 116px;
}
.class-choice strong {
  font-size: 0.875rem;
  margin-top: 4px;
  font-weight: 550;
}
.class-choice small {
  font-size: 0.75rem;
  color: var(--dim);
  margin-top: 5px;
}
.class-choice.selected strong {
  color: #e5c6fa;
}
.class-description {
  text-align: center;
  margin: 18px 0 24px;
  min-height: 58px;
}
.class-description > p {
  font-size: 0.875rem;
  color: #c4b9d1;
}
.class-description > span {
  font-size: 0.8rem;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 7px;
}
.class-description .icon {
  width: 14px;
  height: 14px;
}
.onboarding-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 25px;
}
.onboarding-fields > label {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.875rem;
  color: #d2c1df;
}
input,
select {
  font-size: 1rem;
  width: 100%;
  padding: 12px;
  border: 1px solid #82678e88;
  border-radius: 4px;
  background: #111523;
  color: #f0e7f4;
}
.first-talent-note {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.75rem;
  color: #b3a6c2;
}
.first-talent-note > .icon {
  margin-top: 4px;
  width: 22px;
  height: 22px;
  color: #ceb0e5;
}
.first-talent-note strong {
  display: block;
  font-size: 0.8rem;
  color: #ddc5ee;
  margin-bottom: 5px;
}
.first-talent-note span {
  font-size: 0.75rem;
  color: #ab9eba;
  line-height: 1.7;
  display: block;
}
.start-button {
  width: 100%;
  margin-top: 23px;
  min-height: 46px;
  font-size: 1rem;
}
.onboarding-footnote {
  text-align: center;
  font-size: 0.75rem;
  color: #8b809d;
  margin-top: 17px;
  line-height: 1.8;
}
.offline-modal {
  max-width: 590px;
  text-align: center;
}
.offline-art {
  width: 150px;
  height: 150px;
  margin: -10px auto 14px;
}
.offline-modal > .eyebrow {
  font-size: 0.7rem;
  color: #c2a2d9;
  margin-bottom: 7px;
}
.offline-modal h2 {
  font-size: 1.8rem;
}
.offline-rewards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 27px 0;
}
.offline-rewards > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 9px;
  border: 1px solid #71558066;
  border-radius: 4px;
  background: #9973b007;
}
.offline-rewards .icon {
  width: 25px;
  height: 25px;
  color: var(--gold);
}
.offline-rewards strong {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: #e6d3b1;
}
.offline-rewards span {
  font-size: 0.75rem;
  color: #b1a4bf;
}
.offline-modal > .primary-button {
  width: 100%;
}
.offline-modal > p.helper-text {
  font-size: 0.8rem;
}
.level-notice {
  color: #d5b3ef !important;
  margin-bottom: 20px;
}
.toasts {
  position: fixed;
  left: 50%;
  bottom: 175px;
  transform: translateX(-50%);
  z-index: 150;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100% - 28px);
}
.toast {
  border: 1px solid #b297c888;
  background: #252137f5;
  box-shadow: 0 5px 30px #05051177;
  padding: 13px 20px;
  border-radius: 4px;
  color: #e9daf4;
  font-size: 0.875rem;
  max-width: 100%;
  line-height: 1.6;
  animation: toast-in 0.2s ease-out;
}
#world-notice {
  position: fixed;
  left: 50%;
  top: 45%;
  transform: translateX(-50%);
  max-width: calc(100% - 40px);
  font-size: 1rem;
  color: #f5c7c6;
  text-align: center;
  background: #311e2add;
  padding: 18px;
  z-index: 100;
}
#world-notice:empty {
  display: none;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (min-width: 1700px) {
  .player-hud,
  .damage-hud {
    width: 273px;
  }
  .quest-hud,
  .journal-hud,
  .expedition-hud {
    width: 273px;
  }
  .hud-heading {
    font-size: 0.75rem;
  }
  .quest-hud .hud-heading,
  .expedition-hud .hud-heading {
    font-size: 0.7rem;
  }
  .stat-list > div,
  .stat-list strong {
    font-size: 0.875rem;
  }
  .journal-entry p {
    font-size: 0.8rem;
  }
  .character-summary h2 {
    font-size: 1.1rem;
  }
  .character-summary p {
    font-size: 0.8rem;
  }
  .quest-hud .quest-card h3 {
    font-size: 0.875rem;
  }
  .quest-hud .quest-card p {
    font-size: 0.8rem;
  }
  .combat-controls {
    width: 620px;
  }
  .ability strong {
    font-size: 0.875rem;
  }
  .ability small {
    font-size: 0.75rem;
  }
}
@media (max-width: 1280px) {
  .topbar {
    gap: 13px;
    inset: 14px 18px auto;
    padding: 8px 11px;
  }
  .brand {
    font-size: 1rem;
    gap: 9px;
  }
  .brand small {
    font-size: 0.55rem;
    letter-spacing: 0.06rem;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
  }
  .brand-mark > .icon {
    width: 22px;
    height: 22px;
  }
  .nav-item {
    padding: 5px 8px;
    font-size: 0.7rem;
  }
  .nav-item > .icon {
    width: 20px;
    height: 20px;
  }
  .resources {
    gap: 10px;
    padding-left: 12px;
  }
  .resource {
    font-size: 0.8rem;
  }
  .player-hud,
  .damage-hud {
    width: 225px;
    left: 18px;
    padding: 13px;
  }
  .quest-hud,
  .journal-hud,
  .expedition-hud {
    width: 225px;
    right: 18px;
    padding: 13px;
  }
  .hud-heading {
    font-size: 0.59rem;
    letter-spacing: 0.07rem;
  }
  .quest-hud .hud-heading,
  .expedition-hud .hud-heading {
    font-size: 0.57rem;
  }
  .character-summary {
    gap: 9px;
  }
  .portrait {
    width: 55px;
    height: 59px;
  }
  .character-summary h2 {
    font-size: 0.95rem;
  }
  .character-summary p {
    font-size: 0.7rem;
  }
  .class-tag {
    font-size: 0.65rem;
  }
  .stat-list > div,
  .stat-list strong {
    font-size: 0.75rem;
  }
  .xp-label {
    font-size: 0.6rem;
  }
  .xp-label > span {
    font-size: 0.55rem;
  }
  .talents-link {
    font-size: 0.75rem;
  }
  .active-effects > span {
    font-size: 0.6rem;
  }
  .location-hud {
    top: 103px;
  }
  .location-hud h1 {
    font-size: 1.4rem;
  }
  .location-hud > p:not(.eyebrow) {
    font-size: 0.7rem;
  }
  .target-hud {
    top: 208px;
    width: 270px;
  }
  .quest-hud .quest-reward {
    gap: 10px;
  }
  .quest-hud .quest-card p {
    font-size: 0.7rem;
  }
  .combat-controls {
    width: calc(100% - 520px);
    max-width: 550px;
  }
  .ability {
    padding: 10px 8px;
    gap: 7px;
  }
  .ability-icon {
    width: 29px;
    height: 35px;
  }
  .ability-icon > .icon {
    width: 22px;
    height: 22px;
  }
  .ability strong {
    font-size: 0.75rem;
  }
  .ability small {
    font-size: 0.65rem;
  }
  .hotbar {
    gap: 7px;
  }
  .pause-button {
    width: 34px;
  }
  .equipment-grid {
    gap: 12px;
  }
  .equipment-slot {
    gap: 12px;
    padding: 19px 13px;
  }
  .equipment-glyph {
    width: 35px;
    height: 43px;
  }
  .equipment-slot .eyebrow {
    font-size: 0.65rem;
  }
  .equipment-slot h3 {
    font-size: 0.8rem;
  }
  .equipment-slot p {
    font-size: 0.7rem;
  }
  .quests-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1050px) and (min-width: 761px) {
  .brand small {
    display: none;
  }
  .brand {
    max-width: 160px;
    font-size: 1rem;
    line-height: 1.3;
  }
  .brand-mark {
    display: none;
  }
  .world-nav {
    gap: 2px;
  }
  .nav-item {
    font-size: 0.65rem;
    padding: 6px 7px;
  }
  .nav-item > .icon {
    width: 18px;
    height: 18px;
  }
  .resources {
    gap: 8px;
    padding-left: 8px;
  }
  .resource .icon {
    width: 14px;
    height: 14px;
  }
  .resource {
    font-size: 0.75rem;
  }
  .settings-shortcut {
    width: 24px;
  }
  .location-hud {
    left: 51%;
    top: 102px;
    max-width: 280px;
  }
  .location-hud h1 {
    font-size: 1.15rem;
    white-space: normal;
  }
  .location-hud > p:not(.eyebrow) {
    font-size: 0.65rem;
  }
  .location-hud .eyebrow {
    font-size: 0.6rem;
  }
  .target-hud {
    top: 215px;
    left: 51%;
    width: 245px;
  }
  .player-hud,
  .damage-hud {
    width: 200px;
    padding: 12px;
    left: 16px;
  }
  .quest-hud,
  .journal-hud,
  .expedition-hud {
    width: 200px;
    padding: 12px;
    right: 16px;
  }
  .player-hud .hud-heading {
    font-size: 0.6rem;
  }
  .character-summary {
    gap: 8px;
  }
  .portrait {
    width: 47px;
    height: 53px;
  }
  .character-summary h2 {
    font-size: 0.9rem;
  }
  .character-summary p {
    font-size: 0.65rem;
  }
  .class-tag {
    font-size: 0.6rem;
  }
  .stat-list > div,
  .stat-list strong {
    font-size: 0.7rem;
  }
  .quest-hud .hud-heading {
    font-size: 0.52rem;
    letter-spacing: 0.04rem;
  }
  .quest-hud .quest-card h3 {
    font-size: 0.75rem;
  }
  .quest-hud .quest-card p {
    font-size: 0.65rem;
  }
  .combat-controls {
    width: calc(100% - 460px);
  }
  .hotbar {
    padding: 6px;
    gap: 6px;
  }
  .ability {
    padding: 10px 7px;
    gap: 7px;
    flex-direction: column;
    align-items: flex-start;
  }
  .ability-icon {
    width: 28px;
    height: 28px;
  }
  .ability-icon > .icon {
    width: 19px;
    height: 19px;
  }
  .ability strong {
    font-size: 0.7rem;
  }
  .ability small {
    font-size: 0.6rem;
  }
  .pause-button {
    width: 28px;
  }
  .keyboard-hint {
    display: none;
  }
  .equipment-grid {
    grid-template-columns: 1fr;
  }
  .equipment-slot {
    padding: 18px;
    gap: 15px;
  }
  .equipment-slot h3 {
    font-size: 0.875rem;
  }
  .equipment-slot p {
    font-size: 0.8rem;
  }
  .training-grid {
    grid-template-columns: 1fr;
  }
  .training-card {
    display: grid;
    grid-template-columns: 47px 1fr auto;
    gap: 5px 19px;
    align-items: center;
  }
  .training-card .build-glyph {
    grid-row: 1/4;
  }
  .training-card h3 {
    margin: 0;
  }
  .training-card .training-level {
    margin: 0;
  }
  .training-card > button {
    grid-column: 3;
    grid-row: 1/4;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .talent-character > .cat-art {
    width: 100px;
    height: 105px;
  }
  .talent-character h2 {
    font-size: 1.4rem;
  }
  .talent-overview {
    padding: 20px;
  }
  .talent-points {
    min-width: 170px;
  }
  .zone-meta {
    font-size: 0.75rem;
  }
}
@media (max-height: 850px) and (min-width: 761px) {
  .journal-hud {
    display: none;
  }
  .player-hud {
    top: 99px;
  }
  .quest-hud {
    top: 99px;
  }
  .player-hud .character-summary {
    margin: 12px 0;
  }
  .player-hud .stat-list {
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }
  .damage-hud {
    bottom: 68px;
  }
  .damage-footnote {
    display: none;
  }
  .damage-row {
    margin-top: 10px;
  }
  .dps-line {
    margin: 12px 0;
  }
  .expedition-hud {
    bottom: 68px;
  }
  .quest-hud .quest-card:nth-child(2) {
    display: none;
  }
  .combat-controls {
    bottom: 33px;
  }
  .location-hud {
    top: 98px;
  }
  .target-hud {
    top: 198px;
  }
}
@media (max-height: 710px) and (min-width: 761px) {
  .damage-hud {
    display: none;
  }
  .location-hud {
    top: 95px;
  }
  .location-hud h1 {
    font-size: 1.2rem;
  }
  .target-hud {
    top: 190px;
  }
  .expedition-hud {
    bottom: 68px;
  }
  .active-effects {
    display: none;
  }
}
@media (max-width: 760px) {
  .topbar {
    inset: 0 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 15px;
    padding: 13px 13px 0;
    min-height: 112px;
    border-width: 0 0 1px;
    border-radius: 0;
    background: #0e121fee;
    backdrop-filter: blur(10px);
  }
  .brand {
    font-size: 1.05rem;
    gap: 8px;
  }
  .brand-mark {
    width: 29px;
    height: 31px;
  }
  .brand-mark > .icon {
    width: 19px;
    height: 19px;
  }
  .brand small {
    font-size: 0.5rem;
    letter-spacing: 0.055rem;
    margin-top: 4px;
  }
  .resources {
    border: 0;
    padding: 0;
    gap: 11px;
  }
  .resource {
    font-size: 0.75rem;
    gap: 4px;
  }
  .resource > .icon {
    width: 15px;
    height: 15px;
  }
  .settings-shortcut {
    width: 21px;
    height: 30px;
  }
  .settings-shortcut > .icon {
    width: 17px;
    height: 17px;
  }
  .world-nav {
    grid-row: 2;
    grid-column: 1/-1;
    max-width: 100%;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 2px;
    margin: 0;
    padding-top: 3px;
  }
  .world-nav::-webkit-scrollbar {
    display: none;
  }
  .nav-item {
    font-size: 0.7rem;
    min-height: 51px;
    padding: 5px 11px 10px;
    gap: 6px;
    flex-shrink: 0;
  }
  .nav-item > .icon {
    width: 19px;
    height: 19px;
  }
  .nav-item.active:after {
    bottom: 0;
  }
  .nav-count {
    font-size: 0.6rem;
    line-height: 14px;
    min-width: 14px;
    top: 0;
    right: 4px;
  }
  .talent-count {
    right: 7px;
  }
  #main {
    top: 127px;
    bottom: 42px;
    width: calc(100% - 24px);
    padding: 20px 17px;
    border-radius: 5px;
  }
  .page-heading {
    gap: 14px;
    margin-bottom: 21px;
    padding-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 1.35rem;
    margin: 7px 0 10px;
  }
  .page-heading .eyebrow {
    font-size: 0.65rem;
  }
  .page-heading p:last-child {
    font-size: 0.875rem;
  }
  .close-panel {
    width: 30px;
    height: 30px;
  }
  .close-panel > .icon {
    width: 16px;
    height: 16px;
  }
  .footer {
    inset: auto 13px 10px;
    font-size: 0.65rem;
    justify-content: center;
  }
  .footer .keyboard-hint,
  .footer .breadcrumb {
    display: none;
  }
  .footer > span {
    gap: 5px;
  }
  .footer .icon {
    width: 10px;
    height: 10px;
  }
  .player-hud {
    top: 132px;
    left: 12px;
    width: 171px;
    padding: 11px;
  }
  .player-hud > .hud-heading {
    font-size: 0.5rem;
    letter-spacing: 0.05rem;
  }
  .player-hud > .hud-heading > .icon {
    width: 11px;
    height: 11px;
  }
  .character-summary {
    margin: 11px 0 12px;
    gap: 8px;
  }
  .portrait {
    width: 45px;
    height: 49px;
  }
  .character-summary h2 {
    font-size: 0.875rem;
  }
  .character-summary p {
    font-size: 0.6rem;
    margin: 3px 0 0;
  }
  .class-tag {
    display: none;
  }
  .xp-label {
    font-size: 0.55rem;
    gap: 4px;
    flex-wrap: wrap;
  }
  .xp-label > span {
    font-size: 0.5rem;
  }
  .xp-track {
    height: 5px;
    margin-top: 6px;
  }
  .stat-list {
    display: none;
  }
  .talents-link {
    font-size: 0.65rem;
    padding-top: 10px;
    margin-top: 11px;
    gap: 5px;
  }
  .talents-link > .icon {
    width: 13px;
    height: 13px;
  }
  .talents-link > b {
    height: 18px;
    min-width: 18px;
    font-size: 0.65rem;
  }
  .active-effects {
    display: none;
  }
  .location-hud {
    top: 142px;
    left: auto;
    right: 11px;
    transform: none;
    width: calc(100% - 207px);
    max-width: 235px;
    text-align: right;
  }
  .location-hud > button {
    padding: 4px 0;
    margin-left: auto;
    margin-right: 0;
  }
  .location-hud > .eyebrow {
    font-size: 0.55rem;
    letter-spacing: 0.07rem;
  }
  .location-hud h1 {
    font-size: 1.08rem;
    white-space: normal;
    line-height: 1.5;
    text-align: right;
  }
  .location-hud > p:not(.eyebrow) {
    font-size: 0.65rem;
    line-height: 1.7;
  }
  .live-badge {
    font-size: 0.6rem;
    gap: 5px;
    margin-top: 8px;
  }
  .live-badge > i {
    width: 4px;
    height: 4px;
  }
  .target-hud {
    top: auto;
    bottom: 195px;
    width: 245px;
    padding: 9px 10px;
    pointer-events: none;
  }
  .target-hud > div:first-child {
    font-size: 0.75rem;
    gap: 6px;
    margin-bottom: 6px;
  }
  .target-hud > div:first-child > span {
    font-size: 0.65rem;
  }
  .enemy-health {
    height: 15px;
  }
  .enemy-health > span {
    font-size: 0.6rem;
  }
  .actor-nameplate {
    font-size: 0.8rem;
  }
  .actor-title {
    font-size: 0.65rem;
  }
  .hero-nameplate #hero-level {
    font-size: 0.65rem;
  }
  .hero-nameplate .fighter-health {
    width: 70px;
  }
  .enemy-nameplate strong {
    font-size: 0.65rem;
  }
  .enemy-mini-health {
    width: 66px;
  }
  .battle-message {
    top: 37%;
    font-size: 0.875rem;
    max-width: calc(100% - 20px);
    white-space: normal;
    text-align: center;
    width: 100%;
  }
  .quest-hud,
  .damage-hud,
  .journal-hud,
  .expedition-hud {
    display: none;
  }
  .combat-controls {
    bottom: 36px;
    width: calc(100% - 24px);
    max-width: 540px;
  }
  .battle-state {
    font-size: 0.6rem;
    letter-spacing: 0.1rem;
    margin-bottom: 9px;
  }
  .battle-state > .icon {
    width: 12px;
    height: 12px;
  }
  .hotbar {
    padding: 7px;
    gap: 6px;
  }
  .ability {
    padding: 10px 7px;
    min-height: 68px;
    gap: 7px;
  }
  .ability-icon {
    width: 27px;
    height: 33px;
  }
  .ability-icon > .icon {
    width: 21px;
    height: 21px;
  }
  .ability strong {
    font-size: 0.7rem;
    line-height: 1.5;
  }
  .ability small {
    font-size: 0.6rem;
    margin-top: 3px;
    line-height: 1.5;
  }
  .ability kbd {
    font-size: 9px;
    top: 3px;
    right: 4px;
  }
  .pause-button {
    width: 30px;
  }
  .pause-button > .icon {
    width: 17px;
    height: 17px;
  }
  .auto-toggle {
    font-size: 0.65rem;
    margin-top: 9px;
  }
  .auto-toggle > span {
    width: 23px;
    height: 12px;
  }
  .auto-toggle > span:after {
    top: 2.5px;
  }
  .toasts {
    bottom: 260px;
  }
  .toast {
    padding: 11px 15px;
    font-size: 0.8rem;
  }
  .primary-button,
  .subtle-button,
  .danger-button {
    font-size: 0.875rem;
    padding: 9px 12px;
  }
  .world-intro,
  .quests-summary {
    padding: 19px;
    gap: 14px;
    flex-wrap: wrap;
  }
  .world-intro > .icon {
    width: 27px;
    height: 27px;
  }
  .world-intro > div {
    flex: 1;
    min-width: 200px;
  }
  .world-intro h2,
  .quests-summary h2 {
    font-size: 1.15rem;
  }
  .world-intro p,
  .quests-summary p {
    font-size: 0.875rem;
  }
  .world-intro > span {
    margin-left: 41px;
    font-size: 0.8rem;
  }
  .zone-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .zone-art {
    height: 145px;
  }
  .zone-art > span {
    font-size: 0.65rem;
  }
  .zone-copy {
    padding: 21px;
  }
  .zone-copy .eyebrow {
    font-size: 0.65rem;
  }
  .zone-copy h2 {
    font-size: 1.3rem;
  }
  .zone-copy > p {
    font-size: 1rem;
    min-height: 0;
  }
  .zone-meta {
    font-size: 0.75rem;
    gap: 10px;
  }
  .zone-meta .icon {
    width: 13px;
    height: 13px;
  }
  .equipment-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }
  .equipment-slot {
    padding: 18px;
    gap: 14px;
  }
  .equipment-glyph {
    width: 39px;
  }
  .equipment-slot .eyebrow {
    font-size: 0.65rem;
  }
  .equipment-slot h3 {
    font-size: 0.875rem;
  }
  .equipment-slot p {
    font-size: 0.8rem;
  }
  .bag-panel {
    padding: 20px;
  }
  .panel-heading {
    gap: 10px;
    padding-bottom: 20px;
  }
  .panel-heading h2 {
    font-size: 1.15rem;
  }
  .panel-heading p {
    font-size: 0.875rem;
  }
  .panel-heading > .class-tag {
    display: inline-flex;
    font-size: 0.75rem;
    white-space: nowrap;
  }
  .empty-state {
    padding: 40px 0;
  }
  .empty-state h3 {
    font-size: 1.15rem;
  }
  .empty-state p {
    font-size: 0.875rem;
  }
  .empty-state p br {
    display: none;
  }
  .item-row {
    flex-wrap: wrap;
    gap: 13px;
  }
  .item-glyph {
    width: 37px;
    height: 42px;
  }
  .item-info h3 {
    font-size: 0.875rem;
  }
  .item-info p {
    font-size: 0.75rem;
  }
  .rarity {
    font-size: 0.7rem;
  }
  .item-actions {
    width: 100%;
    padding-left: 50px;
    gap: 8px;
  }
  .item-actions .subtle-button,
  .item-actions .primary-button {
    font-size: 0.8rem;
    min-height: 34px;
    padding: 7px 10px;
  }
  .training-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 18px 0;
  }
  .camp-banner {
    padding: 21px;
    gap: 15px;
    align-items: flex-start;
  }
  .camp-illustration {
    width: 43px;
    height: 85px;
  }
  .camp-illustration > .icon {
    width: 43px;
    height: 43px;
  }
  .camp-banner .eyebrow {
    font-size: 0.65rem;
  }
  .camp-banner h2 {
    font-size: 1.25rem;
    line-height: 1.5;
  }
  .camp-banner p:not(.eyebrow) {
    font-size: 0.875rem;
  }
  .training-card {
    padding: 23px;
  }
  .training-card h3 {
    font-size: 1.2rem;
  }
  .training-card p {
    font-size: 1rem;
  }
  .apothecary {
    padding: 20px;
    gap: 15px;
    flex-wrap: wrap;
  }
  .apothecary > div {
    min-width: 180px;
  }
  .apothecary .build-glyph {
    width: 40px;
    height: 40px;
  }
  .apothecary h3 {
    font-size: 1.1rem;
  }
  .apothecary p {
    font-size: 0.875rem;
  }
  .apothecary > button {
    width: 100%;
    margin-top: 7px;
  }
  .quests-list {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .quest-card {
    padding: 20px 17px;
    gap: 11px;
    flex-wrap: wrap;
  }
  .quest-card h3 {
    font-size: 0.875rem;
  }
  .quest-card p {
    font-size: 0.875rem;
  }
  .quest-icon {
    width: 31px;
    height: 36px;
  }
  .quest-reward {
    margin-left: 42px;
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }
  .quest-reward > span,
  .quest-reward > button {
    font-size: 0.8rem;
  }
  .quest-reward > button {
    min-height: 34px;
    padding: 6px 10px;
  }
  .quest-body > small {
    font-size: 0.75rem;
  }
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .settings-panel {
    padding: 21px;
  }
  .settings-panel h2 {
    font-size: 1.2rem;
  }
  .settings-panel p:not(.helper-text) {
    font-size: 1rem;
  }
  .settings-actions {
    gap: 11px;
    flex-direction: column;
  }
  .helper-text {
    font-size: 0.8rem;
  }
  .talent-overview {
    padding: 18px 15px;
    gap: 18px;
    flex-wrap: wrap;
  }
  .talent-character {
    gap: 12px;
  }
  .talent-character > .cat-art {
    width: 77px;
    height: 85px;
  }
  .talent-character .eyebrow {
    font-size: 0.6rem;
  }
  .talent-character h2 {
    font-size: 1.15rem;
    margin: 6px 0;
  }
  .talent-character p:not(.eyebrow) {
    font-size: 0.8rem;
  }
  .talent-points {
    border-left: 0;
    border-top: 1px solid #87699555;
    width: 100%;
    min-width: 0;
    padding: 15px 0 0;
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 4px 10px;
    text-align: left;
  }
  .talent-points > strong {
    font-size: 2rem;
    grid-row: 1/3;
    text-align: center;
  }
  .talent-points > span {
    font-size: 0.875rem;
  }
  .talent-points > small {
    font-size: 0.75rem;
    margin: 0;
  }
  .tree-toolbar {
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
  }
  .tree-toolbar > p {
    font-size: 0.8rem;
  }
  .tree-toolbar > button {
    width: 100%;
  }
  .talent-tree {
    padding: 20px 0 25px;
  }
  .talent-branch {
    padding: 0 15px;
  }
  .talent-branch h3 {
    font-size: 1.1rem;
  }
  .talent-tier p {
    font-size: 0.8rem;
  }
  .talent-tier h4 {
    font-size: 0.875rem;
  }
  .talent-requirement {
    font-size: 0.75rem;
  }
  .tree-root {
    font-size: 0.875rem;
  }
  .onboarding {
    padding: 25px 18px 21px;
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
  }
  .onboarding-intro h2 {
    font-size: 1.6rem;
  }
  .onboarding-intro .eyebrow {
    font-size: 0.6rem;
    letter-spacing: 0.07rem;
  }
  .onboarding-intro > p:last-child {
    font-size: 0.875rem;
  }
  .onboarding-logo {
    width: 36px;
    height: 36px;
    margin-bottom: 11px;
  }
  .onboarding-logo > .icon {
    width: 21px;
    height: 21px;
  }
  .class-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 20px;
  }
  .class-choice {
    padding: 6px 2px 10px;
  }
  .class-choice .cat-art {
    width: 85px;
    height: 87px;
  }
  .class-choice strong {
    font-size: 0.8rem;
  }
  .class-choice small {
    font-size: 0.7rem;
  }
  .class-choice:nth-child(4),
  .class-choice:nth-child(5) {
    position: relative;
    left: 50%;
  }
  .class-description {
    margin: 16px 0 20px;
    min-height: 0;
  }
  .class-description > p {
    font-size: 0.875rem;
    line-height: 1.7;
  }
  .class-description > span {
    font-size: 0.75rem;
  }
  .onboarding-fields {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .onboarding-fields > label {
    font-size: 0.875rem;
  }
  .first-talent-note {
    font-size: 0.8rem;
    gap: 10px;
  }
  .first-talent-note strong {
    font-size: 0.875rem;
  }
  .first-talent-note span {
    font-size: 0.8rem;
  }
  .start-button {
    margin-top: 22px;
    font-size: 0.875rem;
  }
  .onboarding-footnote {
    font-size: 0.7rem;
  }
  .offline-art {
    width: 128px;
    height: 132px;
  }
  .offline-modal h2 {
    font-size: 1.45rem;
  }
  .offline-rewards {
    gap: 8px;
    margin: 23px 0;
  }
  .offline-rewards > div {
    padding: 16px 6px;
  }
  .offline-rewards strong {
    font-size: 1.3rem;
  }
  .offline-rewards span {
    font-size: 0.65rem;
  }
  dialog {
    padding: 28px 22px;
  }
  dialog h2 {
    font-size: 1.5rem;
  }
  dialog > p:not(.eyebrow) {
    font-size: 0.875rem;
  }
  .modal-actions {
    flex-direction: column-reverse;
    gap: 11px;
  }
}
@media (max-width: 380px) {
  .brand {
    font-size: 0.9rem;
    gap: 7px;
  }
  .brand-mark {
    width: 26px;
    height: 29px;
  }
  .brand-mark > .icon {
    width: 17px;
    height: 17px;
  }
  .brand small {
    font-size: 0.45rem;
    letter-spacing: 0.02rem;
  }
  .resources {
    gap: 8px;
  }
  .resource {
    font-size: 0.7rem;
  }
  .resource > .icon {
    width: 13px;
    height: 13px;
  }
  .player-hud {
    width: 151px;
    padding: 10px;
  }
  .player-hud .portrait {
    width: 35px;
    height: 41px;
  }
  .character-summary {
    gap: 7px;
  }
  .character-summary h2 {
    font-size: 0.8rem;
  }
  .character-summary p {
    font-size: 0.6rem;
  }
  .player-hud .hud-heading {
    font-size: 0.45rem;
  }
  .xp-label > span {
    font-size: 0.5rem;
  }
  .location-hud {
    width: calc(100% - 186px);
    top: 140px;
  }
  .location-hud h1 {
    font-size: 0.95rem;
  }
  .location-hud > .eyebrow {
    font-size: 0.5rem;
  }
  .location-hud > p:not(.eyebrow) {
    font-size: 0.6rem;
  }
  .live-badge {
    font-size: 0.55rem;
  }
  .talents-link {
    font-size: 0.6rem;
  }
  .ability {
    padding: 10px 6px;
    gap: 6px;
  }
  .ability strong {
    font-size: 0.65rem;
  }
  .ability small {
    font-size: 0.55rem;
  }
  .ability-icon {
    width: 23px;
    height: 29px;
  }
  .ability-icon > .icon {
    width: 18px;
    height: 18px;
  }
  .pause-button {
    width: 27px;
  }
  .target-hud {
    width: 225px;
  }
  .onboarding-intro h2 {
    font-size: 1.4rem;
  }
  .class-choice .cat-art {
    width: 74px;
    height: 76px;
  }
  .class-choice strong {
    font-size: 0.75rem;
  }
  .class-choice small {
    font-size: 0.65rem;
  }
  .onboarding {
    padding: 23px 16px 20px;
  }
  .page-heading h1 {
    font-size: 1.2rem;
  }
  .quest-reward {
    margin-left: 0;
  }
  .zone-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }
  .camp-banner {
    gap: 12px;
    padding: 18px;
  }
  .camp-illustration {
    width: 32px;
  }
  .camp-illustration > .icon {
    width: 32px;
    height: 32px;
  }
  .camp-banner h2 {
    font-size: 1.15rem;
  }
  .class-description > p {
    font-size: 0.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
