@import url('/account.css?v=2df565d7c08a');
@font-face {
  font-family: Almendra;
  src: url('./assets/Almendra-Regular.ttf?v=ad13e6059f80') format('truetype');
  font-display: swap;
}
:root {
  font:
    14px/1.35 Almendra,
    Georgia,
    serif;
  color: #e2d8ba;
  background: #242822;
  --gold: #d6ba68;
  --muted: #b2aa91;
  --edge: #706951;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  height: 100dvh;
  overflow: hidden;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: #eadbb4;
  background: linear-gradient(#625b47, #484334);
  border: 1px solid #897d5b;
  border-right-color: #27271f;
  border-bottom-color: #27271f;
  border-radius: 0;
  padding: 6px 9px;
  box-shadow: inset 1px 1px #aba07c30;
}
button:hover {
  color: #fff0aa;
  background: #665e44;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
button:focus-visible,
a:focus-visible {
  outline: 1px solid #e9d28c;
  outline-offset: 2px;
}
a {
  color: var(--gold);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3 {
  font-family: Almendra, Georgia, serif;
  font-weight: 400;
  color: #e3cb8b;
}
h1 {
  font-size: 22px;
}
h2 {
  font-size: 20px;
  margin: 3px 0 10px;
}
h3 {
  font-size: 16px;
  margin: 4px 0 8px;
}
p {
  margin: 8px 0;
}
small,
.quiet {
  color: var(--muted);
  font-size: 11px;
}
kbd {
  font: 10px Arial;
  color: #bcb496;
  margin-left: 5px;
}
.sidebar-header {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 10px;
  border-bottom: 2px solid #151b16;
  background: #33372e;
}
.sidebar-header > a {
  font:
    20px Almendra,
    Georgia;
  text-decoration: none;
}
.sidebar-header > span:nth-child(2) {
  color: #c1b99e;
}
#save-status {
  margin-left: auto;
  color: #aab496;
  font-size: 10px;
}
.sidebar-header button {
  font-size: 10px;
  padding: 3px 8px;
}
.error {
  color: #e4a38b !important;
}
.game-layout {
  height: 100dvh;
  display: grid;
  position: relative;
  --panel-width: 286px;
}
.world-column {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.viewport {
  flex: 1;
  position: relative;
  min-height: 0;
  background: #91a073;
}
#world {
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
}
.camera-controls {
  position: absolute;
  top: 12px;
  right: calc(var(--panel-width) + 12px);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 30px);
  gap: 3px;
}
.camera-controls button {
  padding: 2px 8px;
  opacity: 0.8;
}
.sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  position: absolute;
  inset: 0 0 0 auto;
  width: var(--panel-width);
  justify-content: space-between;
  pointer-events: none;
}
.map-frame {
  height: 170px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 25px;
  flex-shrink: 0;
  position: relative;
  border-bottom: 4px ridge #8a8061;
  background: #293d27;
}
.map-frame canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}
.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 0 5px;
  border-top: 1px solid #706951;
  background: #34382d;
}
.map-caption button {
  font-size: 10px;
  padding: 3px 8px;
}
.map-caption span {
  color: #eed79d;
  font-size: 10px;
  text-shadow: 1px 1px #000;
}
.character-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  padding: 7px 8px;
  border-bottom: 2px groove #827451;
}
#player-name {
  font-weight: bold;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.coins {
  font-size: 10px;
  color: #e5c163;
}
.health {
  height: 15px;
  position: relative;
  flex: 1;
  min-width: 76px;
  background: #231f19;
  border: 1px solid #817557;
}
.health i {
  display: block;
  height: 100%;
  width: 100%;
  background: #64823f;
}
.health span {
  position: absolute;
  inset: 0;
  text-align: center;
  font-size: 10px;
  white-space: nowrap;
  text-shadow: 1px 1px #222;
}
.character-summary button {
  padding: 2px 5px;
  font-size: 10px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px;
  background: #2e2e26;
  border-bottom: 3px ridge #91815b;
}
.tabs button {
  font:
    14px Almendra,
    Georgia;
  padding: 7px 2px;
}
.tabs button.selected {
  color: #ffdf7c;
  background: #696046;
  border-color: #b29b59;
}
.panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 11px;
  scrollbar-width: thin;
  scrollbar-color: #897b59 #322f27;
}
.panel-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 9px;
}
.panel-heading h3 {
  margin: 0;
}
.panel-heading small {
  font-size: 9px;
}
.inventory {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.item {
  height: 44px;
  position: relative;
  background: transparent;
  border: 1px solid #554d3b55;
  padding: 5px;
}
.item.equipped {
  border-color: #b79d53;
}
.quantity {
  position: absolute;
  left: 3px;
  top: 1px;
  color: #ffdf66;
  font-size: 10px;
  text-shadow: 1px 1px #000;
}
.empty {
  height: 44px;
  border: 1px solid #524d3a;
  background: transparent;
}
.equipment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
}
.equipment > div {
  border: 1px solid #7b6e4c;
  text-align: center;
  padding: 7px 2px;
  background: #343127;
}
.equipment small,
.equipment span {
  display: block;
  font-size: 10px;
}
.rule {
  height: 1px;
  background: var(--edge);
  margin: 12px 0;
}
.progress {
  height: 4px;
  background: #221f19;
  border-top: 1px solid #1a1c17;
}
.progress i {
  display: block;
  height: 100%;
  background: #baa262;
  width: 0;
}
.quest {
  border-bottom: 1px solid #776a4d;
  padding: 9px 0;
}
.quest header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 7px;
}
.quest strong {
  font:
    16px Almendra,
    Georgia;
  color: #e3cc91;
}
.quest p {
  font-size: 11px;
  color: #beb59a;
}
.quest button {
  margin-top: 7px;
  width: 100%;
  font-size: 11px;
}
.tag {
  font-size: 9px;
  color: #bca879;
  white-space: nowrap;
}
.requirements {
  font-size: 10px;
  line-height: 1.8;
  color: #c9bea0;
}
.requirements .missing {
  color: #c79d86;
}
.requirements .ready {
  color: #becd8e;
}
.recipe-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 90px;
  gap: 5px;
  margin-bottom: 7px;
}
.recipe-book select,
.recipe-book input[type='search'] {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 6px;
  background: #302e24;
  border: 1px solid #7b7052;
  color: #dfd3ac;
  font:
    14px Almendra,
    Georgia,
    serif;
}
.recipe-book input[type='search'] {
  margin-bottom: 8px;
}
.recipe-entry {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 49px;
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid #776a4d;
  background: transparent;
  color: #e3cc91;
  text-align: left;
  font:
    15px Almendra,
    Georgia,
    serif;
}
.recipe-entry small {
  display: block;
  margin-top: 2px;
  color: #beb59a;
  font-size: 12px;
}
.recipe-entry b {
  text-align: right;
  color: #bca879;
  font-size: 12px;
  font-weight: normal;
}
.recipe-entry.recipe-unlearned {
  color: #b9af94;
}
.recipe-unlearned .item-sprite {
  opacity: 0.6;
}
.recipe-book .recipe-product {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 14px 0 7px;
  color: #e3cc91;
}
.recipe-book p {
  font-size: 14px;
  line-height: 1.35;
}
.recipe-book .requirements {
  font-size: 13px;
}
.recipe-book h4 {
  margin: 16px 0 6px;
  color: #d2bd87;
}
.recipe-book .recipe-facts,
.recipe-book .quiet {
  color: #beb59a;
  font-size: 12px;
}
.recipe-not-ready {
  color: #d0a68a;
}
.recipe-make {
  width: 100%;
  margin-top: 6px;
}
.recipe-detail {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.recipe-detail > .panel-back {
  align-self: flex-start;
  flex-shrink: 0;
}
.recipe-copy {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  padding-right: 5px;
}
.recipe-footer {
  flex-shrink: 0;
  border-top: 1px solid #776a4d;
  padding-top: 5px;
}
.recipe-footer .quiet {
  margin: 5px 0 0;
}
.sidebar-foot {
  border-top: 2px groove #817354;
  padding: 5px 9px;
  color: #b2a887;
  font-size: 10px;
  flex-shrink: 0;
}
.journal-log {
  position: absolute;
  z-index: 3;
  bottom: 0;
  left: 0;
  height: 132px;
  flex-shrink: 0;
  border: 4px ridge #897c58;
  background: #d1c39a;
  color: #363323;
  padding: 4px 8px;
}
.world-column:has(#conversation:not([hidden])) .journal-log {
  visibility: hidden;
  pointer-events: none;
}
.viewport:has(#milestone:not([hidden])) #conversation {
  visibility: hidden;
}
.log-heading {
  display: flex;
  justify-content: space-between;
  font: bold 11px Georgia;
  color: #5b5135;
  border-bottom: 1px solid #a99a70;
  padding-bottom: 2px;
}
#messages {
  height: 72px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}
#messages p {
  font-size: 11px;
  margin: 1px 0;
  color: #353b2a;
}
#messages p.highlight {
  color: #67501b;
  font-weight: bold;
}
#messages time {
  font-size: 9px;
  color: #7f7456;
  margin-right: 6px;
}
#action {
  position: absolute;
  z-index: 4;
  width: 190px;
  transform: translate(-50%, -100%);
  color: #ffe592;
  text-shadow: 1px 1px 2px #17180e;
  pointer-events: none;
}
#action button {
  pointer-events: auto;
}
#action .progress {
  height: 8px;
  background: #3d3726;
  border: 1px solid #221f15;
}
#action .progress i {
  background: #dec14f;
}
#action-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.npc-speech {
  display: block;
  white-space: normal;
  max-width: 240px;
  color: #fff19b;
  font-size: 16px;
  text-align: center;
  text-shadow: 1px 1px 2px #111;
}
.quest-gain {
  color: #ffe083;
  font-size: 17px;
  font-weight: bold;
}

#action .action-head {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}

#action-title {
  flex: 1;
  font-size: 11px;
}
#action button {
  padding: 1px 8px;
  font-size: 10px;
}
#welcome {
  padding: 14px 12px;
  border-bottom: 1px solid #756a4e;
}
#welcome h1 {
  margin: 0 0 7px;
}
#welcome button {
  width: 100%;
}
#welcome p {
  font-size: 10px;
  color: #b4ab91;
}
.panel-back {
  font-size: 10px;
  padding: 3px 8px;
  margin-bottom: 9px;
}
.item-detail {
  display: flex;
  gap: 12px;
  align-items: center;
}
.item-detail h2 {
  font-size: 18px;
  margin-bottom: 4px;
}
.eyebrow {
  font-size: 9px;
  color: #b5a887;
}
.dialog-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin: 10px 0;
}
.dialog-actions button {
  flex: 1;
  font-size: 11px;
}
.storage-quantity {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0;
}
.storage-quantity label {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: 1;
  min-width: 0;
}
.storage-quantity input {
  width: 58px;
  min-width: 0;
  padding: 5px 3px;
  font: inherit;
  color: inherit;
  background: #302f24;
  border: 1px solid var(--edge);
}
.settings-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #6a6149;
}
.settings-row input[type='range'] {
  width: 110px;
  accent-color: #c2a75c;
}
.shop-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.shop-row {
  display: flex;
  gap: 5px;
  align-items: center;
  border-bottom: 1px solid #675d44;
  padding: 4px 0;
}
.shop-row > div {
  flex: 1;
  font-size: 13px;
}
.shop-row small {
  display: block;
  font-size: 11px;
}
.shop-row button {
  padding: 3px 5px;
  font-size: 12px;
  min-width: 64px;
}
.shop-quantity {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  gap: 3px;
  align-items: center;
  margin: 8px 0;
  font-size: 12px;
}
.shop-quantity button {
  padding: 4px 2px;
  font-size: 12px;
}
.shop-quantity button[aria-pressed='true'] {
  background: #756344;
  color: #fff0bd;
  border-color: #c8b47a;
}
.controls-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}
.controls-list kbd {
  min-width: 55px;
  display: inline-block;
  margin: 0 6px 0 0;
  color: #e0c67c;
}
.toast {
  position: fixed;
  left: 12px;
  bottom: 142px;
  background: #2a2b21e8;
  color: #e9d8a3;
  border: 1px solid #9c8655;
  padding: 7px 10px;
  max-width: 350px;
  z-index: 8;
  font-size: 11px;
  pointer-events: none;
}
.toast.error {
  color: #e9ad93;
}
.world-label {
  position: absolute;
  transform: translate(-50%, -100%);
  pointer-events: auto;
  text-shadow: 1px 1px 2px #000;
  cursor: pointer;
  white-space: nowrap;
}
.quest-marker {
  font: bold 25px Georgia;
  color: #ffe36c;
}
.target-name {
  font: 11px Arial;
  color: #fff0c1;
  display: block;
  text-align: center;
}
.target-health {
  display: block;
  width: 54px;
  height: 6px;
  background: #842d22;
  border: 1px solid #171e17;
}
.target-health i {
  display: block;
  height: 100%;
  background: #679c3c;
}
#world-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.combat-hit {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: 28px;
  height: 28px;
  padding: 3px;
  box-sizing: border-box;
  text-align: center;
  color: #fff1d7;
  background: #982d25;
  font-size: 18px;
  font-weight: bold;
  line-height: 22px;
  text-shadow: 1px 1px #28170e;
  clip-path: polygon(
    50% 0,
    66% 15%,
    90% 10%,
    85% 35%,
    100% 50%,
    85% 65%,
    90% 90%,
    65% 85%,
    50% 100%,
    35% 85%,
    10% 90%,
    15% 65%,
    0 50%,
    15% 35%,
    10% 10%,
    35% 15%
  );
}
#activity-label.under-attack {
  color: #ffa78a;
}
#account-panel.account-panel {
  position: static;
  inset: auto;
  background: none;
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px;
  z-index: auto;
  display: block;
}
#account-panel .save-window {
  position: static;
  transform: none;
  width: 100%;
  max-width: none;
  border: 0;
  background: none;
  padding: 0;
  box-shadow: none;
}
#account-panel label {
  font-size: 11px;
}
#account-panel input {
  max-width: 100%;
}
#account-panel .save-actions {
  flex-wrap: wrap;
}
#account-panel button {
  font-size: 11px;
}
.sidebar:has(#account-panel:not([hidden])) #panel,
.sidebar:has(#account-panel:not([hidden])) #welcome {
  display: none;
}
#account-panel .work-heading {
  font:
    20px Almendra,
    Georgia;
  color: #e3cb8b;
}
@media (max-height: 650px) {
  .map-frame {
    height: 130px;
  }
  .journal-log {
    height: 108px;
  }
  #messages {
    height: 55px;
  }
}
@media (max-width: 850px) {
  .game-layout {
    --panel-width: 252px;
  }
  .tabs button {
    font-size: 10px;
  }
  .sidebar-header {
    gap: 10px;
  }
  .item,
  .empty {
    height: 49px;
  }
  .map-frame {
    height: 145px;
  }
}
.item-sprite {
  --sprite-size: 32px;
  display: inline-block;
  width: var(--sprite-size);
  height: var(--sprite-size);
  flex-shrink: 0;
  background-image: var(--sprite-sheet);
  background-repeat: no-repeat;
  background-size: calc(var(--sprite-cols) * var(--sprite-size))
    calc(var(--sprite-rows) * var(--sprite-size));
  background-position: calc(var(--sprite-x) * var(--sprite-size) * -1)
    calc(var(--sprite-y) * var(--sprite-size) * -1);
  image-rendering: pixelated;
  vertical-align: middle;
  filter: drop-shadow(1px 1px #17171099);
}
.item-detail .item-sprite {
  --sprite-size: 48px;
}
.equipment .item-sprite {
  margin: 2px auto;
}
.quantity {
  font:
    11px Consolas,
    monospace;
}
.quest p {
  font-size: 13px;
}
.quest button {
  font-size: 13px;
}
#messages p {
  font:
    15px/1.4 Almendra,
    Georgia,
    serif;
}
.log-heading {
  font:
    14px Almendra,
    Georgia,
    serif;
}
.map-panel,
.menu-panel {
  pointer-events: auto;
  border: 4px ridge #8a8061;
  background: repeating-linear-gradient(0deg, #ffffff02 0 1px, transparent 1px 4px), #494233;
  box-shadow: inset 0 0 12px #0004;
}
.menu-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: min(520px, calc(100dvh - 234px));
}
.journal-log {
  width: min(580px, calc(100% - var(--panel-width) - 16px));
  margin-right: 0;
}
#item-gains {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.item-gain {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 5px;
  transform: translate(-50%, -100%);
  color: #ffe6a0;
  font-size: 18px;
  white-space: nowrap;
  text-shadow:
    -1px -1px #1d2318,
    1px 1px #1d2318,
    0 2px 2px #111;
}
.item-gain .item-sprite {
  --sprite-size: 24px;
}
.item-gain.damage-gain {
  color: #ff9b82;
}
@media (max-height: 650px) {
  .menu-panel {
    height: calc(100dvh - 190px);
  }
}

.conversation {
  display: flex;
  flex-direction: column;
  position: absolute;
  z-index: 6;
  bottom: 10px;
  left: calc((100% - var(--panel-width)) / 2);
  transform: translateX(-50%);
  width: min(640px, calc(100% - var(--panel-width) - 20px));
  height: min(340px, 60%);
  max-height: 60%;
  overflow: hidden;
  padding: 10px 16px;
  color: #342c1f;
  background: #d3c39a;
  border: 5px ridge #8d7950;
  box-shadow: 2px 3px #171c1488;
}
.conversation header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
}
.conversation-content {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #8d7950 #c8b88e;
}
.conversation h2 {
  color: #644d25;
  font:
    22px Almendra,
    Georgia,
    serif;
  margin: 0;
}
.conversation header button {
  padding: 0 6px;
  border: 0;
  background: none;
  color: #5c492d;
  font: 22px Georgia;
}
.conversation p {
  font-size: 17px;
  line-height: 1.25;
  margin: 8px 0;
}
.conversation small {
  color: #716044;
  font-size: 12px;
}
.work-order {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 5px;
  font-size: 16px;
}
.work-order label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.work-order input {
  width: 64px;
  padding: 2px 5px;
  font: inherit;
  color: #342c1f;
  background: #ead7ac;
  border: 1px solid #8b7852;
}
.work-order button {
  padding: 3px 10px;
  color: #203b76;
  background: #c9b587;
  border: 1px solid #8b7852;
  box-shadow: none;
  font: inherit;
}
.conversation-choices {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.conversation-choices button {
  border: 0;
  box-shadow: none;
  background: none;
  color: #203b76;
  text-align: left;
  padding: 3px 5px;
  font-size: 16px;
}
.conversation-choices button:hover {
  color: #31599d;
  background: #bca87544;
}
.conversation-choices button span {
  color: #6b5635;
  margin-right: 7px;
}
.station-recipes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}
.station-recipes button {
  display: flex;
  align-items: center;
  gap: 5px;
  text-align: left;
  background: #c1ae80;
  color: #3c3021;
  border: 1px solid #9a865a;
  font-size: 14px;
}
.station-recipes small {
  display: block;
  font-size: 11px;
}
.station-recipes button:disabled {
  opacity: 1;
  background: #d5c6a4;
  color: #66563e;
}
.station-recipes .recipe-requirement {
  margin-top: 4px;
}
.context-menu {
  position: absolute;
  z-index: 9;
  width: 236px;
  max-height: 90%;
  overflow: auto;
  border: 3px ridge #96865f;
  padding: 3px;
  background: #302d24;
  box-shadow: 2px 2px #0008;
}
.context-menu strong {
  display: block;
  color: #d9cba4;
  padding: 2px 5px;
  font-weight: normal;
}
.context-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 3px 6px;
  font-size: 15px;
}
.context-menu button span {
  color: #eac56c;
}
.context-menu button:hover {
  color: #fff;
  background: #5e5138;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
}
.skills-grid .skill {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 38px;
  min-height: 38px;
  padding: 2px 3px;
  background: #3d382b;
  border: 2px ridge #857653;
}
.skill .item-sprite {
  --sprite-size: 28px;
}
.skill-numbers {
  position: relative;
  width: 25px;
  height: 30px;
  font:
    16px/1 Consolas,
    monospace;
  color: #e4c43e;
  text-shadow: 1px 1px #111;
}
.skill-numbers b:first-child {
  position: absolute;
  left: 0;
  top: 2px;
}
.skill-numbers b:last-child {
  position: absolute;
  right: 0;
  bottom: 2px;
}
.skill-numbers i {
  position: absolute;
  width: 34px;
  height: 1px;
  background: #a39369;
  transform: rotate(-48deg);
  top: 15px;
  left: -5px;
}
.skill-total {
  text-align: center;
  margin: 4px 0;
  padding: 3px;
  border: 2px ridge #8b7850;
  font-size: 15px;
  color: #e9d8a3;
}
#hover {
  position: absolute;
  z-index: 7;
  pointer-events: none;
  transform: translate(-50%, -100%);
  text-align: center;
  max-width: 280px;
  white-space: nowrap;
  color: #ffdf76;
  font:
    17px/1.15 Almendra,
    Georgia,
    serif;
  text-shadow:
    1px 1px #161a11,
    -1px -1px #161a11,
    1px -1px #161a11,
    -1px 1px #161a11,
    0 2px 3px #111;
}
#hover small {
  display: block;
  font-size: 13px;
  color: #fff0bd;
}
#atlas-map {
  position: absolute;
  inset: 10px;
  z-index: 8;
  display: grid;
  grid-template-rows: 45px minmax(0, 1fr) 28px;
  border: 5px ridge #8c7a55;
  background: #293b2a;
  color: #e9d5a4;
  box-shadow: 2px 3px #17201488;
}
#atlas-map header {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 4px 8px;
  background: #47402e;
  border-bottom: 2px groove #99835c;
}
#atlas-map h2 {
  font-size: 23px;
  flex: 1;
  margin: 0;
}
#atlas-map button {
  padding: 2px 10px;
  font-size: 17px;
}
#atlas-map canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  cursor: grab;
}
#atlas-map canvas:active {
  cursor: grabbing;
}
#atlas-map footer {
  padding: 3px 10px;
  font-size: 14px;
  background: #47402e;
  border-top: 2px groove #99835c;
}
#milestone {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: absolute;
  z-index: 9;
  left: calc((100% - var(--panel-width)) / 2);
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - var(--panel-width) - 20px));
  height: min(440px, calc(100% - 24px));
  min-height: 0;
  padding: 12px 18px;
  max-height: calc(100% - 24px);
  text-align: center;
  color: #3e321d;
  overflow: hidden;
}
#milestone > :not(.milestone-copy) {
  flex-shrink: 0;
}
.milestone-copy {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow: auto;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #8f7449 #dfcca3;
}
.milestone-methods {
  margin: 4px 0 8px;
  font-size: 16px;
}
.milestone-methods summary {
  cursor: pointer;
  color: #76551f;
}
.milestone-methods ul {
  padding-left: 26px;
  margin: 6px 0;
  text-align: left;
}
.milestone-methods li {
  margin: 3px 0;
  line-height: 1.35;
}
#milestone > .item-sprite {
  --sprite-size: 36px;
  position: relative;
  z-index: 1;
}
#milestone h2 {
  color: #815c18;
  font-size: 30px;
  margin: 4px 0;
}
#milestone h3 {
  color: #4b3b1e;
  font-size: 22px;
  margin: 5px 0 10px;
}
#milestone p {
  font-size: 16px;
  line-height: 1.35;
  margin: 4px 0;
}
#milestone button {
  padding: 5px 28px;
  margin-top: 8px;
  min-height: 31px;
  background: #776143;
  border: 2px ridge #9f885c;
  color: #f3e4bd;
}
.sidebar-header {
  height: auto;
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 8px;
  padding: 5px 8px;
}
.sidebar-header > a {
  font-size: 18px;
  grid-column: 1;
  grid-row: 1;
}
#region-name {
  grid-column: 1;
  grid-row: 2;
  font-size: 11px;
}
#save-status {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  text-align: right;
  max-width: 110px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#account-button {
  grid-column: 2;
  grid-row: 1;
}
#quest-tracker {
  position: absolute;
  top: 12px;
  left: 14px;
  z-index: 3;
  pointer-events: none;
  max-width: min(310px, calc(100% - var(--panel-width) - 100px));
  color: #f0d880;
  text-shadow:
    1px 1px #101a0e,
    -1px -1px #101a0e;
}
#quest-tracker header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}
#quest-tracker button {
  pointer-events: auto;
  width: fit-content;
  max-width: 100%;
  display: block;
  background: none;
  box-shadow: none;
  border: 0;
  padding: 2px 0;
  color: #eee0b5;
  text-align: left;
  font-size: 14px;
  text-shadow: inherit;
}
#quest-tracker header button {
  padding: 0 5px;
}
#quest-tracker .complete {
  color: #a9cf80;
  opacity: 1;
}
#quest-tracker button:disabled {
  pointer-events: none;
}
#quest-tracker button:not(:disabled):hover {
  color: #fff5c5;
}
#action .action-head {
  flex-wrap: wrap;
  gap: 3px 6px;
}
.log-heading {
  align-items: center;
  gap: 10px;
}
.log-heading > span:first-child {
  flex: 1;
}
#toggle-log {
  font-size: 11px;
  padding: 1px 6px;
  color: #51482d;
  background: #c1b186;
}
.journal-log.collapsed {
  height: 54px;
}
.journal-log.collapsed #messages {
  height: 23px;
  overflow: hidden;
}
.journal-log.collapsed #messages p:not(:first-child) {
  display: none;
}
.journal-log.collapsed #messages p {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
}

#quest-tracker p {
  max-width: 280px;
  font-size: 14px;
  line-height: 1.3;
  margin: 4px 0;
  color: #eee0b5;
  text-shadow: 1px 1px 2px #1a1d12;
}
.settings-row small,
.training-method small {
  display: block;
  font-size: 11px;
  line-height: 1.3;
  color: #c2b48f;
}
.training-method {
  border-bottom: 1px solid #6a6149;
}
.training-method summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  cursor: pointer;
}
.training-method summary::before {
  content: '+';
  color: #dfc879;
}
.training-method[open] summary::before {
  content: '−';
}
.training-method summary > span:first-child {
  flex: 1;
  min-width: 0;
}
.training-method > div {
  padding: 0 0 4px 16px;
}
.training-method > div p {
  margin: 0 0 8px;
  line-height: 1.35;
}

/* The same active parchment asset frames introductions, celebrations and dialogue. */
.scroll-surface {
  background: #ead9b4;
  background-clip: padding-box;
  border: solid transparent;
  border-width: 46px 32px;
  border-image: url('./assets/scroll.png?v=ad13e6059f80') 160 110 fill / 46px 32px / 0 stretch;
  color: #3d3020;
  box-shadow: none;
}
#milestone[data-welcome] {
  z-index: 13;
  width: min(620px, calc(100% - var(--panel-width) - 20px));
  height: min(500px, calc(100% - 24px));
  padding: 12px 20px;
}

.conversation.scroll-surface {
  padding: 10px 14px;
  border-width: 46px 32px;
}
@media (max-height: 650px) {
  #milestone[data-welcome] {
    padding: 8px 16px;
  }
  #milestone[data-welcome] p {
    font-size: 14px;
    margin: 5px 0;
  }
  #milestone[data-welcome] h2 {
    font-size: 25px;
  }
}

.quest-search {
  display: block;
  margin: 8px 0 12px;
  color: #d7c89f;
  font-size: 13px;
}
.quest-search input {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 7px;
  background: #302e25;
  color: #eadcb6;
  border: 2px groove #887956;
  font: inherit;
}
.quest[hidden] {
  display: none;
}

.station-recipes button {
  min-width: 0;
  overflow-wrap: anywhere;
}
.scroll-surface button {
  max-width: 100%;
  white-space: normal;
}

#world-loading {
  position: absolute;
  inset: 0 var(--panel-width) 0 0;
  display: grid;
  place-items: center;
  z-index: 12;
  background: #30382e;
  color: #e2d8ba;
  pointer-events: auto;
}
#world-loading[hidden] {
  display: none;
}
#world-loading > div {
  width: min(240px, 80%);
  text-align: center;
  font-size: 20px;
}
#world-loading progress {
  display: block;
  width: 100%;
  height: 12px;
  margin-top: 14px;
  accent-color: var(--gold);
}
