@font-face {
  font-family: Greenvale Serif;
  src: local('Palatino'), local('Georgia');
  font-display: swap;
}
:root {
  --game-cursor: url('./cursor.svg') 4 4, default;
  --action-cursor: url('./cursor-active.svg') 4 4, pointer;
  color-scheme: dark;
  --gold: #d4bf85;
  --gold-dim: #988a61;
  --cream: #eee8d3;
  --muted: #a5b0a0;
  --ink: #18241f;
  --panel: rgba(23, 34, 29, 0.96);
  --line: rgba(198, 181, 130, 0.25);
}
* {
  box-sizing: border-box;
}
html,
body {
  cursor: var(--game-cursor);
  margin: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #7f9e9c;
}
body {
  font-family:
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--cream);
  font-size: 13px;
}
button,
select,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: var(--action-cursor);
}
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: var(--game-cursor);
}
button .icon {
  pointer-events: none;
}
.icon {
  width: 24px;
  height: 24px;
  flex: none;
}
#world {
  display: block;
  width: 100vw;
  height: 100vh;
  outline: none;
  cursor: var(--game-cursor);
}
#world.dragging {
  cursor: var(--game-cursor);
}
#hud {
  position: fixed;
  inset: 0;
  pointer-events: none;
  user-select: none;
}
#hud button,
#hud select,
#hud input {
  pointer-events: auto;
}
.screen-vignette {
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0 -110px 100px -70px rgba(15, 28, 22, 0.42),
    inset 0 90px 90px -55px rgba(15, 29, 24, 0.48);
  pointer-events: none;
}
.brand {
  position: absolute;
  left: 32px;
  top: 26px;
  display: flex;
  align-items: center;
  gap: 13px;
  text-shadow: 0 2px 7px #26382a99;
}
.brand-crest {
  width: 43px;
  height: 51px;
  border: 1px solid #c5b37c80;
  display: grid;
  place-items: center;
  background: #233d2d36;
  clip-path: polygon(0 0, 100% 0, 100% 74%, 50% 100%, 0 74%);
}
.brand-crest .icon {
  width: 31px;
  height: 38px;
  color: #ded0a0;
}
.brand h1 {
  font-family:
    Greenvale Serif,
    Georgia,
    serif;
  font-weight: 500;
  font-size: 25px;
  letter-spacing: 5px;
  margin: 0 0 7px;
}
.brand p {
  margin: 0;
  color: #d4d7c2;
  letter-spacing: 2.4px;
  font-size: 8px;
}
.safe-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #adc791;
  border-radius: 50%;
  box-shadow: 0 0 6px #7da662;
}
.map-cluster {
  position: absolute;
  right: 30px;
  top: 22px;
  width: 190px;
  text-align: center;
}
.map-topline {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  color: #e7e2c8;
  font-size: 10px;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 3px #132018;
}
.map-topline .icon {
  width: 15px;
  height: 15px;
  color: #dcc793;
}
.minimap-wrap {
  position: relative;
  width: 172px;
  height: 172px;
  margin: 15px 8px 9px;
  border: 1px solid #c3b17a;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(130deg, #6b704d, #222f25 24%, #7a7450 53%, #242d22 70%, #776b42);
  box-shadow:
    0 0 0 3px #29372bb3,
    0 0 0 4px #a49b7059,
    0 6px 20px #1b302e55;
}
.minimap-wrap:hover {
  border-color: #f2db9d;
}
.map-inner {
  height: 100%;
  border: 2px solid #1f3328;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: inset 0 0 10px #17231c;
}
.map-inner canvas {
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(0.72) brightness(1.08);
}
.compass-n,
.compass-e,
.compass-s,
.compass-w {
  position: absolute;
  font-family: Georgia, serif;
  font-size: 10px;
  color: #e4d6a3;
  text-shadow: 0 1px 3px #111;
}
.compass-n {
  left: calc(50% - 4px);
  top: -13px;
  font-size: 13px;
}
.compass-s {
  left: calc(50% - 3px);
  bottom: -10px;
  font-size: 9px;
}
.compass-w {
  left: -12px;
  top: calc(50% - 5px);
}
.compass-e {
  right: -10px;
  top: calc(50% - 5px);
}
.map-pin {
  position: absolute;
  right: -2px;
  bottom: 3px;
  border: 1px solid #b5a474;
  border-radius: 50%;
  background: #273a2e;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}
.map-pin .icon {
  width: 18px;
  height: 18px;
  color: #d7c28c;
}
.realm-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  letter-spacing: 1px;
  font-size: 7px;
  color: #dddac3;
  margin-top: 12px;
  text-shadow: 0 1px 5px #111;
}
.realm-status i {
  width: 4px;
  height: 4px;
  background: #b4c690;
  border-radius: 50%;
}
.realm-status span {
  opacity: 0.6;
}
.quest-tracker {
  position: absolute;
  right: 29px;
  top: 285px;
  width: 222px;
  padding: 0 4px 0 17px;
  border-left: 1px solid #d0be8570;
  text-shadow: 0 1px 5px #13281dc9;
}
.tracker-top {
  font-size: 8px;
  letter-spacing: 2px;
  color: #d0d4bb;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.tracker-top button {
  padding: 0;
  color: #d0d4bb;
}
.tracker-top .icon {
  width: 15px;
  height: 15px;
}
.quest-tracker h3 {
  font-family:
    Greenvale Serif,
    Georgia,
    serif;
  font-weight: 400;
  font-size: 17px;
  color: #f0dfaf;
  margin: 13px 0 12px;
}
.quest-tracker h3 > span {
  margin-right: 7px;
  color: #d4bf85;
  font-size: 16px;
}
.quest-tracker > p {
  font-size: 11px;
  margin: 0 0 7px;
  color: #f0eddc;
}
.quest-note {
  font-size: 10px;
  line-height: 1.6;
  color: #ced1bd;
}
.discoveries {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  letter-spacing: 1.2px;
  color: #d2d5c0;
}
.discoveries b {
  font-weight: 400;
  letter-spacing: 1px;
  color: #f0dfaf;
}
.discovery-track {
  height: 2px;
  background: #20362780;
  margin-top: 8px;
}
.discovery-track i {
  display: block;
  background: #d2bf8f;
  height: 100%;
  transition: width 0.5s;
}
.chat {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 350px;
  background: linear-gradient(145deg, #24372eef, #11251ff2);
  border: 1px solid #b8a77770;
  border-radius: 8px;
  box-shadow: 0 8px 28px #0c1a1959, inset 0 1px #f4e3b114;
  overflow: hidden;
  pointer-events: auto;
}
.chat nav {
  display: flex;
  align-items: center;
  height: 42px;
  gap: 4px;
  padding: 5px 8px 0;
  border-bottom: 1px solid #c5c39830;
  background: #0d211b60;
}
.chat nav button {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  font-size: 11px;
  padding: 0 12px;
  color: #a6b7a8;
  position: relative;
  border-radius: 4px 4px 0 0;
}
.chat nav .icon {
  width: 15px;
  height: 15px;
}
.chat nav button:hover {
  color: #f0dfb0;
  background: #bfa97512;
}
.chat nav button.selected {
  color: #f0db9e;
  background: linear-gradient(#dcc28b17, #dcc28b08);
}
.chat nav button.selected:after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: #c5b37d;
}
.log-unread {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ebce83;
  box-shadow: 0 0 6px #ebce8370;
}
.chat-lines {
  font-size: 11px;
  line-height: 1.6;
  height: 137px;
  padding: 9px 14px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #94865c66 transparent;
  color: #d8e0cf;
}
.chat-lines p {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 7px 0;
  border-bottom: 1px solid #b5bd9a12;
}
.chat-lines strong {
  color: #e8d7a5;
  font-weight: 500;
}
.chat-tag {
  color: #cdbb86;
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  min-width: 63px;
  padding-top: 3px;
}
.chat-muted {
  color: #a7b3a1;
  font-style: italic;
}
.chat-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-top: 1px solid #c5c39820;
  color: #91a795;
  font-size: 8px;
  letter-spacing: 1px;
}
.chat-footer .icon {
  width: 12px;
  height: 12px;
  color: #b7a677;
}
.chat-footer i {
  margin-left: auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #9bb392;
}
.teleport-cast {
  position: absolute;
  left: 50%;
  bottom: 155px;
  transform: translateX(-50%);
  width: 310px;
  padding: 16px 18px 12px;
  border: 1px solid #a6dbc17a;
  border-radius: 6px;
  background: linear-gradient(135deg, #203b35f2, #102620f5);
  box-shadow: 0 0 30px #80d7bf20, 0 8px 25px #0c211b70;
}
.teleport-cast[hidden], .teleport-cast button[hidden] {
  display: none;
}
.teleport-heading {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #c5eedc;
}
.teleport-heading strong {
  display: block;
  font: 19px Georgia, serif;
  color: #f0e5c7;
}
.teleport-heading span {
  display: block;
  margin-top: 5px;
  color: #a6bfaf;
  font-size: 10px;
}
.teleport-heading button {
  margin-left: auto;
  padding: 0;
  color: #b7d5c8;
}
.teleport-heading button .icon {
  width: 17px;
  height: 17px;
}
.teleport-progress {
  margin-top: 14px;
  height: 5px;
  background: #081c176b;
  border: 1px solid #aac6ae38;
}
.teleport-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #66b69d, #dfefb9);
  box-shadow: 0 0 10px #ade5c66b;
}
.teleport-cast p {
  margin: 9px 0 0;
  text-align: center;
  color: #a6bfaf;
  font-size: 9px;
}
.teleport-flash {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: radial-gradient(ellipse, #d3ffe8c4, transparent 75%);
  pointer-events: none;
}
.actionbar {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 386px;
}
.vitals {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 11px 10px;
  font-size: 10px;
  color: #e3ddc7;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px #0e2418;
}
.vitals > span {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.vitals .icon {
  width: 13px;
  height: 13px;
  color: #d4c895;
}
.vitals > span:first-child .icon {
  color: #c69173;
  fill: #c6917322;
}
.vitals small {
  font-size: 8px;
  color: #c1c9b1;
}
.vital-track {
  flex: 1;
  height: 4px;
  background: #283729;
  border: 1px solid #b5b57b35;
  border-radius: 2px;
}
.vital-track i {
  display: block;
  width: 100%;
  height: 100%;
  background: #849875;
}
.movement-label {
  font-size: 7px;
  letter-spacing: 1.1px;
  color: #d0d9c0;
}
.hotkeys {
  padding: 6px;
  display: flex;
  gap: 6px;
  background: linear-gradient(#263b2ddb, #16291fef);
  border: 1px solid #b4a37373;
  box-shadow:
    0 4px 18px #10221980,
    inset 0 0 0 3px #4b573b55;
  position: relative;
}
.hotkeys:before,
.hotkeys:after {
  content: '◆';
  font-size: 9px;
  color: #b9a370;
  position: absolute;
  top: calc(50% - 5px);
  left: -6px;
}
.hotkeys:after {
  left: auto;
  right: -6px;
}
.hotkey {
  width: 56px;
  height: 52px;
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid #b6ab7d45;
  background: linear-gradient(145deg, #7a7d5238, #182c2422);
  box-shadow: inset 0 0 0 2px #182a2133;
  color: #c8bc92;
  transition:
    background 0.18s,
    border-color 0.18s,
    transform 0.18s;
}
.hotkey > .icon {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 2px 1px #1119);
  margin-top: 4px;
}
.hotkey:hover,
.hotkey.active {
  border-color: #dfca8bb0;
  background: #8d915333;
}
.hotkey:active {
  transform: translateY(1px);
}
.key-number {
  position: absolute;
  left: 5px;
  top: 3px;
  font-family: Georgia, serif;
  font-size: 9px;
  color: #b8b895;
}
.hotkey[data-tip]:hover:after,
.corner-tools [data-tip]:hover:after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: #1c2e24ef;
  border: 1px solid #bca8737a;
  padding: 7px 10px;
  white-space: nowrap;
  font-size: 10px;
  color: #e9dfc6;
}
.control-hint {
  font-size: 8px;
  color: #cdd4be;
  text-align: center;
  margin: 11px 0 0;
  text-shadow: 0 1px 3px #172d1b;
  white-space: nowrap;
  letter-spacing: 0.1px;
}
.control-hint span {
  letter-spacing: 2px;
  color: #eee6d0;
  font-size: 8px;
}
.control-hint em {
  font-style: normal;
  padding: 0 6px;
  color: #9fae8f;
}
.corner-tools {
  position: absolute;
  right: 28px;
  bottom: 47px;
  display: flex;
  gap: 8px;
}
.corner-tools button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #bdac7a5c;
  background: #243a2abf;
  position: relative;
  font-family: Georgia, serif;
  font-size: 20px;
  color: #d2c192;
}
.corner-tools button:hover {
  background: #4d6042;
  border-color: #d9c38e;
}
.corner-tools .icon {
  width: 19px;
  height: 19px;
}
.build-mark {
  position: absolute;
  right: 29px;
  bottom: 24px;
  font-size: 7px;
  letter-spacing: 1.4px;
  color: #c0c9b1;
  text-shadow: 0 1px 4px #1c2b1d;
}
.build-mark b {
  font-weight: 400;
  color: #d9d2b7;
  margin-left: 4px;
}
.build-mark .separator {
  margin: 0 8px;
}
.nameplate {
  position: absolute;
  transform: translate(-50%, -100%);
  text-align: center;
  white-space: nowrap;
  text-shadow:
    0 1px 3px #15291b,
    0 0 6px #1a2e1e;
  opacity: 0.9;
}
.nameplate strong {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: #e5e3c3;
}
.nameplate small {
  display: none;
  color: #c3d3b0;
  font-size: 8px;
  margin-top: 3px;
}
.nameplate.near small {
  display: block;
}
.nameplate.near strong {
  color: #f5e5b8;
}
.quest-diamond {
  display: block;
  color: #f6d372;
  font-family: Georgia, serif;
  font-size: 29px;
  line-height: 1.2;
  margin-bottom: 4px;
  animation: bob 3s ease-in-out infinite;
  text-shadow:
    0 0 12px #ffd56a88,
    0 1px 3px #1f2a1f;
}
.interaction {
  position: absolute;
  left: 50%;
  bottom: 173px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #18291feb;
  border: 1px solid #c9b98780;
  box-shadow: 0 3px 18px #10251d40;
  padding: 10px 21px 10px 10px;
  color: #e5dec3;
  font-size: 12px;
  transition: opacity 0.2s;
}
.interaction kbd {
  font-family: Georgia, serif;
  border: 1px solid #d4c38c8a;
  background: #6b775139;
  color: #e0ce9c;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  font-size: 16px;
}
.hidden {
  opacity: 0;
  visibility: hidden;
}
.region-reveal {
  position: absolute;
  top: 23%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s;
  text-shadow: 0 3px 14px #26392a88;
  pointer-events: none;
}
.region-reveal.visible {
  opacity: 1;
}
.region-reveal p {
  font-size: 9px;
  letter-spacing: 5px;
  color: #f0e3bc;
  margin-bottom: 12px;
}
.region-reveal h2 {
  font-family:
    Greenvale Serif,
    Georgia,
    serif;
  font-size: 49px;
  font-weight: 400;
  letter-spacing: 3px;
  margin: 0 0 10px;
}
.region-reveal > span {
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.8px;
  color: #e4e8d4;
}
.region-reveal > div {
  color: #e1c893;
  font-size: 9px;
  margin: 18px 0;
}
.toast {
  position: absolute;
  top: 119px;
  left: 50%;
  transform: translate(-50%, -15px);
  display: flex;
  align-items: center;
  gap: 15px;
  opacity: 0;
  transition:
    opacity 0.4s,
    transform 0.4s;
  background: linear-gradient(90deg, #1e322a00, #1e322aec 15%, #1e322aec 85%, #1e322a00);
  padding: 18px 42px;
  min-width: 360px;
  max-width: 560px;
  text-align: left;
  border-top: 1px solid #caba8238;
  border-bottom: 1px solid #caba8238;
}
.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.toast > span .icon {
  width: 31px;
  height: 31px;
  color: #d5c18d;
}
.toast small {
  font-size: 7px;
  letter-spacing: 2.2px;
  color: #b8c6a9;
}
.toast h3 {
  font-family:
    Greenvale Serif,
    Georgia,
    serif;
  font-weight: 400;
  font-size: 21px;
  color: #f0dfb0;
  margin: 5px 0;
}
.toast p {
  font-size: 10px;
  margin: 0;
  color: #ccd1bc;
  line-height: 1.5;
}
.hud-hidden > * {
  visibility: hidden;
}
.hud-hidden .screen-vignette {
  visibility: hidden;
}
.modal-shade {
  position: absolute;
  z-index: 30;
  inset: 0;
  background: #101e1775;
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  animation: fade-in 0.18s ease;
}
.panel {
  width: 500px;
  max-width: calc(100vw - 44px);
  max-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  background: radial-gradient(ellipse at top left, #3b493342, transparent 65%), var(--panel);
  border: 1px solid #bbaa7980;
  box-shadow:
    0 14px 80px #09180d99,
    inset 0 0 0 5px #b8a7750a;
  padding: 27px 30px 0;
  overflow: hidden;
}
.panel > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.panel > header p {
  font-size: 8px;
  letter-spacing: 2.8px;
  color: #acb99f;
  margin: 0 0 11px;
}
.panel > header h2 {
  font-family:
    Greenvale Serif,
    Georgia,
    serif;
  font-weight: 400;
  font-size: 30px;
  color: #e8d8ab;
  margin: 0;
}
.panel > header button {
  color: #b0b79d;
  padding: 0;
  margin: -2px -5px 0 5px;
}
.panel > header button:hover {
  color: #f0d598;
}
.panel > header .icon {
  width: 22px;
  height: 22px;
}
.panel-body {
  overflow: auto;
  padding: 24px 0;
  scrollbar-width: thin;
  scrollbar-color: #59664b transparent;
}
.panel > footer {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  letter-spacing: 1.8px;
  font-size: 7px;
  color: #929f87;
  padding: 15px 0;
}
.panel > footer span {
  font-size: 5px;
  color: #b9a672;
}
.panel-intro {
  font-family: Georgia, serif;
  font-style: italic;
  color: #b9c2ab;
  font-size: 15px;
  margin: 0 0 24px;
}
.eyebrow {
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #a6b793;
}
.journal-quest h3 {
  font-size: 24px;
  font-family:
    Greenvale Serif,
    Georgia,
    serif;
  font-weight: 400;
  color: #e5d4a6;
  margin: 10px 0 15px;
}
.journal-quest > p {
  font-size: 12px;
  line-height: 1.8;
  color: #bfc8b7;
  margin-bottom: 22px;
}
.objective-box {
  display: flex;
  gap: 13px;
  border: 1px solid #b4aa7230;
  background: #101e1538;
  padding: 17px;
}
.objective-box > .icon {
  color: #bbc993;
  width: 27px;
  height: 27px;
  margin-top: 2px;
}
.objective-box strong {
  font-weight: 500;
  font-size: 12px;
  color: #e4d8b6;
}
.objective-box p {
  font-size: 10px;
  color: #a8b59d;
  line-height: 1.65;
  margin: 7px 0 0;
}
.reward-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #95a386;
  margin: 16px 0 27px;
  flex-wrap: wrap;
}
.reward-line span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  letter-spacing: 0;
  color: #c4bb91;
}
.reward-line .icon {
  width: 15px;
  height: 15px;
}
.section-label {
  font-size: 8px;
  letter-spacing: 2px;
  color: #bdc5b0;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
  padding-bottom: 13px;
  display: flex;
  justify-content: space-between;
}
.section-label span {
  color: #c9b98a;
}
.location-list > div {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 10px 0;
  color: #84957e;
}
.location-list > div > span {
  font-size: 18px;
  color: #899975;
}
.location-list strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: 400;
}
.location-list small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
  color: #87987f;
}
.location-list .known strong {
  color: #d5c99f;
}
.location-list .known > span {
  color: #c5b67f;
  font-size: 10px;
  padding: 0 4px;
}
.location-list .icon {
  margin-left: auto;
  width: 15px;
  height: 15px;
  color: #aabd89;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.setting-row strong {
  font-size: 12px;
  font-weight: 500;
  color: #ddd8bc;
  display: block;
}
.setting-row small {
  display: block;
  font-size: 9px;
  color: #9fae95;
  margin-top: 7px;
  line-height: 1.4;
}
.setting-row select {
  background: #283b2b;
  border: 1px solid #b7a6735c;
  color: #d8c99e;
  padding: 8px;
  max-width: 140px;
  font-size: 11px;
}
.setting-row input {
  accent-color: #c4b482;
  width: 113px;
}
.settings-panel { width: 570px; }
.character-customization { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 8px 0 18px; border-bottom: 1px solid var(--line); }
.appearance-preview { background: radial-gradient(ellipse at center, #5f745a66, #16251c55); border: 1px solid #b7a67340; }
.appearance-preview canvas { display: block; width: 100%; height: auto; }
.appearance-preview button { display: block; width: 100%; background: transparent; color: #d8c99e; border: 0; border-top: 1px solid var(--line); padding: 8px; font-size: 10px; cursor: var(--action-cursor); }
.appearance-preview button:hover { background: #b7a67315; }
.appearance-controls .setting-row { display: block; padding: 12px 0; }
.appearance-controls .setting-row:first-child { padding-top: 0; }
.appearance-controls select { width: 100%; max-width: none; margin-top: 9px; }
.appearance-hint { font-size: 10px; color: #acbba1; line-height: 1.5; margin: 12px 0 0; }
@media (max-width: 520px) {
  .character-customization { grid-template-columns: 130px minmax(0, 1fr); gap: 14px; }
}
.settings-info {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 10px;
  color: #acbba1;
  margin: 25px 0;
}
.primary-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 15px 18px;
  margin-top: 20px;
  border: 1px solid #bda9788a;
  background: linear-gradient(110deg, #68724975, #67734338);
  font-family: Georgia, serif;
  font-size: 15px;
  color: #e5d6aa;
  transition: background 0.2s;
}
.primary-button:hover {
  background: #78805275;
}
.primary-button .icon {
  width: 20px;
  height: 20px;
}
.text-button {
  display: block;
  margin: 14px auto 0;
  color: #aaba99;
  font-size: 10px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.controls-list > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #b2a77612;
  color: #bdc7b0;
  font-size: 11px;
}
.controls-list kbd {
  font-family: inherit;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: #d5c599;
  border: 1px solid #baa77540;
  padding: 5px 9px;
  background: #1a2b2140;
  min-width: 32px;
  text-align: center;
}
.help-footnote {
  font-family: Georgia, serif;
  font-style: italic;
  line-height: 1.7;
  font-size: 12px;
  color: #aeba9d;
  margin: 22px 0 0;
}
.inventory-grid {
  position: absolute;
  right: 0;
  bottom: 99px;
  width: 218px;
  height: 320px;
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid #bfae7455;
  background: linear-gradient(145deg, #24352de8, #14251fe8);
  box-shadow: 0 8px 24px #0c1a1940, inset 0 0 0 3px #111f184d;
}
.inventory-grid[hidden] {
  display: none;
}
.inventory-slot {
  min-height: 0;
}
.dialogue-panel {
  width: 530px;
}
.dialogue-portrait,
.lore-crest {
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
  color: #d4c089;
}
.dialogue-portrait .icon,
.lore-crest .icon {
  width: 48px;
  height: 48px;
}
.dialogue-copy {
  font-family: Georgia, serif;
  color: #d8dbc6;
  font-size: 16px;
  line-height: 1.8;
}
.dialogue-copy p {
  margin: 0 0 19px;
}
.dialogue-options {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
}
.dialogue-options button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  text-align: left;
  padding: 13px 5px;
  color: #cdbd8e;
  font-size: 12px;
  border-bottom: 1px solid #b1a47317;
}
.dialogue-options button > span {
  font-family: Georgia, serif;
  color: #839477;
  font-size: 11px;
}
.dialogue-options button:hover {
  color: #f0d9a1;
  background: #56704425;
}
.dialogue-options .icon {
  margin-left: auto;
  width: 16px;
  height: 16px;
}
.map-panel {
  width: 720px;
  padding: 25px 25px 0;
}
.map-panel .panel-body {
  padding: 17px 0 14px;
}
.map-panel > header {
  padding-bottom: 15px;
}
.map-panel h2 {
  font-size: 27px;
}
.map-paper {
  position: relative;
  border: 1px solid #bdaa7880;
  box-shadow: inset 0 0 40px #203124;
  width: 100%;
  overflow: hidden;
  max-height: calc(100vh - 245px);
  aspect-ratio: 1;
}
.map-paper:after {
  position: absolute;
  inset: 0;
  content: '';
  box-shadow: inset 0 0 55px #1c2b24b0;
  pointer-events: none;
}
.map-paper canvas {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.map-compass {
  position: absolute;
  right: 25px;
  top: 17px;
  line-height: 1.5;
  font-family: Georgia, serif;
  text-align: center;
  color: #e3d3a6;
  font-size: 21px;
  text-shadow: 0 1px 4px #122018;
}
.map-legend {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  font-size: 9px;
  color: #bdc4a9;
  margin-top: 15px;
}
.map-legend span:last-child {
  color: #d4c596;
}
#loading {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(ellipse at center, #364d35, #162c23 65%, #12221c);
  color: #e2d3a4;
  transition: opacity 1s;
  z-index: 100;
}
.loading-crest {
  width: 104px;
  height: 104px;
  margin-bottom: 26px;
  filter: drop-shadow(0 10px 24px #0009);
}
#loading h1 img {
  display: block;
  width: min(290px, 70vw);
  height: auto;
  filter: drop-shadow(0 6px 18px #0008);
}
#loading h1 {
  font-family:
    Greenvale Serif,
    Georgia,
    serif;
  font-weight: 400;
  font-size: clamp(24px, 5.4vw, 43px);
  letter-spacing: clamp(3px, 1.1vw, 12px);
  margin: 0 0 20px;
}
#loading p {
  max-width: 90vw;
  text-align: center;
  line-height: 1.8;
  font-size: 9px;
  letter-spacing: 5px;
  color: #abbda0;
  margin: 0 0 50px;
}
.load-track {
  width: 230px;
  height: 2px;
  background: #bbc29326;
}
.load-track i {
  display: block;
  height: 100%;
  background: #c9bd8e;
  width: 0;
  transition: width 0.3s;
}
#load-status {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: #aebfa2;
  margin-top: 19px;
}
#loading.done {
  opacity: 0;
  pointer-events: none;
}
.fatal {
  max-width: 540px;
  text-align: center;
  line-height: 1.7;
  padding: 20px;
}
.fatal button {
  border: 1px solid var(--gold);
  padding: 10px 24px;
  margin-top: 12px;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@media (min-width: 1800px) {
  .brand {
    left: 40px;
    top: 35px;
  }
  .map-cluster {
    right: 40px;
    top: 29px;
    width: 214px;
  }
  .minimap-wrap {
    width: 192px;
    height: 192px;
  }
  .quest-tracker {
    right: 40px;
    top: 315px;
    width: 240px;
  }
  .chat {
    left: 35px;
    bottom: 34px;
    width: 375px;
  }
  .actionbar {
    bottom: 26px;
  }
  .corner-tools {
    right: 40px;
    bottom: 53px;
  }
  .inventory-grid {
    width: 230px;
    bottom: 105px;
  }
  .build-mark {
    right: 40px;
    bottom: 29px;
  }
}
@media (max-width: 1100px) {
  .brand {
    left: 20px;
    top: 20px;
    gap: 9px;
  }
  .brand h1 {
    font-size: 20px;
    letter-spacing: 3.5px;
  }
  .brand p {
    font-size: 6px;
    letter-spacing: 2px;
  }
  .brand-crest {
    width: 35px;
    height: 42px;
  }
  .map-cluster {
    right: 20px;
    width: 152px;
  }
  .minimap-wrap {
    width: 136px;
    height: 136px;
    margin-top: 13px;
  }
  .quest-tracker {
    right: 18px;
    top: 246px;
    width: 193px;
  }
  .quest-tracker h3 {
    font-size: 15px;
  }
  .chat {
    width: 258px;
    left: 18px;
    bottom: 19px;
  }
  .chat-lines {
    font-size: 10px;
    height: 127px;
    padding: 8px 10px;
  }
  .chat nav button {
    padding: 0 8px;
    font-size: 10px;
    gap: 5px;
  }
  .chat-tag {
    min-width: 55px;
    font-size: 7px;
  }
  .actionbar {
    width: 338px;
    bottom: 17px;
  }
  .hotkey {
    width: 49px;
    height: 46px;
  }
  .hotkey > .icon {
    width: 24px;
    height: 24px;
  }
  .hotkeys {
    gap: 5px;
    padding: 5px;
  }
  .control-hint {
    font-size: 7px;
  }
  .corner-tools {
    right: 20px;
    bottom: 45px;
  }
  .inventory-grid {
    bottom: 96px;
    width: 186px;
    height: 281px;
    padding: 8px;
  }
  .build-mark {
    right: 20px;
  }
}
@media (max-width: 820px) {
  .teleport-cast {
    bottom: calc(50% + 20px);
  }
  .chat {
    width: 270px;
    bottom: 123px;
    left: 20px;
  }
  .chat-lines {
    height: 104px;
  }
  .quest-tracker {
    top: 230px;
    width: 170px;
  }
  .quest-note {
    display: none;
  }
  .brand p {
    display: none;
  }
  .brand h1 {
    font-size: 16px;
    letter-spacing: 2px;
  }
  .brand-crest {
    width: 28px;
    height: 35px;
  }
  .brand-crest .icon {
    width: 23px;
    height: 27px;
  }
  .map-cluster {
    top: 15px;
    right: 15px;
    width: 130px;
  }
  .minimap-wrap {
    width: 116px;
    height: 116px;
    margin-top: 12px;
  }
  .realm-status {
    font-size: 6px;
    letter-spacing: 0.4px;
  }
  .quest-tracker {
    top: 207px;
    font-size: 10px;
  }
  .quest-tracker h3 {
    font-size: 14px;
  }
  .quest-tracker > p {
    font-size: 10px;
  }
  .discoveries {
    margin-top: 17px;
    font-size: 6px;
  }
  .corner-tools {
    bottom: 32px;
    right: 14px;
    gap: 4px;
  }
  .corner-tools button {
    width: 27px;
    height: 27px;
  }
  .inventory-grid {
    bottom: 74px;
    width: 164px;
    height: 254px;
    padding: 7px;
  }
  .build-mark {
    font-size: 6px;
    bottom: 16px;
    right: 14px;
  }
  .actionbar {
    left: 20px;
    transform: none;
    bottom: 17px;
    width: 330px;
  }
  .interaction {
    bottom: 150px;
  }
  .panel {
    max-height: calc(100vh - 30px);
    padding: 20px 23px 0;
  }
  .region-reveal h2 {
    font-size: 35px;
  }
}
@media (max-height: 850px) {
  .quest-tracker {
    top: 112px;
    left: 28px;
    right: auto;
  }
}
@media (max-height: 650px) and (min-width: 1101px) {
  .inventory-grid {
    width: 166px;
    height: 229px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Character tabs share the inventory's compact, always-playable side panel. */
.inventory-grid {
  right: 0;
  bottom: 104px;
  width: 300px;
  height: clamp(320px, 50vh, 470px);
  max-height: calc(100vh - 365px);
  padding: 0;
  display: flex;
  flex-direction: column;
  pointer-events: auto;
  overflow: hidden;
  border: 1px solid #bda67570;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: radial-gradient(ellipse at top left, #74644326, transparent 70%), linear-gradient(135deg, #26382ff7, #10221df7);
  box-shadow: -8px 10px 32px #07171040, inset 3px 0 #cfba8212, inset 0 1px #e9d8a826;
}
.inventory-tabs { display: flex; flex: none; border-bottom: 1px solid #c9b47d45; background: #071a1550; }
.inventory-tabs button { display: flex; align-items: center; justify-content: center; gap: 9px; width: 50%; padding: 14px 4px; color: #a8b7a5; font-size: 12px; }
.inventory-tabs .icon { width: 18px; height: 18px; }
.inventory-tabs button[aria-selected='true'] { color: #f0dda8; background: linear-gradient(#bfa77420, #bfa77408); box-shadow: inset 0 -2px #d2bb82; }
.inventory-grid #items-panel[hidden], .inventory-grid #skills-panel[hidden] { display: none; }
#items-panel, #skills-panel { padding: 12px 14px; min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #94865c66 transparent; }
#items-panel { display: flex; flex-direction: column; gap: 12px; }
.item-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(7, minmax(25px, 1fr)); gap: 1px; flex: 1; min-height: 181px; background: #c4b18320; border: 1px solid #c4b18328; }
.inventory-slot { position: relative; height: auto; border: 0; background: #1b2d25; display: grid; place-items: center; color: #d9c68e; }
.inventory-slot.occupied { background: radial-gradient(ellipse at center, #45503a, #23362b 80%); }
.inventory-slot.occupied:hover, .inventory-slot[aria-pressed='true'] { box-shadow: inset 0 0 0 1px #d7bd81; background: #4d5136; }
.inventory-slot .icon { width: 28px; height: 28px; filter: drop-shadow(0 2px 2px #08150f70); }
.inventory-slot small { position: absolute; right: 5px; bottom: 3px; font-size: 10px; color: #efe1b3; text-shadow: 0 1px 2px #000; }
.item-detail { flex: none; min-height: 48px; font-size: 11px; color: #aebba8; line-height: 1.5; padding: 11px 0 0; border-top: 1px solid #c5b38230; }
.item-detail strong { display: block; color: var(--gold); margin-bottom: 3px; }
.skills-heading { display: flex; justify-content: space-between; gap: 8px; margin: 4px 0 11px; color: var(--gold); font-size: 9px; letter-spacing: 1px; }
.skills-heading small { color: var(--muted); font-size: 8px; letter-spacing: 0.5px; text-align: right; line-height: 1.5; }
.skill-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.skill-tile { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5px 1px; padding: 9px 5px 6px; border: 1px solid #b4a77d50; background: linear-gradient(135deg, #7d7a611e, #101f19aa); box-shadow: inset 1px 1px #cdc09b0c; }
.skill-tile[aria-pressed='true'] { border-color: var(--gold); background: #bca36b25; }
.skill-tile:hover { background: #bca36b35; }
.skill-tile > .icon { color: var(--skill-color); width: 28px; height: 28px; }
.skill-level { display: flex; flex-direction: column; align-items: center; color: #efdc8f; }
.skill-level b { font: 18px Georgia, serif; }
.skill-level small { font-size: 8px; color: #c6bd98; border-top: 1px solid #bdaf7570; padding-top: 2px; }
.skill-name { grid-column: 1 / -1; font-size: 9px; color: #d9dbc6; }
.total-level { margin-top: 5px; padding: 8px; background: #07120db3; border: 1px solid var(--line); display: flex; justify-content: space-between; color: #e9d88c; font-size: 11px; }
.skill-detail { padding: 12px 1px 3px; }
.skill-detail-title { display: flex; justify-content: space-between; color: var(--cream); font: 15px Georgia, serif; }
.skill-detail-title span { font: 10px sans-serif; color: var(--gold); }
.skill-benefit { display: block; margin-top: 7px; color: #c6d8b1; font-size: 10px; font-weight: 500; }
.skill-detail p { font-size: 10px; line-height: 1.6; color: var(--muted); margin: 7px 0 10px; }
.skill-progress, .enemy-health { height: 5px; background: #080f0d; overflow: hidden; }
.skill-progress i, .enemy-health i { display: block; height: 100%; background: linear-gradient(90deg, #778654, #d6bc74); }
.skill-xp { display: flex; justify-content: space-between; margin-top: 6px; font-size: 9px; color: #d1c59c; }
.combat-target {
  position: absolute; top: 104px; left: 50%; transform: translateX(-50%);
  width: 320px; padding: 14px 16px 12px; pointer-events: auto;
  background: linear-gradient(150deg, #30392cf7, #101e19fa 65%);
  border: 1px solid #bfa57c80; border-top: 2px solid #cfb279;
  box-shadow: 0 12px 35px #07120e55, inset 0 0 0 3px #06110b38;
}
.combat-target[hidden] { display: none; }
.combat-title-row { display: flex; align-items: center; gap: 12px; }
.combat-emblem { width: 39px; height: 39px; border: 1px solid #b79b6170; display: grid; place-items: center; background: #cbb06d12; color: #dfbd75; transform: rotate(-5deg); }
.combat-emblem .icon { width: 27px; height: 27px; }
.combat-title-row > div { flex: 1; }
.combat-eyebrow { font-size: 8px; letter-spacing: 1.8px; color: #c7aa77; }
.combat-target h3 { margin: 4px 0 0; font: 17px Georgia, serif; color: #efe3c4; }
.combat-target button { padding: 0; align-self: flex-start; color: #a99a75; }
.combat-target button .icon { width: 16px; height: 16px; }
.combat-health-label { display: flex; justify-content: space-between; margin-top: 13px; font-size: 8px; letter-spacing: 1px; color: #a8b6a5; }
.combat-health-label strong { font-size: 10px; letter-spacing: 0; color: #ece2ca; font-weight: 500; }
.enemy-health { position: relative; height: 8px; margin-top: 5px; background: #080e0b; border: 1px solid #6b62503d; }
.enemy-health i { position: absolute; left: 0; top: 0; height: 100%; }
#enemy-health-lag { background: #d4b56e; }
#enemy-health-fill { background: linear-gradient(90deg, #874936, #d58b6b); transition: width 0.12s; }
.combat-timing { display: flex; justify-content: space-between; margin: 9px 0 5px; color: #b7bda4; font-size: 10px; }
.enemy-windup { height: 3px; background: #07140e; overflow: hidden; }
.enemy-windup i { display: block; height: 100%; background: #f9b274; box-shadow: 0 0 8px #ffc68b; }
.combat-target.incoming { border-top-color: #efa774; }
.combat-target.incoming .combat-eyebrow, .combat-target.incoming #enemy-action { color: #ffc48b; }
.combat-rhythm { display: flex; justify-content: space-between; margin-top: 11px; color: #d8c48c; font-size: 10px; }
.combo-pips { display: flex; gap: 5px; align-items: center; }
.combo-pips i { width: 7px; height: 7px; border: 1px solid #beac7266; transform: rotate(45deg); }
.combo-pips i.filled { background: #d2b56e; box-shadow: 0 0 5px #d2b56e44; }
.combo-pips i:last-child { border-color: #e39e61; }
.combat-notice { margin-top: 9px; padding: 6px 8px; border-left: 2px solid #d9bd79; background: #c5b16e15; font-size: 9px; color: #efd998; }
.combat-notice[hidden] { display: none; }
.combat-escape { display: block; margin-top: 10px; font-size: 8px; color: #8f9e8e; }
.combat-feedback { position: absolute; left: 50%; top: 337px; transform: translateX(-50%); opacity: 0; transition: opacity 0.15s; padding: 8px 14px; background: #12231ddd; border-radius: 3px; color: #efd794; font-size: 12px; max-width: 400px; text-align: center; }
.combat-feedback.visible { opacity: 1; }
.combat-feedback.hurt { color: #ffad98; }
.damage-popup { position: absolute; transform: translate(-50%, -100%); text-align: center; pointer-events: none; min-width: 90px; text-shadow: 0 2px 3px #000, 0 0 7px #000; }
.damage-popup strong { display: block; color: #fff0c5; font: bold 28px Georgia, serif; }
.damage-popup small { font-size: 8px; color: #e3d6a5; letter-spacing: 0.7px; }
.damage-popup.heavy strong { font-size: 34px; color: #ffcb73; }
.damage-popup.heavy small { color: #ffcf87; }
.damage-popup.hurt strong { color: #ffa78b; }
.damage-popup.hurt small { color: #e8b5a4; }
.damage-popup.miss strong { font: italic 16px Georgia, serif; color: #dce3ca; }
.damage-popup.zero strong { font: bold 28px Georgia, serif; color: #d2e4e7; }
.vitals b { font-weight: inherit; }
.actionbar { width: 424px; }
@media (max-width: 1100px) {
  .inventory-grid { right: 0; width: 266px; height: 388px; bottom: 100px; }
  .actionbar { width: 392px; }
  .hotkey { width: 45px; }
}
@media (max-width: 820px) {
  .inventory-grid { right: 0; width: 236px; bottom: 77px; max-height: calc(100vh - 265px); }
  .actionbar { width: 360px; left: 14px; }
  .hotkey { width: 42px; }
  .combat-target { top: 88px; width: 270px; padding: 10px 12px; }
  .combat-feedback { top: 316px; }
}

/* The journal belongs to the same compact panel as World and the adventure log. */
.chat { width: 366px; }
.chat nav { gap: 2px; padding-inline: 6px; }
.chat nav button { padding-inline: 10px; gap: 6px; white-space: nowrap; }
.chat-lines, .journal-content { height: 182px; }
.chat [hidden] { display: none; }
.journal-content { padding: 14px 16px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #94865c66 transparent; }
.journal-heading { display: flex; align-items: center; justify-content: space-between; color: #adbb9d; font-size: 8px; letter-spacing: 1.5px; }
.journal-heading .icon { width: 16px; height: 16px; color: #c3b77a; }
.journal-content h3 { margin: 5px 0 9px; font: 21px 'Greenvale Serif', Georgia, serif; color: #eedaa3; font-weight: 400; }
.journal-content #quest-objective { margin: 0 0 5px; color: #e4e8d4; font-size: 12px; line-height: 1.5; }
.journal-content .quest-note { display: block; margin: 0; color: #a6b49e; font-size: 10px; line-height: 1.6; }
.journal-reward { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 12px; font-size: 9px; color: #cbbb8b; }
.journal-reward .icon { width: 13px; height: 13px; }
.journal-reward > span { margin: 0 3px; color: #788f79; }
.journal-places { margin-top: 14px; padding-top: 11px; border-top: 1px solid #c5b38226; }
.journal-places summary { color: #d3d8bd; font-size: 10px; }
.journal-places summary b { float: right; font-weight: 400; color: #d7c58b; }
#journal-locations > div { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid #c5b38214; color: #819380; }
#journal-locations .known { color: #cfbb83; }
#journal-locations strong { display: block; font-size: 11px; font-weight: 400; }
#journal-locations small { display: block; color: #a4b09b; font-size: 9px; margin-top: 3px; }
#journal-locations .journal-province { display: flex; justify-content: space-between; margin: 14px 0 1px; font-size: 8px; font-weight: 400; letter-spacing: 2px; text-transform: uppercase; color: #d7c58b; }
#journal-locations .journal-province b { font-weight: 400; letter-spacing: .5px; color: #a4b09b; }
@media (max-width: 1100px) {
  .chat { width: 292px; }
  .chat nav button { padding-inline: 7px; gap: 4px; font-size: 10px; }
  .chat nav .icon { width: 13px; height: 13px; }
  .chat-lines, .journal-content { height: 174px; }
  .journal-content { padding: 12px; }
}
@media (max-width: 820px) {
  .chat { width: 278px; left: 14px; }
  .chat nav button { padding-inline: 5px; }
  .chat-lines, .journal-content { height: 166px; }
  .inventory-tabs button { padding-block: 11px; font-size: 11px; }
  #items-panel, #skills-panel { padding: 10px; }
}

.in-combat .toast { top: 332px; }
.in-combat:has(.toast.visible) .combat-feedback { top: 446px; }
.in-combat .region-reveal { display: none; }

/* Elara's first errand stays inside the journey panels while the player travels. */
.starter-invitation { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 10px 0 4px; color: #e8d7a5; }
.starter-invitation > .icon { width: 19px; height: 19px; flex-shrink: 0; }
.starter-invitation > .icon:last-child { width: 14px; margin-left: auto; }
.starter-invitation strong, .starter-invitation small { display: block; }
.starter-invitation small { margin-top: 3px; font-size: 10px; color: #bdc9ae; }
.starter-invitation:hover strong { color: #fff1bf; }
.journal-content { height: 258px; }
.quest-guide { width: 100%; display: flex; align-items: center; gap: 8px; border: 1px solid #d4c28c42; border-radius: 4px; padding: 9px; margin: 10px 0; background: #c6b5780b; color: #ecdaa6; font-size: 10px; text-align: left; }
.quest-guide[hidden] { display: none; }
.quest-guide:hover { background: #c6b57820; }
.quest-guide .icon { width: 15px; height: 15px; flex-shrink: 0; }
.quest-guide .icon:last-child { margin-left: auto; width: 12px; }
.quest-steps { display: flex; justify-content: space-between; gap: 6px; padding: 0; margin: 12px 0 0; list-style: none; }
.quest-steps li { display: flex; align-items: center; gap: 4px; font-size: 9px; color: #8e9d8b; }
.quest-steps li > span { display: grid; place-items: center; width: 15px; height: 15px; border: 1px solid #a9b7983d; border-radius: 50%; font-size: 8px; flex-shrink: 0; }
.quest-steps .current { color: #f0d698; }
.quest-steps .current > span { border-color: #c6b373; background: #c6b37322; }
.quest-steps .done { color: #b1ce9c; }
.quest-steps .done > span { border-color: #a1c08355; background: #99bd7320; }
.quest-brief { border: 1px solid #c4b87b4d; border-radius: 5px; padding: 16px; background: linear-gradient(130deg, #b1b9790a, #0d201c3d); margin: 22px 0; }
.quest-brief h3 { font: 24px 'Greenvale Serif', Georgia, serif; color: #ecd9a7; margin: 7px 0 15px; }
.quest-task { display: flex; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid #c4b87b26; }
.quest-task > .icon { width: 25px; height: 25px; color: #bed5a3; flex-shrink: 0; }
.quest-task strong { font-size: 12px; color: #e1e5cd; font-weight: 500; }
.quest-task small { display: block; margin-top: 5px; font-size: 10px; color: #aabb9c; line-height: 1.5; }
.quest-task > b { margin-left: auto; white-space: nowrap; font: 18px Georgia, serif; color: #ecd9a7; }
.quest-rewards { display: grid; gap: 12px; margin: 16px 0; }
.quest-rewards > span { display: grid; grid-template-columns: 26px 1fr; column-gap: 10px; align-items: center; }
.quest-rewards .icon { grid-row: span 2; width: 23px; height: 23px; color: #d4c081; }
.quest-rewards strong { font-size: 12px; font-weight: 500; color: #e7d9ac; }
.quest-rewards small { margin-top: 3px; font-size: 9px; color: #9eaf95; }
.quest-brief .quest-rewards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quest-brief .quest-rewards > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.quest-brief .quest-rewards strong { font-size: 10px; line-height: 1.5; }
.quest-brief .quest-rewards small { display: none; }
.dialogue-panel:has(.quest-brief) .dialogue-portrait { margin-bottom: 12px; }
.dialogue-panel:has(.quest-brief) .dialogue-portrait .icon { width: 32px; height: 32px; }
.quest-training { margin: 0; font-size: 10px; color: #adc69a; }
.quest-complete-crest { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid #d9c48260; border-radius: 50%; background: radial-gradient(#b9cb782e, transparent); margin: 0 auto 18px; box-shadow: 0 0 30px #c8bd7612; }
.quest-complete-crest .icon { width: 42px; height: 42px; color: #e3cd87; }
.quest-thanks { text-align: center; font: italic 18px/1.5 Georgia, serif; color: #eadab2; margin: 0; }
.quest-thanks small { display: block; margin-top: 8px; font: 9px sans-serif; letter-spacing: 1.2px; color: #aebb9b; }
.quest-complete-copy { margin: 22px 0; font-size: 12px; line-height: 1.8; color: #c3ceb7; text-align: center; }
.quest-complete-panel .quest-rewards { border-block: 1px solid #c4b87b30; padding: 19px 8px; }
.quest-level { color: #a9bf9a; text-align: center; font-size: 10px; line-height: 1.8; margin: 18px 0; }
.quest-level strong { color: #e4d19c; }
.quest-complete-panel .primary-button { width: 100%; }
@media (max-width: 1100px) {
  .journal-content { height: 250px; }
  .quest-steps { gap: 3px; }
  .quest-steps li { font-size: 8px; }
}
@media (max-height: 720px) {
  .journal-content { height: 210px; }
  .quest-complete-panel .panel-body { padding-block: 14px; }
  .quest-complete-crest { width: 48px; height: 48px; margin-bottom: 12px; }
  .quest-complete-crest .icon { width: 30px; height: 30px; }
  .quest-thanks { font-size: 16px; }
  .quest-complete-copy { margin-block: 14px; }
  .quest-complete-panel .quest-rewards { gap: 10px; margin-block: 12px; padding-block: 12px; }
  .quest-level { margin-block: 12px; }
}

/* Bronze equipment and the live strike sequence share the combat card's metalwork. */
.combat-target { width: 390px; border: 1px solid #ab93636b; border-top: 2px solid #d1aa67; background: radial-gradient(ellipse at 0 0, #69704a55, transparent 65%), linear-gradient(135deg, #24372dfa, #0c1918fa); box-shadow: 0 12px 32px #03120d60, inset 0 0 0 4px #09171388; }
.combat-target::before, .combat-target::after { content: '◆'; position: absolute; top: -7px; color: #d4b578; font-size: 9px; }
.combat-target::before { left: 7px; } .combat-target::after { right: 7px; }
.combat-target.sword-equipped { border-top-color: #d8a55c; background: radial-gradient(ellipse at 0 0, #95643135, transparent 70%), linear-gradient(135deg, #25372efa, #111c1bfa); }
.weapon-combat-details { margin-top: 11px; padding-top: 11px; border-top: 1px solid #b89e5f38; }
.weapon-summary { display: flex; align-items: center; gap: 11px; }
.weapon-medallion { position: relative; flex: 0 0 52px; height: 52px; border-radius: 50%; background: radial-gradient(circle, #b8995533, #0c191866 68%); }
.weapon-charge { position: absolute; inset: -2px; width: 56px; height: 56px; transform: rotate(-90deg); fill: none; stroke: #c5ac642f; stroke-width: 1; }
#weapon-charge-fill { stroke: #e7b76c; stroke-width: 2; stroke-dasharray: 170; stroke-dashoffset: 170; }
#combat-weapon-art { position: absolute; inset: 5px; display: grid; place-items: center; color: #d2c298; }
#combat-weapon-art svg { width: 42px; height: 42px; }
.weapon-description { flex: 1; }
.weapon-description small { color: #b3a17b; font-size: 7px; letter-spacing: 1.6px; }
.weapon-description strong { display: block; font: 17px Georgia, serif; color: #f0d5a0; margin: 2px 0 3px; }
.weapon-description > span { font-size: 9px; color: #aeba9c; }
.weapon-damage { border-left: 1px solid #b99b573b; padding-left: 13px; text-align: center; }
.weapon-damage strong { display: block; font: 25px Georgia, serif; color: #edc47f; }
.weapon-damage small { font-size: 7px; letter-spacing: 1px; color: #b0af90; }
.strike-sequence { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 10px; }
.strike-tile { position: relative; padding: 7px 6px; border: 1px solid #9a91613a; background: #06130f66; color: #9aaa92; transition: background .12s, border-color .12s; }
.strike-tile > small { font-size: 7px; color: #ab9163; letter-spacing: 1px; }
.strike-tile > span { display: block; font: 11px Georgia, serif; color: inherit; margin-top: 3px; }
.strike-tile > b { position: absolute; right: 6px; top: 7px; font-size: 7px; font-weight: 400; color: #b1b299; }
.strike-tile.current { color: #ffe4b1; border-color: #d8aa64; background: linear-gradient(130deg, #a5753738, #3c452438); box-shadow: inset 0 -2px 0 #d8aa64; }
.strike-tile.next { border-top-color: #9eaa79; }
.strike-tempo-heading { display: flex; justify-content: space-between; margin-top: 9px; font-size: 7px; letter-spacing: 1px; color: #b8b99a; }
#strike-phase { color: #d8b97f; }
.strike-tempo { position: relative; height: 3px; margin-top: 5px; background: #071510; }
.strike-tempo i { display: block; height: 100%; background: linear-gradient(90deg, #8f9a60, #e8b770); }
.strike-tempo b { position: absolute; width: 2px; height: 7px; top: -2px; background: #edd5a0; box-shadow: 0 0 5px #d5a76c66; }
.at-impact .weapon-medallion { box-shadow: 0 0 18px #dbaa6750; }
#inventory-wield { display: block; width: 100%; margin-top: 10px; padding: 8px; border: 1px solid #b99d5e77; background: #b2924920; color: #ecd497; font-size: 11px; cursor: var(--action-cursor); }
#inventory-wield:hover, #inventory-wield:focus-visible { border-color: #efd497; background: #b2924940; }
.in-combat .toast { top: 486px; }
.in-combat .combat-feedback { top: 476px; }
.in-combat:has(.toast.visible) .combat-feedback { top: 588px; }
.in-combat .interaction { bottom: 215px; }
@media (max-width: 1100px), (max-height: 850px) {
  .combat-target { top: 86px; width: 334px; padding: 11px 12px; }
  .weapon-combat-details { margin-top: 8px; padding-top: 8px; }
  .weapon-description strong { font-size: 15px; }
  .weapon-description > span { font-size: 8px; }
  .weapon-medallion { flex-basis: 43px; height: 43px; }
  .weapon-charge { width: 47px; height: 47px; }
  #combat-weapon-art svg { width: 33px; height: 33px; }
  .strike-tile { padding: 5px; }
  .strike-tile > span { font-size: 10px; }
  .combat-rhythm { margin-top: 7px; }
  .in-combat .toast { top: 436px; }
  .in-combat .combat-feedback { top: 433px; }
  .in-combat:has(.toast.visible) .combat-feedback { top: 540px; }
}
@media (prefers-reduced-motion: reduce) { .strike-tile { transition: none; } }

/* Keep the centre of the battlefield clear, including on compact displays. */
.combat-target { left: 28px; transform: none; z-index: 10; }
.inventory-grid, .chat, .map-cluster { z-index: 8; }
.damage-popup { z-index: 3; }
@media (max-width: 1100px) { .combat-target { left: 20px; } }
@media (max-width: 820px) { .combat-target { left: 14px; width: 278px; } }
@media (max-height: 720px) {
  .combat-target { top: 16px; }
  .in-combat .chat-lines, .in-combat .journal-content { height: 130px; }
}
@media (max-width: 820px) {
  .chat { bottom: 182px; }
  .in-combat .chat-lines, .in-combat .journal-content { height: 50px; padding-block: 6px; }
  .in-combat .chat-footer, .in-combat .combat-rhythm { display: none; }
}

/* Crownreach: service counters and commissions use the existing parchment HUD. */
.city-panel { width: min(740px, calc(100vw - 36px)); }
.city-panel .panel-body { max-height: 67vh; overflow-y: auto; overflow-anchor: none; scrollbar-gutter: stable; }
.city-intro { line-height: 1.6; color: #c9c5ac; margin: 0 0 14px; }
.city-balance { display:flex; align-items:center; gap:8px; padding:12px 0; color:#e1c486; }
.city-balance svg { width:22px; height:22px; }
.city-service-row { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid #bca87533; }
.city-service-row strong, .city-service-row small { display:block; }
.city-service-row small { color:#9fa58e; margin-top:5px; }
.city-row-actions { display:flex; gap:6px; flex-wrap:wrap; justify-content:flex-end; }
.city-item-summary { flex:1;min-width:0;font-variant-numeric:tabular-nums; }
.city-row-actions.log-sale-actions { flex:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr)); }
.log-sale-actions button { white-space:nowrap; }
.bram-greeting { margin-bottom:8px; }
.bram-greeting summary { color:var(--muted);cursor:var(--action-cursor);font-size:12px; }
.bram-greeting .city-intro { margin-top:12px; }
.bram-shop-toolbar { display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);gap:10px;padding:12px 0;border-block:1px solid #a78b5c55; }
.bram-shop-toolbar label { display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11px;color:var(--muted); }
.bram-shop-toolbar select { width:100%;min-height:36px;padding:7px;color:var(--ink);background:#e5d6b6;border:1px solid #a68d61;font:13px Georgia,serif;border-radius:3px; }
.bram-starter { margin:12px 0 0; }
.bram-stock .city-row-actions { flex:none; }
.bram-stock .city-row-actions button { min-width:130px;white-space:nowrap; }
.bram-empty { padding:20px 0;font-size:13px;line-height:1.6;color:var(--muted); }
@media(max-width:600px){
  .bram-shop-toolbar { grid-template-columns:1fr 1fr; }
  .bram-shop-toolbar label:first-child { grid-column:1 / -1; }
  .bram-stock .city-service-row { flex-wrap:wrap; }
  .bram-stock .city-item-summary { flex-basis:100%; }
  .bram-stock .city-row-actions { margin-left:48px; }
}
.city-panel [data-city-action] { padding:9px 12px; background:#b7a06b12; border:1px solid #c6ad704a; color:#e2d4ad; border-radius:4px; cursor:var(--action-cursor); font:inherit; font-size:13px; }
.city-panel [data-city-action]:hover:not(:disabled) { background:#b7a06b35; border-color:#d8b76c; }
.city-panel [data-city-action]:disabled { opacity:.35; cursor:default; }
.city-commission { border:1px solid #bca87544; border-radius:5px; padding:15px; margin:14px 0; }
.city-commission h3 { margin:7px 0; color:#e2cca0; font-family:Georgia,serif; font-size:22px; }
.city-commission small { color:#ac9565; letter-spacing:.1em; font-size:10px; }
.city-commission p { line-height:1.5; color:#bdc1aa; }
.city-commission .city-reward { color:#d9ba7f; font-size:13px; }
.city-feedback { min-height:3em; color:#efcd8e; line-height:1.5; }
.city-journal { border-top:1px solid #bca87533; margin-top:14px; padding-top:12px; }
.city-journal summary { color:#d7c396; cursor:var(--action-cursor); display:flex; justify-content:space-between; }
.city-journal article { margin:12px 0; padding-left:8px; border-left:2px solid #aa91595c; }
.city-journal strong, .city-journal small { display:block; }
.city-journal small { color:#bfa574; font-size:10px; margin-top:4px; }
.city-journal p { color:#9fa993; font-size:11px; line-height:1.5; }

.city-map-controls { display:flex; gap:8px; margin-bottom:8px; }
.city-map-controls .primary-button { padding:7px 14px; margin:0; font-size:12px; }
/* A quiet room directory follows the player through Crownreach's interiors. */
.interior-guide {
  position: absolute; left: 24px; top: 142px; width: 246px;
  padding: 17px 18px 15px; box-sizing: border-box; pointer-events: none;
  color: #eee3ca; background: linear-gradient(135deg, rgba(27,44,43,.96), rgba(18,28,30,.94));
  border: 1px solid #aa8a526e; border-top: 2px solid #c8a86b;
  border-radius: 3px 3px 12px 3px; box-shadow: 0 8px 28px #0004, inset 0 0 0 4px #c6a36a09;
}
.interior-guide[hidden] { display: none; }
.interior-guide > span { display: block; font-size: 9px; line-height: 1.55; letter-spacing: 1.2px; text-transform: uppercase; color: #c4b48f; }
.interior-guide > strong { display: block; margin: 7px 0 13px; font: 20px/1.2 Georgia, serif; font-weight: normal; }
#interior-plan { display: block; width: 100%; height: auto; margin: -4px 0 10px; }
#interior-floors { display: flex; align-items: center; gap: 5px; padding-top: 12px; border-top: 1px solid #be9f6535; }
#interior-floors > span { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #a98b5355; border-radius: 3px; font: 12px Georgia, serif; color: #9b9d8d; }
#interior-floors > span[aria-current] { color: #172d2b; background: #d2b67a; border-color: #e8cc93; }
#interior-floors em { margin-left: 5px; font: 11px Georgia, serif; color: #d6c7a9; }
.interior-guide > small { display: block; margin-top: 12px; font-size: 10px; line-height: 1.6; color: #a9bbb2; }
@media (max-width: 900px) { .interior-guide { left: 14px; width: 206px; top: 112px; padding: 12px; } }

/* A hollow, rounded pointer keeps the world visible, with gold accents on controls. */
select, input[type="range"], input[type="checkbox"], summary, a { cursor: var(--action-cursor); }
button:disabled, select:disabled, input:disabled { cursor: var(--game-cursor); }
/* Shared skill/weapon controls stay available outside encounters. */

.damage-popup.critical strong { font-size: 34px; color: #ffce70; }
.damage-popup.critical small { color: #ffe3a5; }
.damage-popup.blocked strong, .damage-popup.absorbed strong { font-size: 20px; color: #aee1f4; }
.damage-popup.blocked small, .damage-popup.absorbed small { color: #b8dfe9; }
