@font-face {
  font-family: "Pixlaria Blocks";
  src: url(../fonts/pixlaria-blocks.woff2) format("woff2");
  font-display: swap;
}
body {
  --ink: #2b1d0e;
  --honey: #f6c531;
  --honey-hi: #ffe27a;
  --honey-deep: #d29c1c;
  --leaf: #3f8a4e;
  --leaf-hi: #64ae6b;
  --leaf-deep: #2c6a3c;
  --paper: #fff6de;
  --brown: #7a5424;
  --line: #e2c88e;
  --blocks:
    "Pixlaria Blocks",
    "Trebuchet MS",
    sans-serif;
  --read:
    ui-rounded,
    "SF Pro Rounded",
    "Nunito",
    "Segoe UI",
    "Trebuchet MS",
    system-ui,
    sans-serif;
  --parchment: linear-gradient(#fffaee, #f6e5bc);
  --raised: linear-gradient(#fffaee, #f1dcae);
  --ledge: 0 4px 0 rgba(43, 29, 14, 0.4);
  --bevel: inset 2px 2px 0 rgba(255, 255, 255, 0.8), inset -2px -2px 0 rgba(201, 150, 62, 0.32);
  --evergreen:
    linear-gradient(
      #64ae6b 0 3px,
      #3f8a4e 3px calc(100% - 4px),
      #2c6a3c calc(100% - 4px));
  --leather:
    linear-gradient(
      #c98a52 0 3px,
      #9a6437 3px calc(100% - 4px),
      #6e4424 calc(100% - 4px));
  --inked:
    1px 0 0 #2b1d0e,
    -1px 0 0 #2b1d0e,
    0 1px 0 #2b1d0e,
    0 -1px 0 #2b1d0e;
  font-family: var(--read);
  font-weight: 700;
}
button,
input {
  font-family: var(--read);
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
}
.px-icon {
  display: inline-block;
  line-height: 0;
  flex: none;
}
.px-icon canvas,
canvas.spell-icon,
#hud-flags img {
  display: block;
  image-rendering: pixelated;
}
body {
  scrollbar-color: #c9a25a transparent;
}
:where(body *) {
  scrollbar-width: thin;
}
#panel a[href],
#dialog a[href],
.window a[href] {
  color: var(--leaf-deep);
  font-weight: 800;
  text-decoration: underline dotted 2px;
  text-underline-offset: 3px;
}
#panel a[href]:hover,
#dialog a[href]:hover,
.window a[href]:hover {
  color: var(--leaf);
  text-decoration-style: solid;
}
#panel a[href]:focus-visible,
#dialog a[href]:focus-visible,
.window a[href]:focus-visible {
  outline: 3px solid var(--honey);
  outline-offset: 2px;
  border-radius: 3px;
}
#hud,
#party-hud,
#journey-card,
#panel,
#pinned-bag,
.window,
#menu {
  background: var(--parchment);
  border: 3px solid var(--ink);
  border-radius: 12px;
  corner-shape: bevel;
  box-shadow: var(--bevel), var(--ledge);
  color: var(--ink);
  text-shadow: none;
}
#chat,
#hotbar,
#foodbar {
  background: rgba(29, 52, 38, 0.86);
  border: 3px solid var(--ink);
  border-radius: 12px;
  corner-shape: bevel;
  box-shadow:
    inset 2px 2px 0 rgba(140, 204, 146, 0.22),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25),
    var(--ledge);
}
.panel-head,
.window h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 5px 44px 5px 10px;
  background: var(--evergreen);
  border-bottom: 3px solid var(--ink);
  border-radius: 9px 9px 0 0;
  corner-shape: bevel;
  color: var(--paper);
  font: 16px/1.2 var(--blocks);
  letter-spacing: 0.04em;
  text-shadow: 0 2px 0 var(--ink);
}
.panel-head .px-icon canvas {
  width: 28px;
  height: 28px;
}
.panel-head .close,
.window .close,
#journey-card .close {
  position: absolute;
  top: 8px;
  right: 9px;
  width: 28px;
  height: 28px;
  min-height: 0;
  padding: 0 0 1px 1px;
  background: var(--raised);
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 -3px 0 rgba(160, 110, 40, 0.3);
  color: var(--ink);
  font: 16px/1 var(--blocks);
  text-shadow: none;
  cursor: pointer;
}
.panel-head .close:hover,
.window .close:hover,
#journey-card .close:hover {
  background: linear-gradient(#fff0a8, var(--honey));
}
.calling-practice,
#gear-training,
#skill-pin,
.quest-follow,
.achievement-filters button,
.journal-switch button,
#settings button,
.window button,
#friends button,
#party button,
#party-hud button,
#mm-tools button {
  min-height: 0;
  padding: 4px 10px;
  background: linear-gradient(var(--honey-hi), #f0b93a);
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 -3px 0 rgba(150, 90, 10, 0.32);
  color: var(--ink);
  font: 800 12px var(--read);
  cursor: pointer;
}
.calling-practice:hover,
#gear-training:hover,
#settings button:hover,
.window button:hover,
#friends button:hover,
#party button:hover,
#party-hud button:hover,
#mm-tools button:hover {
  background: linear-gradient(#fff0a8, var(--honey));
}
.calling-practice:active,
#gear-training:active,
#settings button:active,
.window button:active,
#friends button:active,
#party button:active,
#party-hud button:active,
#mm-tools button:active {
  box-shadow: inset 0 2px 0 rgba(150, 90, 10, 0.32);
}
#gear-training {
  min-height: 40px;
}
kbd {
  display: inline-block;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  margin: 0 1px;
  background: #fffdf5;
  border: 2px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 4px;
  corner-shape: bevel;
  font: 800 10px/13px var(--read);
  color: var(--ink);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}
.hslot .key,
#dialog .opt .k,
#spells .spell kbd {
  min-width: 17px;
  height: 17px;
  padding: 0 3px;
  margin: 0;
  background: var(--ink);
  border: 0;
  border-radius: 4px;
  corner-shape: bevel;
  color: var(--honey);
  font: 8px/17px var(--blocks);
  text-align: center;
}
#hud-left {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 8;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
#hud-left > * {
  pointer-events: auto;
}
#hud {
  position: relative;
  padding: 10px 12px 11px;
}
.hud-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 2px;
}
#hud-portrait {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  border: 3px solid var(--ink);
  border-radius: 13px;
  corner-shape: bevel;
  background: linear-gradient(#cfe9ff 0 55%, #9ccff4 55%);
  --ring: var(--honey);
  box-shadow:
    0 0 0 3px var(--ring),
    0 0 0 5px var(--ink),
    0 5px 0 5px rgba(43, 29, 14, 0.25);
}
#hud-portrait canvas {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 10px;
  corner-shape: bevel;
}
#hud-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 10px;
  corner-shape: bevel;
  background: #ea4f3b;
  opacity: 0;
  pointer-events: none;
}
#hud-portrait.warm {
  animation: portrait-warm 2.4s ease-in-out infinite;
}
#hud-portrait.low {
  --ring: #ea4f3b;
  animation: portrait-low 0.9s ease-in-out infinite;
}
#hud-portrait.hit {
  animation: portrait-hit 260ms steps(1, end);
}
#hud-portrait.hit::before {
  animation: portrait-flash 260ms steps(1, end);
}
#hud-portrait.level {
  animation: portrait-level 600ms ease-out;
}
#hud-portrait.level::before {
  background: var(--honey-hi);
  animation: portrait-flash 600ms ease-out;
}
@keyframes portrait-warm {
  0%, 100% {
    box-shadow:
      0 0 0 3px var(--honey),
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25),
      0 0 8px 5px rgba(255, 176, 90, 0.35);
  }
  50% {
    box-shadow:
      0 0 0 3px var(--honey-hi),
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25),
      0 0 16px 8px rgba(255, 176, 90, 0.75);
  }
}
@keyframes portrait-low {
  0%, 100% {
    box-shadow:
      0 0 0 3px #ea4f3b,
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25),
      0 0 0 5px rgba(234, 79, 59, 0);
  }
  50% {
    box-shadow:
      0 0 0 3px #ff9a86,
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25),
      0 0 10px 5px rgba(234, 79, 59, 0.5);
  }
}
@keyframes portrait-hit {
  0% {
    transform: translate(-2px, 0);
    box-shadow:
      0 0 0 3px #ea4f3b,
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25);
  }
  25% {
    transform: translate(2px, 1px);
  }
  50% {
    transform: translate(-2px, 0);
  }
  75% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: none;
    box-shadow:
      0 0 0 3px var(--ring),
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25);
  }
}
@keyframes portrait-flash {
  0% {
    opacity: 0.55;
  }
  40% {
    opacity: 0.3;
  }
  100% {
    opacity: 0;
  }
}
@keyframes portrait-level {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 3px var(--honey-hi),
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25),
      0 0 0 0 rgba(255, 226, 122, 0);
  }
  35% {
    transform: scale(1.14);
    box-shadow:
      0 0 0 3px #fff6de,
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25),
      0 0 18px 10px rgba(255, 214, 90, 0.85);
  }
  70% {
    transform: scale(0.97);
  }
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 3px var(--ring),
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25),
      0 0 0 0 rgba(255, 226, 122, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #hud-portrait.warm,
  #hud-portrait.low,
  #hud-portrait.hit,
  #hud-portrait.level {
    animation: none;
  }
  #hud-portrait.warm {
    --ring: var(--honey-hi);
    box-shadow:
      0 0 0 3px var(--ring),
      0 0 0 5px var(--ink),
      0 5px 0 5px rgba(43, 29, 14, 0.25),
      0 0 12px 6px rgba(255, 176, 90, 0.55);
  }
}
#hud-lvl {
  position: absolute;
  right: -12px;
  bottom: -11px;
  min-width: 24px;
  height: 22px;
  padding: 0 3px 0 5px;
  background:
    linear-gradient(
      var(--honey-hi) 0 4px,
      var(--honey) 4px 13px,
      var(--honey-deep) 13px);
  border: 2px solid var(--ink);
  border-radius: 5px;
  corner-shape: bevel;
  color: var(--ink);
  font: 16px/19px var(--blocks);
  text-align: center;
}
.hud-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#hud-name {
  font: 16px/1 var(--blocks);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: 2px 2px 0 rgba(210, 156, 28, 0.38);
  padding-bottom: 2px;
}
#hud-level {
  display: block;
  font: 700 11.5px/1.3 var(--read);
  color: var(--brown);
}
#hud-level b {
  font-weight: 800;
  color: var(--ink);
}
.meter {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.hud-top + .meter {
  margin-top: 13px;
}
.meter .px-icon canvas {
  width: 14px;
  height: 14px;
}
.bar {
  position: relative;
  flex: 1;
  height: 22px;
  background: #5b3f25;
  border: 2px solid var(--ink);
  border-radius: 5px;
  corner-shape: bevel;
  overflow: hidden;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.28);
}
.bar .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  transition: width 0.15s;
  box-shadow: inset -2px 0 0 rgba(43, 29, 14, 0.25);
}
.bar.hp {
  background: #381b20;
}
.bar.hp .fill {
  background:
    linear-gradient(
      #ffad98 0 2px,
      #e45349 2px 4px,
      #c72f3e 4px 65%,
      #851d30 65%);
  transition: none;
  box-shadow: inset 0 -2px 0 #631727, inset -2px 0 0 rgba(63, 12, 24, .4);
}
.bar.hp .hp-trail {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      #ffd3b8 0 2px,
      #eea58c 2px 65%,
      #b76b65 65%);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .bar.hp .hp-trail {
    display: none;
  }
}
.bar.mana .fill {
  background:
    linear-gradient(
      #9fd4ff 0 4px,
      #3b93e8 4px 12px,
      #256bbc 12px);
}
.bar.mana.pool-rage .fill {
  background:
    linear-gradient(
      #ffc46a 0 4px,
      #f28a2e 4px 12px,
      #cf5a1e 12px);
}
.bar.mana.pool-focus .fill {
  background:
    linear-gradient(
      #c8ec8a 0 4px,
      #6fbf4a 4px 12px,
      #3f8f34 12px);
}
.bar.mana.pool-rage .fill,
.bar.mana.pool-focus .fill {
  transition: width .12s;
}
.bar span {
  position: absolute;
  inset: 0;
  padding-right: 7px;
  font: 16px/18px var(--blocks);
  color: #fff;
  text-align: right;
  text-shadow: var(--inked);
  white-space: nowrap;
}
.bar span .max {
  font-style: normal;
  opacity: 0.7;
}
.bar span.tight .max {
  display: none;
}
#xp-meter {
  min-height: 24px;
  cursor: pointer;
}
#xp-meter:focus-visible {
  outline: 2px solid var(--honey-deep);
  outline-offset: 2px;
  border-radius: 4px;
}
#xp-meter:hover .bar {
  border-color: var(--honey-deep);
}
.meter.xp .px-icon canvas {
  width: 14px;
  height: 14px;
}
.bar.xp {
  box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.28);
  background:
    #5b3f25 repeating-linear-gradient(
      90deg,
      transparent 0 calc(10% - 1px),
      rgba(255, 246, 222, 0.14) calc(10% - 1px) 10%);
}
.bar.xp .fill {
  background:
    linear-gradient(
      #ffe27a 0 2px,
      #f6c531 2px 6px,
      #d29c1c 6px);
}
.bar.xp .lv {
  position: absolute;
  left: 3px;
  top: 3px;
  height: 12px;
  padding: 0 4px;
  background: var(--ink);
  border-radius: 3px;
  corner-shape: bevel;
  color: var(--honey);
  font: 8px/12px var(--blocks);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hud-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
#hud-flags {
  display: contents;
}
#hud-flags span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 7px 0 4px;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 5px;
  corner-shape: bevel;
  font: 700 11.5px/1 var(--read);
  color: var(--ink);
  white-space: nowrap;
}
#hud-flags img {
  width: 14px;
  height: 14px;
}
#hud-flags .pz {
  background: #e3f1cf;
  color: #2c5a1f;
}
#hud-flags .low-ammo {
  background: #fff2c6;
  color: #70480b;
}
#hud-flags .empty-bow {
  background: #ffe3dc;
  color: #9a2a1e;
}
#hud-flags .warm {
  background: #ffe9c7;
  color: #8a4312;
}
#hud-flags .skull,
#hud-flags .target {
  background: #ffe3dc;
  color: #9a2a1e;
}
#hud-flags .timed .left {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  opacity: 0.85;
}
#hud-flags .mana-shield {
  background: #e2e6ff;
  color: #33338a;
}
#hud-flags .guard {
  background: #e6eef6;
  color: #2c4a66;
}
#hud-flags .haste {
  background: #e4f6ec;
  color: #1f5a3a;
}
#hud-flags .dazed {
  background: #fff2c6;
  color: #70480b;
}
#hud-flags .sure-footed {
  background: #e3f1f7;
  color: #1e4a5e;
}
#hud-flags .brew-tonic {
  background: #eef3d6;
  color: #44551c;
}
#hud-flags .brew-ward {
  background: #f6e4d2;
  color: #7a3a16;
}
#hud-flags .stop-attack {
  cursor: pointer;
}
.click-mark {
  position: fixed;
  z-index: 60;
  width: 17px;
  height: 17px;
  margin: -8px 0 0 -8px;
  pointer-events: none;
  image-rendering: pixelated;
  animation: click-mark 0.46s steps(4, end) forwards;
  background: center / 17px 17px no-repeat;
}
.click-mark.walk {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h4v1h1v1h1v1h1v1h1V3h1V2h1V1h1V0h4v4h-1v1h-1v1h-1v1h-1v1h1v1h1v1h1v1h1v4h-4v-1h-1v-1h-1v-1h-1v-1h-1v1h-1v1h-1v1h-1v1H1v-4h1v-1h1v-1h1v-1h1V8H4V7H3V6H2V5H1z' fill='%232b1d0e'/%3E%3Cpath d='M2 1h2v1h1v1h1v1h1v1h1v1h1V5h1V4h1V3h1V2h1V1h2v2h-1v1h-1v1h-1v1h-1v1h-1v1h1v1h1v1h1v1h1v1h1v2h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h-1v1h-1v1h-1v1H4v1H2v-2h1v-1h1v-1h1v-1h1V9h1V8H6V7H5V6H4V5H3V4H2z' fill='%23ffd23a'/%3E%3C/svg%3E");
}
.click-mark.act {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 17' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h4v1h1v1h1v1h1v1h1V3h1V2h1V1h1V0h4v4h-1v1h-1v1h-1v1h-1v1h1v1h1v1h1v1h1v4h-4v-1h-1v-1h-1v-1h-1v-1h-1v1h-1v1h-1v1h-1v1H1v-4h1v-1h1v-1h1v-1h1V8H4V7H3V6H2V5H1z' fill='%232b1d0e'/%3E%3Cpath d='M2 1h2v1h1v1h1v1h1v1h1v1h1V5h1V4h1V3h1V2h1V1h2v2h-1v1h-1v1h-1v1h-1v1h-1v1h1v1h1v1h1v1h1v1h1v2h-2v-1h-1v-1h-1v-1h-1v-1h-1v-1h-1v1h-1v1h-1v1h-1v1H4v1H2v-2h1v-1h1v-1h1v-1h1V9h1V8H6V7H5V6H4V5H3V4H2z' fill='%23ff3b2f'/%3E%3C/svg%3E");
}
@keyframes click-mark {
  from {
    transform: scale(1);
    opacity: 1;
  }
  to {
    transform: scale(0.35);
    opacity: 0.2;
  }
}
#hud-flags .stop-attack:hover {
  background: #ffd0c4;
}
#hud-flags .stop-attack .x {
  margin-left: 2px;
  font: 800 13px/1 var(--read);
}
#hud-flags .light {
  background: #fff2c6;
  color: #7a5410;
}
#btn-notes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  min-height: 0;
  margin-left: auto;
  padding: 0 9px 0 5px;
  background: var(--raised);
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 -3px 0 rgba(160, 110, 40, 0.28);
  color: var(--ink);
  font: 800 12px var(--read);
  cursor: pointer;
  white-space: nowrap;
}
#btn-notes .px-icon canvas {
  width: 14px;
  height: 14px;
}
#btn-notes:hover {
  background: linear-gradient(#fffdf5, #f7e6bf);
}
#btn-notes.on {
  background: var(--evergreen);
  color: var(--paper);
  text-shadow: 0 1px 0 var(--ink);
  box-shadow: none;
}
#journey-card {
  position: relative;
  padding: 11px 14px 13px;
  max-height: var(--notes-room, none);
  overflow-y: auto;
  overscroll-behavior: contain;
}
#journey-card .close {
  top: 7px;
  right: 8px;
}
.journey-eyebrow {
  display: block;
  padding-right: 32px;
  font: 8px/1.4 var(--blocks);
  letter-spacing: 0.06em;
  color: #a8620e;
}
#journey-card h2 {
  margin: 7px 0 6px;
  font: 16px/1.25 var(--blocks);
  color: var(--leaf-deep);
}
#journey-card p {
  margin: 0;
  font: 600 13px/1.45 var(--read);
  color: #4a3a22;
}
#journey-card .journey-quest {
  margin-top: 8px;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  background: #fff3c4;
  font: 700 12px/1.4 var(--read);
  color: #4a3a22;
}
#journey-card .journey-quest::before {
  content: "QUEST · ";
  font: 800 10px/1 var(--read);
  letter-spacing: 0.06em;
  color: #8a4a1e;
}
.label .name .quest-mark {
  display: inline-block;
  margin-left: 4px;
  padding: 0 5px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #f6c531;
  color: var(--ink);
  font: 900 11px/13px var(--read);
  vertical-align: middle;
  text-shadow: none;
}
.journey-choice {
  display: block;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #cdbb92;
  font: 600 12px/1.4 var(--read);
  color: var(--leaf-deep);
}
.journey-choice select {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 6px 4px;
  font: 600 12px var(--read);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #9e885d;
  border-radius: 3px;
}
.journey-choice select:focus-visible {
  outline: 2px solid var(--leaf-deep);
  outline-offset: 2px;
}
@media (max-height: 740px) {
  #journey-card {
    max-height: var(--notes-room, max(130px, calc(100dvh / var(--ui) - 420px)));
  }
}
#compass {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 8;
  width: 186px;
  height: 186px;
  padding: 6px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background:
    linear-gradient(
      135deg,
      var(--honey-hi) 0 50%,
      var(--honey-deep) 50%);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.55), var(--ledge);
}
#minimap {
  display: block;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: #7fc4ea;
  cursor: crosshair;
}
#mm-coordinates {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  min-width: 100%;
  width: max-content;
  padding: 1px 4px;
  box-sizing: border-box;
  border-radius: 4px;
  background: #231c16d9;
  color: #fff3d4;
  text-align: center;
  font: 600 10px/16px monospace;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  pointer-events: none;
}
#mm-coordinates[hidden] {
  display: none;
}
#garden-status {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: max-content;
  max-width: 220px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 600 12px/1.2 var(--read,sans-serif);
  box-shadow: var(--ledge);
}
#garden-status[hidden] {
  display: none;
}
#garden-status.ripe {
  background: #e3f2c6;
  border-color: #527d40;
}
#garden-status summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 2px 7px 2px 4px;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}
#garden-status summary::-webkit-details-marker {
  display: none;
}
#garden-status summary canvas.px-icon {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}
#garden-status .garden-status-list {
  margin: 0;
  padding: 2px 7px 5px;
  list-style: none;
  border-top: 1px solid #0002;
}
#garden-status li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 0;
  white-space: nowrap;
}
#garden-status li small {
  font-weight: 400;
  opacity: .8;
}
#garden-status li.ripe small {
  color: #3d6a2d;
  font-weight: 700;
  opacity: 1;
}
#garden-status.wilted {
  border-color: #7a5a3c;
}
#garden-status li.wilted small {
  color: #7a5a3c;
  font-weight: 700;
  opacity: 1;
}
#mm-coordinates:not([hidden]) ~ #garden-status {
  top: calc(100% + 36px);
}
@media (max-width: 760px) and (orientation: portrait) {
  #garden-status {
    top: calc(100% + 34px);
    right: 52px;
    font-size: 11px;
  }
  #mm-coordinates:not([hidden]) ~ #garden-status {
    top: calc(100% + 68px);
  }
}
#game[data-pvl-clean-ui=true] #garden-status {
  top: calc(100% + 50px);
}
#game[data-pvl-clean-ui=true] #mm-coordinates:not([hidden]) ~ #garden-status {
  top: calc(100% + 72px);
}
#game.hide-hud-garden #garden-status {
  display: none;
}
@media (max-width: 760px), (pointer: coarse) and (max-height: 520px) {
  #garden-status:not([open]) .garden-status-label {
    display: none;
  }
  #garden-status:not([open]) summary {
    padding: 3px;
  }
  #garden-status summary canvas.px-icon {
    width: 20px;
    height: 20px;
  }
  #mm-tools:has(#garden-ready-dot) ~ #garden-status:not([open]) {
    display: none;
  }
}
@media (min-width: 761px) {
  #game:not([data-pvl-clean-ui=true]) #garden-status,
  #game:not([data-pvl-clean-ui=true]) #mm-coordinates:not([hidden]) ~ #garden-status {
    top: auto;
    right: calc(100% + 16px);
    bottom: 46px;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  #game:not([data-pvl-clean-ui=true]) #mm-tools:has(#garden-ready-dot) {
    left: auto;
    right: 0;
  }
}
#mm-tools #garden-ready-dot {
  display: grid;
  place-items: center;
  padding: 0;
}
#garden-ready-dot canvas.px-icon {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  animation: garden-ready-pulse 2.4s ease-in-out infinite;
}
@keyframes garden-ready-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
}
@media (prefers-reduced-motion: reduce) {
  #garden-ready-dot canvas.px-icon {
    animation: none;
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  #mm-coordinates {
    top: calc(100% + 46px);
  }
}
@media (max-width: 760px) and (orientation: portrait) {
  #game:not([data-pvl-clean-ui=true]) :is(#bossbar, #eye-target) {
    top: max(calc(max(8px, env(safe-area-inset-top)) + var(--phone-map-size,114px) + 72px), var(--boss-party-top,0px));
  }
}
html[data-hud=compact] #mm-coordinates {
  top: calc(100% + 14px);
}
#game[data-pvl-clean-ui=true] #mm-coordinates {
  top: calc(100% + 50px);
}
#compass-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--ink);
}
#compass-ring > button {
  position: absolute;
  left: 50%;
  top: -15px;
  width: 30px;
  height: 30px;
  padding: 0;
  margin-left: -15px;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 5px;
  corner-shape: bevel;
  color: var(--ink);
  font: 9px/26px var(--blocks);
  text-align: center;
  transform: rotate(var(--compass-label-turn, 0deg));
  box-shadow: none;
}
#compass-ring > button:hover {
  background: var(--honey-hi);
}
#compass-ring > button:focus-visible {
  outline: 3px solid var(--leaf-deep);
  outline-offset: 2px;
}
#mm-tools {
  position: absolute;
  left: -7px;
  bottom: -3px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
#mm-tools button {
  width: 26px;
  height: 24px;
  padding: 0 0 0 1px;
  font: 16px/1 var(--blocks);
}
.eye-icon {
  display: block;
  width: 18px;
  height: 18px;
  margin: auto;
}
#mm-eye.on,
#touch-eye.on {
  background: linear-gradient(#fff0a8, var(--honey));
  box-shadow: inset 0 2px 0 rgba(150, 90, 10, 0.32);
}
#mm-tools #mm-eye {
  position: absolute;
  right: calc(100% + 8px);
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  width: auto;
  height: 34px;
  padding: 0 7px 0 6px;
  background: var(--raised);
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow:
    inset 0 0 0 1px #d0b580,
    inset 0 2px 0 #fffdf5,
    inset 0 -3px 0 #dec596,
    0 3px 0 rgba(43, 29, 14, .4);
  color: var(--ink);
  font: 800 13px var(--read);
  white-space: nowrap;
}
#mm-tools #mm-eye:hover {
  background: linear-gradient(#fffef7, #f8e6bd);
}
#mm-tools #mm-eye.on {
  background: linear-gradient(#fff0a8, var(--honey));
  box-shadow: inset 0 2px 0 rgba(150, 90, 10, 0.32), 0 3px 0 rgba(43, 29, 14, .4);
}
#mm-eye .eye-icon {
  width: 22px;
  height: 22px;
  margin: 0;
}
#mm-eye kbd {
  min-width: 15px;
  height: 17px;
  padding: 0 2px;
  border: 0;
  background: #e9d7b3;
  font: 8px/17px var(--blocks);
  color: #7b6038;
  box-shadow: inset 0 1px 0 #d2b987, 0 1px 0 #fff8e8;
}
#talk-key {
  display: none;
  position: absolute;
  left: 12px;
  bottom: 200px;
  z-index: 8;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 9px 0 7px;
  background: var(--raised);
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow:
    inset 0 0 0 1px #d0b580,
    inset 0 2px 0 #fffdf5,
    inset 0 -3px 0 #dec596,
    0 3px 0 rgba(43, 29, 14, .4);
  color: var(--ink);
  font: 800 12px var(--read);
  cursor: pointer;
  touch-action: none;
  user-select: none;
}
#talk-key svg {
  width: 15px;
  height: 18px;
}
#talk-key kbd {
  min-width: 15px;
  height: 17px;
  padding: 0 2px;
  border: 0;
  background: #e9d7b3;
  font: 8px/17px var(--blocks);
  color: #7b6038;
}
body.voice-on #talk-key {
  display: flex;
}
#talk-key.on {
  background: linear-gradient(#fff0a8, var(--honey));
  box-shadow: inset 0 2px 0 rgba(150, 90, 10, 0.32), 0 3px 0 rgba(43, 29, 14, .4);
}
.label.speaking .name::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' shape-rendering='crispEdges'%3E%3Cpath d='M1 4h2l3-3h1v10H6L3 8H1z' fill='%23fff6de'/%3E%3Cpath d='M8 4h1v4H8zM10 2h1v8h-1z' fill='%23f6c531'/%3E%3C/svg%3E") center / contain no-repeat;
}
#crosshair {
  display: none;
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 7;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#crosshair svg {
  display: block;
  width: 22px;
  height: 22px;
}
#crosshair .eyes-hint {
  display: none;
  padding: 4px 10px;
  background: rgba(29, 52, 38, 0.72);
  border-radius: 8px;
  corner-shape: bevel;
  color: var(--paper);
  font: 700 12px var(--read);
  white-space: nowrap;
}
body.eyes-locked #crosshair,
body.eyes-free #crosshair {
  display: block;
}
body.eyes-free #crosshair svg {
  display: none;
}
body.eyes-free #crosshair .eyes-hint {
  display: block;
}
body.fp-new #mm-eye::after,
body.fp-new #touch-eye::after {
  content: "";
  position: absolute;
  top: -5px;
  right: -5px;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  background: var(--honey);
  border: 2px solid var(--ink);
  border-radius: 50%;
  pointer-events: none;
}
#side {
  position: absolute;
  right: 12px;
  top: 212px;
  z-index: 9;
}
#tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--dock-gap, 6px);
}
#tabs button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 118px;
  height: var(--dock-button, 38px);
  min-height: 0;
  padding: 0 7px 0 4px;
  background: var(--raised);
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow:
    inset 0 0 0 1px #d0b580,
    inset 0 2px 0 #fffdf5,
    inset 0 -3px 0 #dec596,
    0 3px 0 rgba(43, 29, 14, .4);
  color: var(--ink);
  font: 800 13px var(--read);
  text-align: left;
  cursor: pointer;
}
#tabs button .px-icon {
  display: grid;
  place-items: center;
  width: min(30px, calc(var(--dock-button, 38px) - 6px));
  height: min(30px, calc(var(--dock-button, 38px) - 6px));
  flex: none;
}
#tabs button .px-icon canvas {
  width: min(28px, calc(var(--dock-button, 38px) - 8px));
  height: min(28px, calc(var(--dock-button, 38px) - 8px));
}
#tabs .dock-label {
  flex: 1;
}
#tabs kbd {
  min-width: 15px;
  height: 17px;
  padding: 0 2px;
  border: 0;
  background: #e9d7b3;
  font: 8px/17px var(--blocks);
  color: #7b6038;
  box-shadow: inset 0 1px 0 #d2b987, 0 1px 0 #fff8e8;
}
#tabs button:hover:not(.active) {
  background: linear-gradient(#fffef7, #f8e6bd);
  border-color: #8d642d;
}
#tabs button.active {
  background: linear-gradient(#e8f2d8, #cadfac);
  color: #24482e;
  box-shadow:
    inset 0 0 0 2px #62905a,
    inset 0 3px 0 #f4f9e9,
    0 3px 0 rgba(43, 29, 14, .4);
}
#tabs button.active kbd {
  background: #b6d09c;
  color: #294c30;
  box-shadow: inset 0 1px 0 #8aaa74;
}
#tabs button:active {
  transform: translateY(1px);
}
#tabs button:focus-visible,
.hslot:focus-visible {
  outline: 3px solid #fff5c7;
  outline-offset: 2px;
}
#panel {
  position: absolute;
  right: 128px;
  top: 0;
  width: 316px;
  max-height: calc(100vh / var(--ui) - 370px);
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
:is(#panel, #pinned-bag) .tab {
  min-height: 0;
  overflow-y: auto;
  padding: 8px 10px 10px;
  scrollbar-width: thin;
  scrollbar-color: #c9a25a transparent;
  background:
    linear-gradient(rgba(246, 229, 188, 0), #f6e5bc 60%) center bottom / 100% 22px no-repeat local,
    radial-gradient(
      farthest-side at 50% 100%,
      rgba(43, 29, 14, 0.3),
      rgba(43, 29, 14, 0)) center bottom / 100% 14px no-repeat scroll;
}
:is(#panel, #pinned-bag)[data-showing=inventory] .tab {
  background:
    linear-gradient(rgba(90, 58, 34, 0), #5a3a22 60%) center bottom / 100% 22px no-repeat local,
    radial-gradient(
      farthest-side at 50% 100%,
      rgba(0, 0, 0, 0.6),
      rgba(0, 0, 0, 0)) center bottom / 100% 16px no-repeat scroll;
}
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  padding: 0 2px;
  font: 700 12px var(--read);
  color: var(--brown);
}
.panel-foot .gc {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8a5a10;
}
.panel-foot img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}
.grid {
  display: grid;
  grid-template-columns: repeat(6, 46px);
  gap: 3px;
  justify-content: center;
}
.drag-ghost {
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  z-index: 70;
  margin: 0 !important;
  pointer-events: none;
  opacity: .92;
  box-shadow: 0 6px 12px rgba(43, 29, 14, .45);
}
.drag-from {
  opacity: .35;
}
.drag-over {
  outline: 3px solid var(--honey-hi);
  outline-offset: -3px;
}
body.dragging-slot,
body.dragging-slot * {
  cursor: grabbing !important;
}
body.dragging-slot #hint {
  display: none;
}
.slot,
.eqslot {
  position: relative;
  width: 46px;
  height: 46px;
  background: linear-gradient(#f1ddb0, #e9d09c);
  border: 2px solid #b58647;
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 3px 0 rgba(120, 80, 30, 0.2), inset 0 -2px 0 rgba(255, 255, 255, 0.4);
  cursor: pointer;
}
.slot:hover,
.eqslot:hover {
  border-color: var(--ink);
  background: linear-gradient(#fff4d8, #f2dcab);
}
#inventory .slot.empty {
  background: #4a2c16;
  border-color: #3a2412;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.4);
  cursor: default;
}
#inventory .slot.empty:hover {
  background: #5e3a1f;
  border-color: #3a2412;
}
.slot.selected {
  border-color: var(--leaf-deep);
  background: linear-gradient(#e9f5d8, #d2e8b4);
  box-shadow: inset 0 0 0 2px #8fb23c;
}
.slot canvas,
.slot img {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}
:where(:has(> [data-item-tier]):not(.legendary-emblem, .pix-discovery-badge, .pet-portrait)) {
  position: relative;
}
:has(> [data-item-tier]):not(.legendary-emblem, .pix-discovery-badge, .pet-portrait) {
  --tier: #7f9ab3;
  outline: 2px solid var(--tier);
  outline-offset: -2px;
}
:has(> [data-item-tier="2"]):not(.legendary-emblem, .pix-discovery-badge, .pet-portrait) {
  --tier: #e5b548;
}
:has(> [data-item-tier="3"]):not(.legendary-emblem, .pix-discovery-badge, .pet-portrait) {
  --tier: #ac82ec;
  box-shadow: inset 0 0 10px #ac82ec73;
}
:has(> [data-item-tier="4"]):not(.legendary-emblem, .pix-discovery-badge, .pet-portrait) {
  --tier: #ff9a5c;
  box-shadow: inset 0 0 12px #ff9a5c8c;
}
:has(> [data-item-tier]):not(.legendary-emblem, .pix-discovery-badge, .pet-portrait)::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 6px;
  height: 6px;
  background: var(--tier);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  pointer-events: none;
  z-index: 1;
}
:has(> [data-item-tier="1"]):not(.legendary-emblem, .pix-discovery-badge, .pet-portrait)::after {
  width: 4px;
  height: 4px;
  opacity: .8;
}
.legendary-discovery[data-tier="2"] .legendary-emblem {
  background:
    radial-gradient(
      circle,
      #8a6a2c66,
      #161210);
}
.loot-yours {
  color: #ffd27a;
  font-weight: 800;
}
#loot em.loot-yours,
#loot .loot-yours {
  color: #8a4e00;
}
.slot .count,
.hslot .cnt,
.eqslot .count {
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 1;
  font: 800 11px/1 var(--read);
  letter-spacing: 0;
  color: #fff;
  text-shadow: var(--inked);
  background: rgb(43 29 14 / 45%);
  padding: 1px 3px 2px;
  border-radius: 4px;
  pointer-events: none;
}
#toolbelt .slot .count,
#petpouch .slot .count {
  font-size: 10px;
  padding: 0 2px 1px;
}
.slot .count.k {
  color: var(--honey-hi);
}
.slot .count.m {
  color: #c6e27a;
}
.slot.soulbound,
.eqslot.soulbound,
#bank .bank-item.soulbound {
  border-color: #7b4bb3;
}
#bank .bank-item.soulbound {
  position: relative;
}
.soulbound-mark,
#bank .bank-item.soulbound::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  z-index: 1;
  width: 8px;
  height: 8px;
  background:
    linear-gradient(
      135deg,
      #ead7ff,
      #8a4fd0 55%,
      #4b2482);
  border: 1px solid #2b1446;
  transform: rotate(45deg);
  pointer-events: none;
}
.soulbound-tag {
  display: inline-block;
  margin-left: 2px;
  padding: 0 5px;
  border-radius: 6px;
  background: #5b3290;
  color: #f6edff;
  font: 700 10px/1.5 var(--read);
  letter-spacing: .02em;
  vertical-align: 1px;
  white-space: nowrap;
}
.ex.soulbound-line {
  color: #6a3fa0;
}
:is(#panel, #pinned-bag)[data-showing=inventory] {
  background: #5a3a22;
  box-shadow:
    inset 2px 2px 0 rgba(255, 220, 170, 0.16),
    inset -2px -2px 0 rgba(0, 0, 0, 0.3),
    var(--ledge);
}
:is(#panel, #pinned-bag)[data-showing=inventory]::before {
  content: "";
  position: absolute;
  inset: 49px 6px 6px;
  border: 2px dashed #d9a066;
  border-radius: 6px;
  corner-shape: bevel;
  pointer-events: none;
}
:is(#panel, #pinned-bag)[data-showing=inventory] .tab {
  position: relative;
}
:is(#panel, #pinned-bag)[data-showing=inventory] .panel-head {
  background:
    repeating-linear-gradient(
      90deg,
      #d9a066 0 4px,
      transparent 4px 8px) 10px calc(100% - 7px) / calc(100% - 20px) 2px no-repeat,
    var(--leather);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.28);
}
.panel-head .buckle {
  display: none;
}
:is(#panel, #pinned-bag)[data-showing=inventory] .panel-head .buckle {
  display: block;
  flex: none;
  width: 18px;
  height: 38px;
  margin: -5px 2px -5px auto;
  image-rendering: pixelated;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 9 19' shape-rendering='crispEdges'%3E%3Cpath fill='%232b1d0e' d='M2 0h1v1h-1zM7 0h1v1h-1zM2 1h1v1h-1zM7 1h1v1h-1zM2 2h1v1h-1zM7 2h1v1h-1zM2 3h1v1h-1zM7 3h1v1h-1zM2 4h1v1h-1zM7 4h1v1h-1zM2 5h1v1h-1zM4 5h1v1h-1zM7 5h1v1h-1zM2 6h2v1h-2zM5 6h1v1h-1zM7 6h1v1h-1zM2 7h1v1h-1zM6 7h2v1h-2zM1 8h1v1h-1zM7 8h1v1h-1zM0 9h1v1h-1zM8 9h1v1h-1zM1 10h1v1h-1zM7 10h1v1h-1zM2 11h1v1h-1zM6 11h2v1h-2zM2 12h2v1h-2zM5 12h1v1h-1zM7 12h1v1h-1zM2 13h1v1h-1zM4 13h1v1h-1zM7 13h1v1h-1zM2 14h1v1h-1zM7 14h1v1h-1zM2 15h1v1h-1zM7 15h1v1h-1zM2 16h1v1h-1zM7 16h1v1h-1zM2 17h1v1h-1zM7 17h1v1h-1zM2 18h1v1h-1zM7 18h1v1h-1z'/%3E%3Cpath fill='%236e4424' d='M3 0h2v1h-2zM3 1h2v1h-2zM3 2h2v1h-2zM3 3h2v1h-2zM3 4h2v1h-2zM3 5h1v1h-1zM3 13h1v1h-1zM3 14h2v1h-2zM3 15h2v1h-2zM3 16h2v1h-2zM3 17h2v1h-2zM3 18h2v1h-2z'/%3E%3Cpath fill='%234a2c16' d='M5 0h2v1h-2zM5 1h2v1h-2zM5 2h2v1h-2zM5 3h2v1h-2zM5 4h2v1h-2zM5 5h2v1h-2zM6 6h1v1h-1zM6 12h1v1h-1zM5 13h2v1h-2zM5 14h2v1h-2zM5 15h2v1h-2zM5 16h2v1h-2zM5 17h2v1h-2zM5 18h2v1h-2z'/%3E%3Cpath fill='%23ffe27a' d='M4 6h1v1h-1zM3 7h2v1h-2zM2 8h2v1h-2zM1 9h1v1h-1z'/%3E%3Cpath fill='%23f6c531' d='M5 7h1v1h-1zM4 8h3v1h-3zM2 9h5v1h-5zM2 10h3v1h-3zM3 11h1v1h-1z'/%3E%3Cpath fill='%23d29c1c' d='M7 9h1v1h-1zM5 10h2v1h-2zM4 11h2v1h-2zM4 12h1v1h-1z'/%3E%3C/svg%3E") center / 18px 38px no-repeat;
}
#inventory .slot:not(.empty):hover {
  border-color: var(--honey);
}
#inventory .slot.selected {
  border-color: var(--honey-hi);
  box-shadow: inset 0 0 0 2px #8fb23c, 0 0 0 2px var(--honey-deep);
}
#toolbelt {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, 28px);
  gap: 3px;
  justify-content: center;
  width: max-content;
  margin: 12px auto 9px;
  padding: 6px 6px 5px;
  background: linear-gradient(#8a5a2e, #6e4523);
  border: 2px solid #3a2412;
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.18), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}
#toolbelt::before {
  content: "Tool belt";
  position: absolute;
  left: 8px;
  top: -8px;
  padding: 0 5px;
  font: 8px/13px var(--blocks);
  color: #fff6de;
  background: #3a2412;
  border-radius: 3px;
}
#toolbelt .slot {
  width: 28px;
  height: 28px;
}
#toolbelt .slot canvas,
#toolbelt .slot img {
  left: 2px;
  top: 2px;
  width: 24px;
  height: 24px;
}
#toolbelt .slot.empty {
  background: #4a2c16;
  border-color: #3a2412;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.4);
  cursor: default;
}
#toolbelt .slot.empty canvas {
  opacity: 0.25;
  filter: grayscale(1) brightness(1.7);
}
#toolbelt .slot:not(.empty):hover {
  border-color: var(--honey);
}
#petpouch {
  position: relative;
  display: grid;
  grid-template-columns: 32px;
  gap: 3px;
  justify-content: center;
  width: max-content;
  margin: 4px auto 9px;
  padding: 6px 6px 5px;
  background: linear-gradient(#b98450, #9a6a3c);
  border: 2px solid #4a2c16;
  border-radius: 10px;
  corner-shape: bevel;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.2), inset 0 -2px 0 rgba(0, 0, 0, 0.22);
}
#petpouch[hidden] {
  display: none;
}
#petpouch::before {
  content: "Pet";
  position: absolute;
  left: 8px;
  top: -8px;
  padding: 0 5px;
  font: 8px/13px var(--blocks);
  color: #fff6de;
  background: #4a2c16;
  border-radius: 3px;
}
#petpouch .slot {
  width: 32px;
  height: 32px;
}
#petpouch .slot canvas,
#petpouch .slot img {
  left: 2px;
  top: 2px;
  width: 24px;
  height: 24px;
}
#petpouch .slot.empty {
  background: #6a4424;
  border-color: #4a2c16;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.35);
  cursor: default;
}
#petpouch .slot.empty canvas {
  opacity: 0.25;
  filter: grayscale(1) brightness(1.7);
}
#petpouch .slot:not(.empty):hover {
  border-color: var(--honey);
}
#key-binds {
  display: grid;
  gap: 4px;
  margin: 6px 0 8px;
}
#key-binds .key-group h5 {
  margin: 8px 0 3px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.75;
}
#key-binds .key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
}
#key-binds .key-row > span {
  flex: 1;
  min-width: 0;
}
#key-binds .key-clear {
  flex: none;
  min-height: 36px;
  font-size: 11px;
  padding: 4px 7px;
}
#game[data-pvl-clean-ui=true] #key-binds .key-row:has(> .pvlc-combo):has(> .key-clear) {
  grid-template-columns: minmax(0, 1fr) 60px 70px 40px !important;
}
#game[data-pvl-clean-ui=true] #key-binds .key-row > .key-bind {
  grid-column: 2;
  grid-row: 1;
}
#game[data-pvl-clean-ui=true] #key-binds .key-row > .pvlc-combo {
  grid-column: 3;
  grid-row: 1;
}
#game[data-pvl-clean-ui=true] #key-binds .key-row > .key-clear {
  grid-column: 4;
  grid-row: 1;
  white-space: normal;
  padding: 3px !important;
}
#game#game[data-pvl-clean-ui=true] #key-binds > .pvlc-combo-head {
  grid-template-columns: minmax(0, 1fr) 60px 70px !important;
  padding-right: 46px;
}
#key-binds .key-bind {
  min-width: 72px;
  min-height: 26px;
  padding: 2px 10px;
}
#key-binds .key-bind .none {
  opacity: 0.6;
  font-style: italic;
}
#key-binds .key-bind.waiting {
  outline: 2px solid var(--honey);
  animation: key-wait 1s ease-in-out infinite;
}
@keyframes key-wait {
  50% {
    opacity: 0.55;
  }
}
kbd.unbound {
  opacity: 0.5;
}
#toolbelt .slot.locked canvas,
#toolbelt .slot.locked img {
  opacity: 0.45;
  filter: grayscale(0.7);
}
#inventory-foot {
  margin-top: 10px;
  padding: 0;
}
#panel.bag8 {
  width: 414px;
}
#panel.bag10 {
  width: 512px;
}
#panel.bag8 #inventory {
  grid-template-columns: repeat(8, 46px);
}
#panel.bag10 #inventory {
  grid-template-columns: repeat(10, 46px);
}
#panel:is(.bag8, .bag10) #tab-inventory {
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: start;
  align-items: center;
  column-gap: 10px;
}
#panel:is(.bag8, .bag10) #tab-inventory > * {
  grid-column: 1 / -1;
}
#panel:is(.bag8, .bag10) #tab-inventory > .bag-tools {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
#panel:is(.bag8, .bag10) #tab-inventory > #inventory-foot {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  justify-self: end;
  display: flex;
  gap: 8px;
}
#panel:is(.bag8, .bag10) #toolbelt {
  margin: 14px auto 7px;
}
#inventory-foot span,
#inventory-foot .gold-pouch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 9px 0 4px;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.35);
  color: var(--ink);
  font: 16px/1 var(--blocks);
  white-space: nowrap;
}
#inventory-foot .gc {
  color: #8a5a10;
}
#inventory-foot .gold-pouch {
  min-height: 44px;
  height: auto;
  cursor: pointer;
}
#inventory-foot img {
  width: 24px;
  height: 24px;
}
#panel.bag10 #tab-inventory > #inventory-foot {
  grid-column: 1 / -1;
}
#panel.bag10 #tab-inventory > #toolbelt {
  grid-column: 1;
  grid-row: 2;
}
#panel.bag10 #tab-inventory > #travel-companions {
  grid-column: 2;
  grid-row: 2;
  margin: 14px 0 7px;
  justify-self: center;
}
#panel.bag10 #travel-companions :is(#petpouch, #horsebag:not([hidden]), #boatbag:not([hidden])) {
  padding-top: 1px;
  padding-bottom: 2px;
}
#panel:is(.bag8, .bag10) #inventory-foot .gold-pouch {
  min-height: 36px;
}
#panel.opening {
  animation: panel-in 140ms cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-6px) scaleY(0.96);
  }
}
#panel.flip .panel-head {
  transform-origin: top;
  animation: flap 220ms ease-out;
}
@keyframes flap {
  from {
    transform: perspective(600px) rotateX(-70deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  #panel.opening,
  #panel.flip .panel-head {
    animation-duration: 0.01s;
  }
}
#equipment {
  display: grid;
  grid-template-columns: repeat(3, 50px);
  grid-template-areas: "ammo head neck" "weapon body shield" "cape legs ring" ". boots .";
  gap: 6px 12px;
  justify-content: center;
  padding: 4px 0 10px;
}
.eqslot[data-slot=cape] {
  grid-area: cape;
}
.eqslot {
  width: 50px;
  height: 50px;
}
.eqslot[data-slot=head] {
  grid-area: head;
}
.eqslot[data-slot=ammo] {
  grid-area: ammo;
}
.eqslot[data-slot=weapon] {
  grid-area: weapon;
}
.eqslot[data-slot=body] {
  grid-area: body;
}
.eqslot[data-slot=shield] {
  grid-area: shield;
}
.eqslot[data-slot=legs] {
  grid-area: legs;
}
.eqslot[data-slot=boots] {
  grid-area: boots;
}
.eqslot canvas {
  position: absolute;
  left: 5px;
  top: 5px;
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}
.eqslot canvas.ghost {
  opacity: 0.55;
}
.gear-doll {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#gear-figure {
  flex: none;
  width: 104px;
  height: 139px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  cursor: grab;
  touch-action: none;
  background:
    radial-gradient(
      ellipse 70% 12% at 50% 90%,
      rgba(120, 170, 70, 0.45),
      transparent 70%),
    linear-gradient(#e7f1f0, #f6ecd4);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.6);
}
#gear-figure[hidden] {
  display: none;
}
#equipment-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  font: 700 12px var(--read);
  color: var(--brown);
}
#equipment-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
#equipment-stats b {
  color: var(--ink);
}
#equipment-stats img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}
#equipment-armour-note {
  margin: 4px 8px 0;
  font: 600 11.5px/1.35 var(--read);
  color: var(--brown);
  text-align: center;
}
#progression-card {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf0;
}
#progression-card > summary {
  padding: 10px;
  min-height: 42px;
  color: var(--leaf-deep);
  font: 800 13px/1.4 var(--read);
  cursor: pointer;
}
#progression-card > summary:focus-visible {
  outline: 2px solid var(--leaf-deep);
  outline-offset: -3px;
  border-radius: 6px;
}
#progression-card[open] > summary {
  border-bottom: 1px solid var(--line);
}
#progression-summary {
  padding: 10px;
}
#progression-summary > strong {
  font: 15px/1.3 var(--blocks);
  color: var(--leaf-deep);
}
#progression-summary p {
  margin: 6px 0 0;
  font: 12px/1.45 var(--read);
  color: #5a3a10;
}
#progression-summary .rating-line {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font: 13px/1.4 var(--read);
}
#progression-summary details {
  margin-top: 8px;
  font: 12px/1.4 var(--read);
}
#progression-summary #combat-progress-next {
  font: 700 12px/1.4 var(--read);
}
#combat-progress-routes {
  margin: 5px 0;
  padding-left: 18px;
  font: 12px/1.45 var(--read);
  color: #5a3a10;
  overflow-wrap: anywhere;
}
#combat-progress-routes li + li {
  margin-top: 3px;
}
#progression-summary .rating-line {
  flex-wrap: wrap;
  gap: 3px 8px;
}
#combat-progress-catchup {
  padding: 6px;
  background: #f1e7cc;
  border-radius: 4px;
}
#progression-summary summary {
  cursor: pointer;
  color: var(--leaf-deep);
  font-weight: 700;
}
#skill-guide {
  padding: 10px;
  margin-bottom: 12px;
  background: #fffaf0;
  border: 2px solid var(--honey-deep);
  border-radius: 6px;
  font: 12px/1.45 var(--read);
  color: #5a3a10;
}
#skill-guide label {
  display: block;
  font-weight: 800;
  margin-bottom: 5px;
}
#skill-choice {
  display: block;
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  font: 700 13px var(--read);
  color: var(--leaf-deep);
  background: #fff3d8;
  border: 1px solid var(--line);
  border-radius: 4px;
}
#skill-guide p {
  margin: 7px 0;
}
#skill-guide h3 {
  margin: 12px 0 5px;
  color: var(--leaf-deep);
  font-size: 13px;
}
#skill-goal-progress {
  width: 100%;
  height: 9px;
  accent-color: var(--leaf-deep);
}
#skill-goal-xp {
  font-weight: 700;
}
#skill-goal-start {
  margin: 10px 0;
  padding: 9px;
  background: #e4f0d6;
  border: 1px solid var(--leaf-deep);
  border-radius: 4px;
}
#skill-goal-start[hidden] {
  display: none;
}
#skill-goal-start h4 {
  margin: 0 0 5px;
  color: var(--leaf-deep);
  font-size: 13px;
}
#skill-goal-start ol {
  margin: 0;
  padding-left: 20px;
}
#skill-goal-start li + li {
  margin-top: 5px;
}
#skill-goal-start p {
  margin-bottom: 0;
}
#skill-fish-journal[hidden] {
  display: none;
}
#skill-fish-journal .fish-journal-tally {
  margin: 5px 0;
  font-weight: 700;
}
#skill-fish-journal .fish-journal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 280px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
#skill-fish-journal .fish-journal-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-bottom: 1px solid var(--line);
}
#skill-fish-journal .fish-journal-pic {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
#skill-fish-journal .unknown .fish-journal-pic {
  filter: brightness(0);
  opacity: .38;
}
#skill-fish-journal .fish-journal-words {
  min-width: 0;
  overflow-wrap: anywhere;
}
#skill-fish-journal .fish-journal-words b {
  display: block;
  color: var(--leaf-deep);
}
#skill-fish-journal .unknown .fish-journal-words b {
  color: #8a7350;
  font: 15px/1 var(--blocks);
}
#skill-fish-journal .fish-journal-words small {
  display: block;
  margin-top: 2px;
}
#skill-fish-journal .fish-journal-count {
  font: 700 13px var(--read);
  color: var(--leaf-deep);
}
#skill-fish-journal .fish-journal-note {
  margin-bottom: 0;
  font-size: 11px;
  opacity: .85;
}
.skill-catalogue {
  position: relative;
  max-height: 240px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.skill-unlock-row {
  display: grid;
  grid-template-columns: 53px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 5px;
  border-bottom: 1px solid var(--line);
}
.skill-unlock-row > b {
  color: var(--leaf-deep);
  font-size: 11px;
}
.skill-unlock-row small {
  display: block;
  margin-top: 3px;
}
.skill-unlock-row ul {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
}
.skill-unlock-row li + li {
  margin-top: 5px;
}
.skill-unlock-row.current {
  background: #e4f0d6;
  border-left: 3px solid var(--leaf-deep);
}
.skill-unlock-row.next {
  border-top: 2px solid var(--leaf-deep);
}
#skill-guide details {
  padding-top: 6px;
  margin-top: 6px;
  border-top: 1px solid var(--line);
}
#skill-guide summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--leaf-deep);
}
#skill-guide details[hidden] {
  display: none;
}
#skills .skill[aria-pressed=true] {
  border-color: var(--leaf-deep);
  background: #e4f0d6;
}
#skills button.skill {
  cursor: pointer;
  text-align: left;
}
#skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
#skills .skill {
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 6px;
  min-height: 38px;
  padding: 2px 7px 2px 4px;
  background: #fffaf0;
  border: 2px solid var(--line);
  border-radius: 6px;
  corner-shape: bevel;
  cursor: help;
}
#skills .skill:hover {
  background: #fff3d8;
  border-color: var(--ink);
}
#skills .skill canvas {
  grid-row: 1 / 3;
  width: 28px;
  height: 28px;
}
#skills .nm {
  min-width: 0;
  font: 800 11.5px/1.2 var(--read);
  color: #5a3a10;
  white-space: nowrap;
}
#skills .lv {
  display: flex;
  align-items: center;
  gap: 6px;
}
#skills .prog {
  flex: 1;
  height: 6px;
  background: #ead9b2;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(120, 80, 30, 0.2);
}
#skills .prog b {
  display: block;
  height: 100%;
  background: linear-gradient(#8fcf86 0 2px, #3f8a4e 2px);
}
#skills .lvl {
  min-width: 22px;
  font: 16px/1 var(--blocks);
  color: var(--ink);
  text-align: right;
}
#skill-total {
  display: none;
  flex: none;
  gap: 10px;
  padding: 6px 10px;
  border-bottom: 2px solid #bca56e;
  background: #e2edcd;
  color: #254f32;
  font: 800 12px/1.3 var(--read,sans-serif);
}
#panel[data-showing=skills] #skill-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#skill-total .nm {
  min-width: 0;
}
#skill-total .lvl {
  flex: none;
  font: 20px/1 var(--blocks);
  font-variant-numeric: tabular-nums;
}
#spells .spell {
  display: grid;
  grid-template-columns: 24px 36px 1fr auto;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
  padding: 2px 8px 2px 5px;
  background: #fffaf0;
  border: 2px solid var(--line);
  border-radius: 6px;
  corner-shape: bevel;
  cursor: pointer;
}
#spells .spell:hover {
  background: #fff3d8;
  border-color: var(--ink);
}
#spells .spell kbd {
  justify-self: start;
}
#spells .spell .spell-icon {
  width: 36px;
  height: 36px;
}
#spells .spell .sp-name {
  font: 800 13px/1.2 var(--read);
  color: var(--ink);
}
#spells .spell .words {
  display: block;
  font: 700 11.5px/1.25 var(--read);
  color: #6b4fc9;
}
#spells .spell .cost {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  font: 800 11.5px/1.2 var(--read);
  color: #256bbc;
  white-space: nowrap;
}
#spells .spell .cost img {
  width: 14px;
  height: 14px;
  vertical-align: -3px;
  margin-right: 3px;
  image-rendering: pixelated;
}
#spells .spell .req {
  font: 700 11px/1.2 var(--read);
  color: #8a6a40;
}
#spells .spell.locked {
  background: #f4ecdb;
}
#spells .spell.locked .spell-icon {
  opacity: 0.45;
}
#spells .spell.locked .sp-name {
  color: #8a7a60;
}
#spells .spell.locked .req {
  color: #b0462e;
}
#spells .spell.own {
  border-left: 5px solid var(--honey, #f6c531);
}
#spells .spell .own-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  font: 800 10px/1.5 var(--read);
  color: #6a4a10;
  background: #ffe7a0;
  border: 1px solid #c99a2e;
  border-radius: 4px;
  vertical-align: 1px;
}
#hotbar .hslot.own {
  box-shadow: inset 0 0 0 2px #f6c531;
}
#settings label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 5px 2px;
  font: 700 13px var(--read);
  color: var(--ink);
  cursor: pointer;
}
#settings input[type=checkbox],
#wm-minor-towns {
  appearance: none;
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 4px;
  corner-shape: bevel;
  box-shadow: inset 0 2px 0 rgba(120, 80, 30, 0.2);
  cursor: pointer;
}
#settings input[type=checkbox]:checked,
#wm-minor-towns:checked {
  background: #3f8a4e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 6 5' shape-rendering='crispEdges'%3E%3Cpath fill='%23fff6de' d='M5 0h1v1H5zM4 1h2v1H4zM0 2h1v1H0zM3 2h2v1H3zM0 3h4v1H0zM1 4h2v1H1z'/%3E%3C/svg%3E") center / 12px 10px no-repeat;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25);
}
#settings .quality-row {
  display: grid;
  gap: 5px;
  margin: 2px 2px 8px;
}
#settings .q-label {
  font: 8px/1 var(--blocks);
  letter-spacing: 0.06em;
  color: #a8620e;
  text-transform: uppercase;
}
#settings .q-label em {
  font: 700 11px var(--read);
  font-style: normal;
  color: #8a7a60;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}
#settings .seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  border: 2px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(43, 29, 14, 0.3);
}
#settings .seg button {
  min-height: 30px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  font: 800 12px var(--read);
  background: var(--raised);
}
#settings .seg button + button {
  border-left: 2px solid var(--ink);
}
#settings .seg button.on {
  background: var(--evergreen);
  color: var(--paper);
  text-shadow: 0 1px 0 var(--ink);
}
#settings .help {
  margin: 10px 0;
  padding: 8px 9px 9px;
  background: #fffaf0;
  border: 2px solid var(--line);
  border-radius: 6px;
  corner-shape: bevel;
  font: 600 12px/1.35 var(--read);
  color: #6a5030;
}
#settings .help summary {
  cursor: pointer;
  padding: 4px 0;
}
#settings .help[open] summary {
  margin-bottom: 10px;
}
#settings .settings-group + .settings-group {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 2px solid var(--line);
}
#settings h4 {
  margin: 3px 2px 9px;
  font: 800 12px/1.5 var(--read);
  color: var(--leaf-deep);
  text-transform: uppercase;
}
#settings .setting-note {
  margin: 3px 2px 8px;
  font: 600 12px/1.4 var(--read);
  color: var(--brown);
}
#settings #btn-potato {
  width: 100%;
  margin: 4px 0 2px;
}
#fps-counter {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  font: 800 11px var(--read);
  color: #214d32;
  white-space: nowrap;
  padding: 3px 7px;
  background: #e3f1cf;
  border: 1px solid #83985a;
  border-radius: 5px;
}
#fps-counter[hidden] {
  display: none;
}
#settings label:has(input:disabled) {
  color: #8a7a60;
  cursor: default;
}
#settings .help b {
  display: block;
  margin-bottom: 7px;
  font: 8px/1 var(--blocks);
  letter-spacing: 0.06em;
  color: #a8620e;
}
#settings dl {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 5px 8px;
  margin: 0;
}
#settings dt {
  white-space: nowrap;
}
#settings dd {
  margin: 0;
}
#btn-logout {
  display: block;
  width: 100%;
  padding: 6px 10px;
}
#friends .friend-add {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
#friends .friend-add input {
  flex: 1;
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 2px 0 rgba(120, 80, 30, 0.2);
  font: 600 13px var(--read);
  color: var(--ink);
}
#friends .sub {
  margin: 0 2px 6px;
  font: 600 12px/1.4 var(--read);
  color: var(--brown);
}
#friends .friend-map-share {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 3px;
  font: 800 13px/1.3 var(--read);
  color: var(--ink);
  cursor: pointer;
}
#friends .friend {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px 5px 6px;
  border-radius: 6px;
  corner-shape: bevel;
}
#friends .friend:hover {
  background: #f6e6bf;
}
#friends .friend .dot {
  flex: none;
  width: 12px;
  height: 12px;
  background: #c9bfae;
  border: 2px solid var(--ink);
  border-radius: 3px;
  corner-shape: bevel;
}
#friends .friend.online .dot {
  background: #8fb23c;
  box-shadow: inset 1px 1px 0 #bbd862;
}
#friends .friend .name {
  flex: 1;
  font: 800 13px var(--read);
  color: var(--ink);
}
#friends .friend:not(.online) .name {
  color: #8a7a60;
}
#friends .friend .acts {
  display: flex;
  gap: 4px;
}
#friends .friend button {
  padding: 2px 8px;
  font-size: 11px;
}
#friends .friend button.rm {
  background: var(--raised);
}
#friends .friend button[disabled] {
  opacity: 0.45;
  cursor: default;
}
.window {
  position: absolute;
  z-index: 15;
  padding: 0 12px 12px;
}
.window[data-top] {
  z-index: 16;
}
.window h3 {
  margin: 0 -12px 10px;
}
.window .sub,
.window .coins {
  margin: 2px 0 8px;
  font: 600 12px/1.4 var(--read);
  color: var(--brown);
}
#dialog {
  left: 50%;
  top: 50%;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw / var(--ui) - 24px));
  max-height: calc(100dvh / var(--ui) - 32px);
  display: flex;
  flex-direction: column;
}
#dialog .dialog-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#dialog .dialog-speech {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 10px;
}
#dialog .dialog-speech .text {
  flex: 1;
  min-width: 0;
  margin: 2px 0;
}
#dialog .dialog-portrait {
  flex: 0 0 104px;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 2px solid #b58647;
  border-radius: 10px;
  corner-shape: bevel;
  background:
    radial-gradient(
      ellipse at 50% 35%,
      #fff4d2,
      #e7ce99);
  box-shadow: inset 0 2px 4px #80501e22;
}
#dialog .dialog-portrait[hidden] {
  display: none;
}
#dialog .dialog-portrait canvas {
  display: block;
  width: 100%;
  height: 100%;
}
@media (max-width: 480px) {
  #dialog .dialog-portrait {
    flex-basis: 76px;
    width: 76px;
    height: 76px;
  }
  #dialog .dialog-speech {
    gap: 10px;
  }
}
#loot {
  left: 12px;
  top: 238px;
  bottom: auto;
  width: min(320px, calc(100vw / var(--ui) - 24px));
  max-height: calc(100dvh / var(--ui) - 250px);
  display: flex;
  flex-direction: column;
}
@media (max-height: 600px) {
  #loot {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100dvh / var(--ui) - 32px);
  }
}
#loot h3 {
  flex-shrink: 0;
  cursor: move;
  touch-action: none;
  user-select: none;
  padding-right: 48px;
}
#loot .loot-rows {
  display: grid;
  gap: 5px;
  overflow-y: auto;
  overscroll-behavior: contain;
  min-height: 0;
  margin-bottom: 10px;
  padding: 1px;
}
#loot .loot-row {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  padding: 6px 8px;
  text-align: left;
  background: #fff9e9;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 #fffdf6;
}
#loot .loot-row:hover {
  background: #f4e7c8;
  border-color: #b99151;
}
#loot .loot-row:active {
  background: #ead9af;
}
#loot .loot-row:focus-visible,
#loot h3:focus-visible {
  outline: 2px solid var(--leaf-deep);
  outline-offset: -3px;
}
#loot .loot-row img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  flex: none;
}
#loot .loot-row .loot-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 700 13px/1.3 var(--read);
}
#loot .loot-row .loot-name b {
  white-space: nowrap;
  color: var(--brown);
}
#loot .loot-row .loot-name em {
  display: block;
  margin-top: 2px;
  font: 500 11px/1.3 var(--read);
  color: var(--brown);
}
#loot .loot-row .loot-take {
  flex: none;
  padding: 4px 6px;
  border: 1px solid #d9c499;
  border-radius: 4px;
  background: #f3e5c4;
  font: 700 12px var(--read);
  color: var(--brown);
}
#loot .loot-row:hover .loot-take {
  border-color: var(--leaf-deep);
  color: var(--leaf-deep);
}
#loot .loot-row.rare {
  border-left: 3px solid #b67c15;
}
#loot .rare-loot-label {
  color: #8a4e00;
}
#loot .rare-loot-label.mythic {
  color: #b3452a;
}
#loot .loot-all {
  flex-shrink: 0;
  min-height: 44px;
  width: 100%;
  background: var(--evergreen);
  color: var(--paper);
  box-shadow: inset 0 1px 0 #91c98a;
}
#loot .loot-all:hover {
  background: linear-gradient(#76b879, #3e854a);
}
#loot .loot-all:active {
  background: var(--leaf-deep);
}
@media (pointer: coarse), (max-width: 760px) {
  #loot h3 {
    min-height: 50px;
    padding-right: 54px;
  }
  #loot .close {
    width: 44px;
    height: 44px;
    top: 3px;
    right: 4px;
  }
}
#dialog h3 {
  background:
    linear-gradient(
      #ffe27a 0 3px,
      #f6c531 3px calc(100% - 4px),
      #d29c1c calc(100% - 4px));
  color: var(--ink);
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.45);
  padding-right: 44px;
}
#dialog .text {
  margin: 2px 2px 10px;
  font: 600 15px/1.5 var(--read);
  color: var(--ink);
}
#dialog .opt {
  width: 100%;
  text-align: left;
  box-shadow: none;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 5px 0;
  padding: 6px 10px 6px 6px;
  background: #fffaf0;
  border: 2px solid var(--line);
  border-radius: 6px;
  corner-shape: bevel;
  font: 800 14px var(--read);
  color: #5a3a10;
  cursor: pointer;
}
#dialog .opt:hover {
  background: #fff3d8;
  border-color: var(--ink);
}
#dialog .opt .k {
  display: inline-block;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
}
#dialog .opt .k.none {
  visibility: hidden;
}
#dialog .dialog-you {
  margin: 0 0 6px;
  font: 600 13px/1.4 var(--read);
  color: var(--brown);
}
#dialog .dialog-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
#dialog .text.typing {
  cursor: pointer;
}
#dialog .typed .unsaid {
  visibility: hidden;
}
#dialog .opt.story {
  background: #fff3c4;
  border-color: #d29c1c;
}
#dialog .opt.story::after {
  content: "!";
  margin-left: auto;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #f6c531;
  color: var(--ink);
  font: 900 13px/20px var(--read);
  text-align: center;
  box-shadow: 0 0 0 2px var(--ink);
}
#dialog .opt.asked {
  opacity: .72;
}
#dialog .opt.asked:not(.story)::after {
  content: "✓";
  margin-left: auto;
  color: var(--leaf-deep);
  font: 900 14px var(--read);
}
#dialog .dog-form {
  display: grid;
  gap: 8px;
  margin: 0 2px;
}
#dialog .dog-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
#dialog .dog-k {
  width: 54px;
  font: 800 13px var(--read);
  color: var(--brown);
}
#dialog #dog-name {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 2px 0 rgba(120, 80, 30, 0.2);
  font: 700 15px var(--read);
  color: var(--ink);
}
#dialog .dog-coats,
#dialog .dog-collars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#dialog .dog-coat {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffaf0;
  box-shadow: none;
}
#dialog .dog-coat i {
  width: 16px;
  height: 16px;
  border: 2px solid var(--ink);
  border-radius: 3px;
}
#dialog .dog-collar {
  width: 26px;
  height: 26px;
  padding: 0;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.18);
}
#dialog .dog-coat.on,
#dialog .dog-collar.on {
  outline: 3px solid var(--honey);
  outline-offset: 1px;
}
#dialog .dog-coat.on {
  background: linear-gradient(var(--honey-hi), #f0b93a);
}
#dialog .dog-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}
#dialog .dog-note {
  font: 600 12px var(--read);
  color: var(--brown);
}
#dialog .dog-note.low {
  color: #b32f1e;
}
#dialog .dog-save {
  padding: 6px 18px;
  font-size: 14px;
}
#dialog .dog-save:disabled {
  opacity: 0.5;
  cursor: default;
}
#make,
#shop,
#bank {
  width: 396px;
  max-height: 72%;
  overflow-y: auto;
  scrollbar-width: thin;
}
#make {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
#shop,
#bank {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}
#shop {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#shop > h3,
#shop > .sub {
  flex: 0 0 auto;
}
#shop > .shop-purse {
  flex: 0 0 auto;
  margin: 0 0 8px;
  font: 700 12px/1.4 var(--read);
  color: var(--brown);
}
#shop > .shop-purse.low {
  color: #9a3f12;
}
#shop > .stock {
  min-height: 0;
  overflow-y: auto;
  padding: 3px 6px 10px;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
#shop > .shop-help {
  flex: 0 0 auto;
  max-height: min(150px, 20dvh);
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}
#shop .shop-help summary {
  cursor: pointer;
  padding: 7px 0;
  font-weight: 800;
  color: var(--leaf-deep);
}
#shop .shop-help summary:focus-visible {
  outline: 2px solid var(--leaf-deep);
  outline-offset: -2px;
}
#shop .shop-help p {
  margin: 4px 0 8px;
}
#shop:not(.pet-shop) > .stock {
  flex: 1 1 auto;
  min-height: 70px;
  min-width: 0;
  grid-template-columns: repeat(auto-fill, 46px);
  align-content: start;
}
#shop .slot.fresh {
  border-color: #e0873a;
  box-shadow: inset 0 0 0 1px #ffcf7a, 0 0 6px rgba(255, 150, 60, 0.45);
}
#shop .slot.fresh::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 6px;
  height: 6px;
  background: #ffb347;
  box-shadow: 0 0 0 1px #8a3b12, 0 0 4px #ff9a3a;
  transform: rotate(45deg);
}
#make .opt {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0;
  padding: 6px 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  corner-shape: bevel;
  font: 700 13px var(--read);
  color: var(--ink);
  cursor: pointer;
}
#make .opt > span:first-child {
  flex: 1;
}
#make .opt:hover {
  background: #fff3d8;
  border-color: var(--line);
}
#make .opt .lvl {
  margin-left: 7px;
  padding: 1px 5px;
  background: #fff1c2;
  border: 1px solid #d9b86a;
  border-radius: 3px;
  font: 700 11px var(--read);
  color: #8a5a10;
}
#make .opt .need {
  font: 600 12px var(--read);
  color: var(--brown);
  white-space: nowrap;
}
#make .opt.no {
  color: #a89878;
}
#make .opt.no .lvl {
  opacity: 0.7;
}
#make .opt .qty {
  display: flex;
  gap: 4px;
}
#make .opt .qty button {
  padding: 2px 7px;
  font-size: 11px;
}
#make .opt .swatch {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 7px;
  vertical-align: -3px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  corner-shape: bevel;
}
#make {
  display: flex;
  flex-direction: column;
  width: 456px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
}
#make h3 .now {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 2px 8px 2px 5px;
  background: rgba(20, 50, 28, 0.35);
  border-radius: 5px;
  corner-shape: bevel;
  font: 700 12px/1 var(--read);
  letter-spacing: 0;
  text-shadow: 0 1px 0 var(--ink);
  white-space: nowrap;
}
#make h3 .now img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}
#make h3 .now b {
  font: 16px/1 var(--blocks);
  color: var(--honey-hi);
}
#make .rows {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  margin-right: -8px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #c9a25a transparent;
}
#make .warn {
  margin: 0 0 8px;
  padding: 7px 10px;
  background: #fff1c2;
  border: 2px solid #d9b86a;
  border-radius: 6px;
  corner-shape: bevel;
  font: 700 12.5px/1.4 var(--read);
  color: #7a4c10;
}
#make .grp {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0 3px;
  padding: 5px 2px 4px;
  background: #fdf3da;
  border-bottom: 2px solid var(--line);
  font: 8px/1 var(--blocks);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a8620e;
}
#make .grp:first-child {
  margin-top: 0;
}
#make .grp img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}
#make .grp em {
  margin-left: auto;
  font: 700 11.5px var(--read);
  font-style: normal;
  letter-spacing: 0;
  text-transform: none;
  color: var(--brown);
}
#make .opt.rich {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 10px;
  margin: 2px 0;
  padding: 4px 8px 4px 4px;
}
#make .opt .pic {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(#f1ddb0, #e9d09c);
  border: 2px solid #b58647;
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 3px 0 rgba(120, 80, 30, 0.2);
}
#make .opt .pic img {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}
#make .opt .pic .have {
  position: absolute;
  right: 1px;
  bottom: 1px;
  font: 8px/1 var(--blocks);
  color: #fff;
  text-shadow: var(--inked);
}
#make .opt .pic .have.k {
  color: var(--honey-hi);
}
#make .opt .what {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#make .brew-effect {
  font: 500 12px/1.45 var(--read);
  overflow-wrap: anywhere;
}
#make .opt .nm {
  font: 800 13.5px/1.15 var(--read);
  color: var(--ink);
}
#make .opt.rich .lvl {
  vertical-align: 1px;
}
#make .opt .info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 9px;
  font: 700 11.5px/16px var(--read);
  color: var(--brown);
}
#make .opt .info i {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-style: normal;
  white-space: nowrap;
}
#make .opt .info .takes {
  display: block;
}
#make[data-kind=cook] .opt .info .takes {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}
#make[data-kind=cook] .opt .info .takes > span {
  display: inline-block;
  max-width: 100%;
  vertical-align: top;
}
#make[data-kind=garden] .opt .info i,
#make[data-kind=garden] .opt .why {
  white-space: normal;
  overflow-wrap: anywhere;
}
#make:is([data-kind=crafting], [data-kind=saw], [data-kind=jewelry], [data-kind=brewing]) .opt .info .takes,
#make:is([data-kind=crafting], [data-kind=saw], [data-kind=jewelry], [data-kind=brewing]) .opt .why {
  white-space: normal;
  overflow-wrap: anywhere;
}
#make:is([data-kind=crafting], [data-kind=saw], [data-kind=jewelry], [data-kind=brewing]) .opt .why {
  max-width: 100px;
}
@media (max-width: 520px) {
  #make:is([data-kind=crafting], [data-kind=saw], [data-kind=jewelry], [data-kind=brewing]) .opt.rich {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }
  #make:is([data-kind=crafting], [data-kind=saw], [data-kind=jewelry], [data-kind=brewing]) .opt.rich .pic {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  #make:is([data-kind=crafting], [data-kind=saw], [data-kind=jewelry], [data-kind=brewing]) .opt.rich .what {
    grid-column: 2;
    grid-row: 1;
  }
  #make:is([data-kind=crafting], [data-kind=saw], [data-kind=jewelry], [data-kind=brewing]) .opt.rich > :last-child {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
  }
}
#make .opt.again {
  box-shadow: inset 3px 0 0 var(--evergreen);
}
#make .opt.has-how {
  cursor: pointer;
}
#make .opt .how-cue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font: 800 12px/1 var(--read);
  vertical-align: middle;
}
#make .opt .how-cue[aria-expanded=true] {
  background: var(--brown);
  color: var(--paper);
  border-color: var(--brown);
}
#make .opt .how {
  order: 9;
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 6px 8px;
  color: var(--ink, #2b1d0e);
  white-space: normal;
  cursor: default;
}
#make .opt .how b:not(:first-child) {
  margin-top: 5px;
}
#make .opt .info:has(> .stat) > .takes {
  order: -2;
  flex: 1 1 100%;
}
#make .opt .info > .stat {
  order: -1;
}
#make .opt .info img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}
#make .opt .info .short {
  color: #b0462e;
}
#make .opt .info .good {
  color: #2c6a3c;
}
#make .opt .qty button b {
  margin-left: 1px;
  font: 700 11px var(--read);
  color: #7a4c10;
}
#make .opt.rich .qty button[data-n="0"] {
  min-width: 58px;
}
#make .opt .why {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 800 11.5px var(--read);
  color: #b0462e;
  white-space: nowrap;
}
#make .opt .why img {
  width: 14px;
  height: 14px;
  image-rendering: pixelated;
}
#make .opt.rich.no {
  color: #8a7a60;
  cursor: default;
}
#make .opt.rich.no .nm {
  color: #8a7a60;
}
#make .opt.rich.no .pic img {
  opacity: 0.55;
}
#make .opt.rich.no:hover {
  background: #fbf0d6;
  border-color: transparent;
}
#make .build-controls {
  flex-shrink: 0;
}
#make .build-target {
  font: 600 12px/1.4 var(--read);
  color: var(--brown);
  margin: 0 0 7px;
}
#make .build-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 7px;
}
#make .build-filters button {
  padding: 4px 8px;
  font: 800 12px var(--read);
}
#make .build-filters button[aria-pressed=true] {
  background: var(--evergreen);
  color: var(--paper);
}
#make[data-kind=hunting] .survey-choice[aria-pressed=true] {
  border-color: var(--leaf-deep);
  box-shadow: inset 0 0 0 2px var(--leaf-deep);
}
#make .blueprint[hidden] {
  display: none;
}
@media (min-width: 1200px) {
  #make[data-kind=build] {
    left: auto;
    right: 128px;
    transform: translateY(-50%);
  }
}
#make .opt.blueprint {
  width: 100%;
  text-align: left;
  background: #fffaf0;
  box-shadow: none;
  border-color: var(--line);
  padding: 9px;
  margin: 6px 0;
}
#make .blueprint .nm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
#make .blueprint .description {
  font: 600 12px/1.4 var(--read);
  color: var(--brown);
}
#make .blueprint .need,
#make .blueprint .why {
  white-space: normal;
}
#make .blueprint .ready {
  font: 800 11.5px var(--read);
  color: #2c6a3c;
}
#make .blueprint:focus-visible {
  outline: 3px solid var(--evergreen);
  outline-offset: -3px;
}
#make .home-guide {
  margin: 5px 0 10px;
  padding: 8px;
  background: #fff1c2;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: 600 12px/1.5 var(--read);
}
#make .home-guide summary {
  cursor: pointer;
  font-weight: 800;
}
#make .home-guide ol {
  padding-left: 18px;
  margin: 8px 0 0;
}
#make .home-guide li + li {
  margin-top: 7px;
}
#make .station-guide p {
  margin: 6px 0 0;
}
#make .make-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin: 0 0 8px;
  font: 700 12px var(--read);
  color: var(--brown);
}
#make .make-tools .short {
  color: #b0462e;
}
#make .make-tools .good {
  color: #2c6a3c;
}
#make .anvil-actions {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  gap: 6px;
  margin: 0 0 8px;
}
#make .anvil-actions button {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 30px;
  margin: 0;
  padding: 5px 10px;
  font: 800 12px/1.2 var(--read);
}
#make:is([data-kind=smith], [data-kind=smelt]) .opt .info .takes,
#make:is([data-kind=smith], [data-kind=smelt]) .opt .why {
  white-space: normal;
  overflow-wrap: anywhere;
}
#make:is([data-kind=smith], [data-kind=smelt]) .opt .why {
  max-width: 100px;
}
#make .smith-filter {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  gap: 5px 10px;
  margin: 0 0 8px;
  font: 700 12px/1.3 var(--read);
  color: var(--brown);
}
#make .smith-metals {
  display: flex;
  flex: 1 1 100%;
  flex-wrap: wrap;
  gap: 4px;
}
#make .smith-metals button {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 3px 7px 3px 4px;
  font: 800 12px/1.2 var(--read);
  white-space: nowrap;
}
#make .smith-metals button.all {
  padding-left: 7px;
}
#make .smith-metals button img {
  width: 16px;
  height: 16px;
  image-rendering: pixelated;
}
#make .smith-metals button[aria-pressed=true] {
  background: var(--evergreen);
  color: var(--paper);
}
#make .smith-ready {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
#make .smith-ready input {
  margin: 0;
}
#make .smith-filter p {
  margin: 0 0 0 auto;
  text-align: right;
}
@media (pointer: coarse) {
  #make .smith-metals button,
  #make .smith-ready {
    min-height: 44px;
  }
  #make .smith-metals button {
    flex-grow: 1;
    min-width: 44px;
  }
  #make .smith-ready input {
    width: 20px;
    height: 20px;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 700px) {
  #make .rows > .smith-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 4px;
  }
  #make .rows > .smith-filter > * {
    flex: 0 0 auto;
  }
  #make .rows > .smith-filter .smith-metals {
    flex-wrap: nowrap;
    order: 1;
  }
  #make .rows > .smith-filter .smith-metals button {
    flex: 0 0 auto;
  }
  #make .rows > .smith-filter p {
    order: 2;
    margin-left: 0;
    white-space: nowrap;
  }
}
#make:is([data-kind=tempering], [data-kind=kindling]) .opt .info .takes,
#make:is([data-kind=tempering], [data-kind=kindling]) .opt .why {
  white-space: normal;
  overflow-wrap: anywhere;
}
#make:is([data-kind=tempering], [data-kind=kindling]) .opt .why {
  max-width: 100px;
}
#make .saw-tabs {
  display: flex;
  flex-shrink: 0;
  gap: 5px;
  margin: 0 0 8px;
}
#make .saw-tabs button {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px;
  font: 800 12.5px var(--read);
}
#make .saw-tabs button[aria-pressed=true] {
  background: var(--evergreen);
  color: var(--paper);
}
@media (pointer: coarse) {
  #make .anvil-actions button,
  #make .saw-tabs button {
    min-height: 44px;
  }
}
#make .opt.nope {
  animation: make-nope 0.3s ease;
}
@keyframes make-nope {
  20% {
    transform: translateX(-4px);
  }
  50% {
    transform: translateX(3px);
  }
  80% {
    transform: translateX(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #make .opt.nope {
    animation: none;
  }
}
.stock {
  display: grid;
  grid-template-columns: repeat(7, 46px);
  gap: 10px 5px;
  justify-content: center;
  padding-bottom: 6px;
}
.stock .slot {
  width: 46px;
  height: 46px;
}
.stock .slot canvas {
  left: 3px;
  top: 2px;
}
.stock .slot .price {
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -8px;
  z-index: 1;
  height: 14px;
  background: var(--honey);
  border: 2px solid var(--ink);
  border-radius: 3px;
  corner-shape: bevel;
  font: 8px/10px var(--blocks);
  color: var(--ink);
  text-align: center;
}
.stock > .sub {
  grid-column: 1 / -1;
}
#worldmap {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(min(560px, 100vh - 180px) + 30px);
  max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 16px);
  overflow: auto;
  scrollbar-width: thin;
}
#worldmap {
  min-width: min(320px, calc((100vw - 16px) / var(--ui, 1)));
}
#worldmap > h3 {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#worldmap.moving-map > h3 {
  cursor: grabbing;
}
#worldmap > h3:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: -4px;
}
#worldmap .mapwrap {
  position: relative;
  width: min(560px, 100vh - 180px);
  height: min(560px, 100vh - 180px);
  margin: 8px auto 6px;
  border: 3px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  overflow: hidden;
}
#worldmap-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
#worldmap-canvas.dragging {
  cursor: grabbing;
}
.maptools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.maptools .wm-label-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  font: 700 12px var(--read);
  cursor: pointer;
}
.maptools .wm-label-toggle input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--brown);
}
.maptools button {
  height: 28px;
  min-width: 30px;
  padding: 0 8px;
  font: 16px/1 var(--blocks);
}
.maptools #wm-me {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 800 12px var(--read);
}
.maptools #wm-me .px-icon canvas {
  width: 14px;
  height: 14px;
}
.maptools #wm-info {
  margin-left: auto;
  font: 600 11px var(--read);
  color: var(--brown);
}
.maplegend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  margin: 0 2px;
  font: 700 11px var(--read);
  color: #5a3a10;
}
.maplegend span {
  display: inline-flex;
  align-items: center;
}
.maplegend .sw {
  display: inline-block;
  width: 13px;
  height: 13px;
  margin-right: 5px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  corner-shape: bevel;
}
.maplegend .friend {
  background: #49e879;
  border-radius: 50%;
  corner-shape: round;
}
.maplegend .player {
  background: #fff6de;
  border-radius: 50%;
  corner-shape: round;
}
.maplegend .party {
  background: #e47cff;
  border-radius: 50%;
  corner-shape: round;
}
.maplegend .land {
  background: #7fbf4a;
}
.maplegend .water {
  background: #4aa0e8;
}
.maplegend .fog {
  background:
    repeating-linear-gradient(
      135deg,
      #f3e8cf 0 2px,
      #d6c6a4 2px 4px);
}
#worldmap.atlas-view .maplegend .fog {
  background: #ecdeba;
}
.maplegend .land {
  background: #a9b77e;
}
.maplegend .water {
  background: #9cbcc0;
}
.maplegend .fog {
  background: #ecdeba;
}
.maplegend .region {
  background:
    linear-gradient(
      90deg,
      #b48fb6 0 45%,
      #3a2410 45% 55%,
      #9cc0a8 55%);
}
#worldmap .mapwrap {
  background: #ecdeba;
  border-color: #4a2e14;
}
#worldmap-labels span.region {
  font: 9px/1 var(--blocks);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #2b1d0e;
  text-shadow:
    0 0 3px #fff6de,
    0 0 2px #fff6de,
    1px 1px 0 #fff6de,
    -1px -1px 0 #fff6de;
}
#worldmap-labels span.region.small {
  font-size: 7px;
}
html:lang(zh-CN) #worldmap-labels span.region,
html:lang(ja) #worldmap-labels span.region,
html:lang(ko) #worldmap-labels span.region {
  font-size: 12px;
  letter-spacing: 0.2em;
}
html:lang(zh-CN) #worldmap-labels span.region.small,
html:lang(ja) #worldmap-labels span.region.small,
html:lang(ko) #worldmap-labels span.region.small {
  font-size: 10px;
}
#region-banner {
  --em: 42px;
  --top: max(136px, 17vh);
  --point: 24px;
  position: fixed;
  left: 0;
  right: 0;
  top: var(--top);
  z-index: 40;
  box-sizing: border-box;
  width: max-content;
  max-width: calc(100vw - 32px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 22px 10px 12px;
  background:
    repeating-linear-gradient(transparent 0 15px, rgba(84, 50, 26, .45) 15px 17px),
    linear-gradient(
      #d9a066 0 3px,
      #a8703f 3px calc(100% - 4px),
      #7a4c28 calc(100% - 4px));
  border: 3px solid var(--ink);
  border-radius: 8px;
  corner-shape: bevel;
  box-shadow:
    inset 2px 2px 0 rgba(255, 226, 170, .35),
    inset -2px -2px 0 rgba(43, 29, 14, .3),
    var(--ledge);
  color: var(--paper);
  text-align: left;
  text-shadow: none;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transform-origin: 50% -24px;
  transition: opacity .5s ease, transform .5s ease;
}
#region-banner.shown {
  opacity: 1;
  transform: none;
  transition: opacity .3s ease-out, transform .6s cubic-bezier(.3, 1.6, .5, 1);
}
#region-banner .words {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
#region-banner .over {
  font: 800 11px/1.2 var(--read);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--honey-hi);
  text-shadow: 0 1px 0 var(--ink);
}
#region-banner .over.blocks {
  font: 8px/1 var(--blocks);
  letter-spacing: .2em;
}
#region-banner .name {
  font: 900 23px/1.15 var(--read);
  letter-spacing: .01em;
  overflow-wrap: anywhere;
  text-wrap: balance;
  text-shadow: 0 2px 0 var(--ink);
}
#region-banner .name.blocks {
  font: 24px/1.05 var(--blocks);
  letter-spacing: .04em;
}
#region-banner .emblem {
  flex: none;
  line-height: 0;
}
#region-banner .emblem canvas {
  display: block;
  width: var(--em);
  height: var(--em);
  image-rendering: pixelated;
}
#region-banner .said {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#region-banner .end {
  display: none;
}
#region-banner[data-place=town] {
  top: calc(var(--top) + 26px);
}
#region-banner[data-place=town] .end {
  display: block;
  position: absolute;
  top: -19px;
  width: 6px;
  height: 16px;
  background:
    linear-gradient(
      90deg,
      var(--ink) 0 1px,
      #d8b46a 1px 3px,
      #a8803e 3px 5px,
      var(--ink) 5px);
}
#region-banner[data-place=town] .end::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -8px;
  width: 8px;
  height: 8px;
  background: var(--honey);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
#region-banner[data-place=town] .end.l {
  left: 20%;
}
#region-banner[data-place=town] .end.r {
  right: 20%;
}
#region-banner[data-place=town].shown {
  animation: region-banner-swing 1.1s ease-out both;
}
@keyframes region-banner-swing {
  0% {
    opacity: 0;
    transform: translateY(-10px) rotate(-5deg);
  }
  30% {
    opacity: 1;
  }
  45% {
    transform: rotate(3deg);
  }
  72% {
    transform: rotate(-1.2deg);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
#region-banner[data-place=wild] {
  left: calc(0px - var(--point));
  max-width: calc(100vw - 32px - var(--point));
  border-right: 0;
  border-radius: 8px 0 0 8px;
  padding-right: 8px;
}
#region-banner[data-place=wild] .end.r {
  display: block;
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: 100%;
  width: var(--point);
  background: var(--ink);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
#region-banner[data-place=wild] .end.r::after {
  content: "";
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 0;
  width: calc(var(--point) - 5px);
  background:
    repeating-linear-gradient(transparent 0 15px, rgba(84, 50, 26, .45) 15px 17px),
    linear-gradient(
      #d9a066 0 3px,
      #a8703f 3px calc(100% - 4px),
      #7a4c28 calc(100% - 4px));
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
@media (max-width: 760px) {
  #region-banner {
    --em: 28px;
    --top: 250px;
    --point: 18px;
    max-width: calc(100vw - 112px);
    gap: 8px;
    padding: 8px 16px 9px 10px;
  }
  #region-banner[data-place=wild] {
    max-width: calc(100vw - 112px - var(--point));
    padding-right: 6px;
  }
  #region-banner .name {
    font-size: 18px;
  }
  #region-banner .name.blocks {
    font-size: 16px;
    letter-spacing: 0;
  }
}
@media (pointer: coarse) and (max-height: 500px) {
  #region-banner {
    --top: 104px;
  }
}
@media (prefers-reduced-motion: reduce) {
  #region-banner,
  #region-banner.shown {
    animation: none !important;
    transform: none !important;
    transition: opacity .4s ease;
  }
}
.maplegend .build {
  background: #ff9a3a;
}
.maplegend .bank {
  background: var(--honey);
}
.maplegend .cave {
  background: #6f747d;
  box-shadow: inset 0 -4px 0 #15121a;
}
.maplegend .fish {
  background: #8ccaf6;
}
.maplegend .you {
  width: 15px;
  height: 15px;
  border: 0;
  border-radius: 0;
  background: var(--honey);
  clip-path: polygon(50% 0, 63% 37%, 100% 50%, 63% 63%, 50% 100%, 37% 63%, 0 50%, 37% 37%);
}
#worldmap .sub {
  margin: 5px 2px 0;
}
#worldmap-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
#worldmap-labels span.you {
  z-index: 2;
  padding: 2px 7px 1px;
  background: var(--ink);
  color: #fff6de;
  border: 2px solid #fff6de;
  border-radius: 5px;
  font: 800 11px/1.2 var(--read);
  letter-spacing: 0.04em;
  box-shadow: 0 2px 0 rgba(43, 29, 14, 0.4);
  text-shadow: none;
}
#worldmap-labels span.you-ping {
  z-index: 1;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--ink);
  animation: you-ping 1.5s ease-out infinite;
}
@keyframes you-ping {
  from {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(2.6);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  #worldmap-labels span.you-ping {
    animation: none;
    opacity: 0.8;
  }
}
#worldmap-labels span {
  position: absolute;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  font: 800 12px/1.1 var(--read);
  color: var(--ink);
  letter-spacing: 0.02em;
  text-shadow:
    0 0 3px #fff9e8,
    0 0 2px #fff9e8,
    1px 1px 0 #fff9e8,
    -1px -1px 0 #fff9e8,
    1px -1px 0 #fff9e8,
    -1px 1px 0 #fff9e8;
}
#worldmap-labels span.spawntown {
  padding: 4px 7px 3px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 5px;
  corner-shape: bevel;
  box-shadow: 0 2px 0 rgba(43, 29, 14, 0.35);
  font: 8px/1 var(--blocks);
  letter-spacing: 0.04em;
  text-shadow: none;
}
#worldmap-labels span.cave {
  padding: 1px 5px;
  background: rgba(46, 34, 58, 0.86);
  color: #f1e8ff;
  border-radius: 3px;
  font: italic 700 10px/1.2 var(--read);
  letter-spacing: 0.03em;
  text-shadow: none;
}
#worldmap-labels span.friend {
  font-size: 11px;
  color: #145a2c;
}
#worldmap-labels span.party {
  font-size: 11px;
  color: #5e1670;
}
#worldmap-labels span.ring {
  padding: 2px 6px 1px;
  background: rgba(43, 29, 14, 0.82);
  color: #ffe27a;
  border-radius: 4px;
  font: 800 10px/1.2 var(--read);
  text-shadow: none;
}
.wm-flight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 2px;
  padding: 8px 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 6px;
}
.wm-flight[hidden] {
  display: none;
}
.wm-flight .wf-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.wm-flight .wf-title {
  font: 800 14px/1.2 var(--read);
  color: var(--ink);
}
.wm-flight .wf-line,
.wm-flight .wf-note {
  font: 600 12px/1.3 var(--read);
  color: #5a4630;
}
.wm-flight .wf-note:empty {
  display: none;
}
.wm-flight .wf-note.danger {
  color: #b23a2c;
}
.wm-flight .wf-buttons {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.wm-flight .wf-fly {
  min-width: 64px;
}
.wm-flight .wf-fly:disabled {
  opacity: 0.45;
  cursor: default;
}
.wm-flight .wf-cancel {
  background: var(--paper);
}
#worldmap.flying .sub,
body.flying #worldmap .sub {
  display: none;
}
#worldmap-labels span.landmark {
  transform: translate(-50%, 8px);
  font-size: 11px;
  color: #5a3a10;
}
.maptools #wm-refresh,
.maptools #wm-world {
  font: 800 12px var(--read);
  white-space: nowrap;
}
.maptools #wm-marker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 800 12px var(--read);
  white-space: nowrap;
}
.maptools #wm-marker .px-icon canvas {
  width: 14px;
  height: 14px;
}
.maptools #wm-marker.on {
  background: linear-gradient(#ffd08a, #ff9f45);
  box-shadow: inset 0 2px 0 rgba(150, 60, 10, 0.35);
}
#worldmap.placing #worldmap-canvas {
  cursor: crosshair;
}
.maptools #wm-teleport.on {
  background: linear-gradient(#e7b8f5, #b04fd8);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(70, 20, 90, 0.35);
}
#worldmap.teleporting #worldmap-canvas {
  cursor: crosshair;
}
#amount-dialog.map-teleport-ask {
  margin-top: auto;
  margin-bottom: 24px;
}
#wm-teleport[hidden],
#worldmap.flying #wm-teleport,
body.flying #wm-teleport {
  display: none;
}
#worldmap.flying #wm-marker {
  display: none;
}
.maptools #wm-clear-markers {
  font: 800 12px var(--read);
  white-space: nowrap;
}
#wm-clear-markers[hidden],
#worldmap.flying #wm-clear-markers {
  display: none;
}
#worldmap.flying #wm-world,
body.flying #wm-world {
  display: none;
}
.maplegend .marker {
  width: 11px;
  height: 11px;
  margin: 0 6px 3px 2px;
  background: #2fa7c9;
  border-radius: 50% 50% 50% 0;
  corner-shape: round;
  transform: rotate(-45deg);
}
#worldmap-labels span.marker {
  font-size: 11px;
  color: #135e73;
}
#worldmap-labels span.marker.followed {
  color: #a3470f;
}
#chat {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 8;
  width: 440px;
  padding: 5px 6px 6px;
}
#chat-grip {
  position: absolute;
  right: -2px;
  top: -2px;
  width: 16px;
  height: 16px;
  cursor: nesw-resize;
  border-radius: 0 6px 0 6px;
  background:
    linear-gradient(
      225deg,
      var(--honey) 0 45%,
      transparent 46%);
  opacity: .75;
}
#chat-grip:hover,
body.sizing-chat #chat-grip {
  opacity: 1;
}
#level-progress {
  position: absolute;
  left: 50%;
  top: 70px;
  z-index: 9;
  transform: translateX(-50%);
  display: grid;
  gap: 4px;
  min-width: 240px;
  padding: 6px 10px 8px;
  background: #fffaee;
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 0 3px 0 rgba(43, 29, 14, .38);
  color: var(--ink);
  font: 800 12px var(--read);
  text-align: center;
  pointer-events: none;
}
#level-progress[hidden] {
  display: none;
}
#level-progress .b {
  display: block;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #d9c8a0;
  overflow: hidden;
}
#level-progress .b i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(#ffe27a, #d29c1c);
  transition: width .3s;
}
#work-progress {
  position: absolute;
  left: 50%;
  top: 70px;
  z-index: 9;
  transform: translateX(-50%);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 10px;
  width: 280px;
  max-width: calc(100vw - 24px);
  padding: 6px 7px 7px 11px;
  background: var(--parchment);
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: var(--bevel), var(--ledge);
  color: var(--ink);
  font: 800 12px var(--read);
}
#work-progress[data-state=idle] {
  visibility: hidden;
  pointer-events: none;
}
#work-progress .w-words {
  grid-column: 1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  line-height: 1.3;
  white-space: nowrap;
}
#work-progress .w-title {
  overflow: hidden;
  text-overflow: ellipsis;
}
#work-progress .w-count,
#work-progress .w-left {
  color: #7a4f10;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
#work-progress .w-left {
  grid-column: 1;
  text-align: left;
  line-height: 1.2;
}
#work-progress[data-timer=false] .w-left {
  display: none;
}
#work-progress[data-rest=true] .w-left {
  display: block;
  white-space: normal;
}
#work-progress .w-left.long {
  color: #a5371f;
}
#work-progress .b {
  grid-column: 1;
  display: block;
  height: 8px;
  border: 2px solid var(--ink);
  border-radius: 4px;
  background: #4a3218;
  overflow: hidden;
}
#work-progress .b i {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background:
    linear-gradient(
      #a6e08f 0 1px,
      #5aa84e 1px,
      #3f8a4e);
}
#work-progress .w-stop {
  grid-column: 2;
  grid-row: 1 / span 3;
  min-height: 44px;
  min-width: 56px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--parchment);
  box-shadow: var(--bevel), 0 2px 0 rgba(43, 29, 14, 0.4);
  color: var(--ink);
  font: 800 12px var(--read);
  cursor: pointer;
}
#work-progress .w-stop:active {
  transform: translateY(1px);
}
#work-progress[data-state=finished] .w-stop {
  visibility: hidden;
}
body.sizing-chat,
body.sizing-chat * {
  cursor: nesw-resize !important;
  user-select: none;
}
#chat-tabbar {
  padding-right: 12px;
}
@media (pointer: coarse) {
  #chat-grip {
    display: none;
  }
}
@media (pointer: coarse) {
  #chat-tabbar {
    padding-right: 0;
  }
}
#messages {
  height: 116px;
  overflow-y: auto;
  padding: 4px 8px 2px 6px;
  font: 600 13px/1.45 var(--read);
  color: var(--paper);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  scrollbar-width: thin;
  scrollbar-color: rgba(246, 197, 49, 0.55) transparent;
  -webkit-mask-image: linear-gradient(transparent, #000 14px);
  mask-image: linear-gradient(transparent, #000 14px);
}
#messages div {
  word-wrap: break-word;
}
#messages .chat-item-link {
  display: inline;
  padding: 0 2px;
  margin: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  color: #ffd77d;
  text-decoration: underline;
  cursor: pointer;
  white-space: normal;
}
#messages .chat-item-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
#messages .chat-coordinate-link {
  display: inline;
  padding: 0;
  margin: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  color: #8fd4ff;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  white-space: nowrap;
}
#messages .chat-coordinate-link:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}
#messages > div,
.label .say:not(.spell) {
  overflow: hidden;
}
#chat-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 3px 2px;
}
#chat-tabs button {
  position: relative;
  min-height: 20px;
  margin: 0;
  padding: 1px 7px;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 5px;
  background: rgba(6, 18, 11, 0.5);
  box-shadow: none;
  color: #cdbf9f;
  font: 800 11px var(--read);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.55);
  cursor: pointer;
}
#chat-tabs button:hover {
  background: rgba(6, 18, 11, 0.7);
  color: var(--honey-hi);
}
#chat-tabs button[aria-selected=true] {
  background: var(--honey);
  color: var(--ink);
  text-shadow: none;
  border-color: var(--ink);
}
#game-unread {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  box-sizing: border-box;
  background: var(--honey);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font: 800 10px/13px var(--read);
  text-shadow: none;
}
#game-unread[hidden] {
  display: none;
}
#private-unread {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  box-sizing: border-box;
  background: #ffbcd8;
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font: 800 10px/13px var(--read);
  text-shadow: none;
}
#private-unread[hidden] {
  display: none;
}
#messages[data-show=chat] > [data-ch=private],
#messages[data-show=chat] > [data-ch=game],
#messages[data-show=chat] > [data-ch=world],
#messages[data-show=world] > [data-ch=chat],
#messages[data-show=world] > [data-ch=game],
#messages[data-show=world] > [data-ch=private],
#messages[data-show=game] > [data-ch=chat],
#messages[data-show=game] > [data-ch=private],
#messages[data-show=game] > [data-ch=world],
#messages[data-show=private] > [data-ch=chat],
#messages[data-show=private] > [data-ch=game],
#messages[data-show=private] > [data-ch=world] {
  display: none;
}
#messages .times {
  color: #cdbf9f;
  font-weight: 800;
}
#messages .who {
  color: #ffe9a0;
}
#messages .who[data-name] {
  cursor: pointer;
}
#messages .who[data-name]:hover {
  text-decoration: underline;
}
#messages[data-show=private]:not(:has(> [data-ch=private]))::before {
  content: "Whispers to you and from you show here. Click a name in the chat to whisper them.";
  display: block;
  padding-top: 12px;
  color: #cdbf9f;
  font-style: italic;
}
.m-game {
  color: #fff6de;
}
.m-info,
.m-npc {
  color: #a8dcff;
}
.m-say {
  color: #fff6de;
}
.m-spell {
  color: #d6c9ff;
}
.m-combat {
  color: #ffa392;
}
.m-death,
.m-error {
  color: #ff7b68;
}
.m-exp {
  color: #d8cbb2;
  font-weight: 600;
}
.m-rareloot {
  color: #ffe498;
  font-weight: bold;
  border-left: 3px solid #e2b24e;
  padding-left: 6px;
}
.m-pioneer {
  color: #ffe498;
  font-weight: bold;
  border-left: 3px solid #f2b83a;
  padding-left: 6px;
}
.m-rarefind {
  color: #e2d4ff;
  font-weight: bold;
  border-left: 3px solid #a58cff;
  padding-left: 6px;
}
.m-mythicloot,
.m-mythicfind {
  color: #ffd9b8;
  font-weight: bold;
  border-left: 3px solid #ff9e7a;
  padding-left: 6px;
  text-shadow: 0 0 6px rgba(255, 158, 122, 0.55);
}
.rare-loot-label {
  color: #ffe498;
  font-weight: bold;
}
.rare-loot-label.mythic {
  color: #ffb08f;
}
.m-loot {
  color: #c9e67e;
}
.m-level {
  color: #ffd54a;
}
.m-pm {
  color: #ffbcd8;
}
.m-world {
  color: #bfe8ff;
}
#chatline {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin-top: 4px;
  padding: 0 8px;
  background: rgba(6, 18, 11, 0.5);
  border: 2px solid rgba(0, 0, 0, 0.4);
  border-radius: 6px;
  corner-shape: bevel;
  font: 700 13px var(--read);
}
#chatline .px-icon canvas {
  width: 14px;
  height: 14px;
}
#chat-quick {
  flex: none;
  margin-left: auto;
  padding: 2px 8px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--honey);
  color: var(--ink);
  font: 800 11px var(--read);
  cursor: pointer;
}
#chat-quick:hover {
  background: var(--honey-hi);
}
#chatline .prompt {
  color: #cdbf9f;
  white-space: nowrap;
}
#chat-input {
  flex: 1;
  min-width: 0;
  min-height: 0;
  text-overflow: ellipsis;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--honey-hi);
  font: 700 13px var(--read);
  text-shadow: none;
  caret-color: var(--honey);
}
#chat:focus-within #chatline {
  border-color: var(--honey-deep);
  background: rgba(6, 18, 11, 0.7);
}
#chat-address:focus-within {
  border-color: var(--honey-deep);
  background: rgba(6, 18, 11, 0.7);
}
#chat-address:focus-within ~ #chatline {
  border-color: rgba(0, 0, 0, 0.4);
  background: rgba(6, 18, 11, 0.5);
}
#emote-wheel {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 25;
  width: 0;
  height: 0;
  pointer-events: none;
  zoom: var(--ui);
}
#emote-wheel[hidden],
#emote-wheel .ew-needle[hidden] {
  display: none;
}
#emote-wheel .ew-disc {
  position: absolute;
  left: -120px;
  top: -120px;
  width: 240px;
  height: 240px;
  box-sizing: border-box;
  border-radius: 50%;
  pointer-events: auto;
  background:
    radial-gradient(
      circle,
      rgba(29, 52, 38, 0.78) 0 54px,
      rgba(29, 52, 38, 0.94) 56px);
  border: 3px solid var(--ink);
  box-shadow:
    inset 2px 2px 0 rgba(140, 204, 146, 0.22),
    inset -2px -2px 0 rgba(0, 0, 0, 0.25),
    var(--ledge);
}
#emote-wheel button {
  position: absolute;
  left: 0;
  top: 0;
  min-width: 64px;
  height: 32px;
  padding: 0 10px;
  pointer-events: auto;
  transform: translate(-50%, -50%) rotate(var(--a)) translateY(-86px) rotate(calc(-1 * var(--a)));
  background: var(--raised);
  border: 2px solid var(--ink);
  border-radius: 7px;
  corner-shape: bevel;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 0 rgba(160, 110, 40, 0.32);
  color: var(--ink);
  font: 800 13px var(--read);
  cursor: pointer;
}
#emote-wheel button:hover,
#emote-wheel button.on {
  background: linear-gradient(var(--honey-hi), #f0b93a);
  box-shadow: inset 0 -3px 0 rgba(150, 90, 10, 0.32), 0 0 0 2px var(--honey-hi);
}
#emote-wheel .ew-name {
  position: absolute;
  left: 0;
  top: -9px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  color: var(--honey-hi);
  font: 800 16px var(--read);
  text-shadow: 0 2px 0 var(--ink);
}
#emote-wheel .ew-how {
  position: absolute;
  left: 0;
  top: 7px;
  width: 100px;
  transform: translateX(-50%);
  color: #cdbf9f;
  font: 700 10px/1.25 var(--read);
  text-align: center;
}
#emote-wheel .ew-needle {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform: rotate(var(--a));
}
#emote-wheel .ew-needle::before {
  content: "";
  position: absolute;
  left: -7px;
  top: -60px;
  border: 7px solid transparent;
  border-top: 0;
  border-bottom: 11px solid var(--honey);
  filter: drop-shadow(0 1px 0 var(--ink));
}
#chat-emotes {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 5px 3px 4px;
  border: 1px solid var(--ink);
  border-radius: 5px;
  background: var(--raised);
  color: var(--ink);
  font: 800 12px var(--read);
  cursor: pointer;
}
#chat-emotes:hover {
  background: linear-gradient(#fffef7, #f8e6bd);
}
#chat-emotes .px-icon canvas {
  width: 14px;
  height: 14px;
}
#chat-emotes .em-label {
  display: none;
}
@media (min-width: 1071px) and (pointer: fine) {
  #chat-input:not(:focus)::placeholder {
    color: transparent;
  }
}
#chat-emotes kbd {
  min-width: 13px;
  height: 15px;
  margin: 0;
  padding: 0 2px;
  border: 0;
  background: #e9d7b3;
  color: #7b6038;
  font: 8px/15px var(--blocks);
  box-shadow: none;
}
#emote-key {
  display: none;
}
body.flying #chat-emotes,
body.flying #emote-key {
  display: none !important;
}
#bars {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  pointer-events: none;
}
#bars > * {
  pointer-events: auto;
}
#hotbar {
  display: grid;
  grid-template-columns: repeat(10, 46px);
  gap: 5px;
  padding: 7px;
}
#foodbar {
  display: flex;
  gap: 5px;
  padding: 7px;
}
#hotbar:empty,
#foodbar:empty {
  display: none;
}
#hotbar,
#foodbar {
  background: linear-gradient(#dbc698, #c4aa77);
  border-width: 2px;
  border-color: var(--ink);
  box-shadow:
    inset 0 0 0 1px #f6e5bd,
    inset 0 -3px 0 #a68a58,
    0 3px 0 rgba(43, 29, 14, .4);
}
.hslot {
  position: relative;
  background: var(--raised);
  border: 2px solid var(--ink);
  border-radius: 7px;
  corner-shape: bevel;
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7), inset 0 -3px 0 rgba(160, 110, 40, 0.32);
  cursor: pointer;
}
.hslot:hover {
  background: linear-gradient(#fffdf5, #f7e6bf);
  border-color: #e4be70;
}
.hslot.cooling::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: conic-gradient(rgba(28, 18, 6, .55) calc(var(--cd, 0) * 1turn), transparent 0);
  pointer-events: none;
}
#hotbar .hslot .wait,
#foodbar .hslot .wait {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  font: 800 12px/1 var(--read);
  letter-spacing: 0;
  color: #fff;
  text-shadow: var(--inked);
  pointer-events: none;
}
#hotbar .hslot .wait:empty,
#foodbar .hslot .wait:empty {
  display: none;
}
.hslot:active,
.hslot.pressed {
  transform: translateY(1px);
}
#touch-attack.pressed,
#touch-mount.pressed {
  background: linear-gradient(#ffe27a, #f6c531);
  box-shadow: inset 2px 2px 0 rgba(150, 90, 10, .3), 0 2px 0 rgba(43, 29, 14, .4);
  transform: translateY(2px);
}
.hslot .key {
  position: absolute;
  left: 1px;
  top: 1px;
  z-index: 1;
  min-width: 12px;
  padding: 1px 2px;
  border-radius: 3px;
  font: 8px/10px var(--blocks);
  background: #604521;
  color: #fff0c6;
  box-shadow: 0 1px 0 #392910;
}
.hslot .key.key-combo {
  max-width: calc(100% - 6px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 8px/10px var(--read);
}
.hslot .key:empty {
  display: none;
}
#hotbar .hslot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
}
#hotbar .hslot .spell-icon {
  flex: none;
  width: 36px;
  height: 36px;
}
#hotbar .hslot {
  background: var(--raised);
  border-color: #5e4525;
}
#hotbar .hslot .sp {
  display: none;
}
#hotbar .hslot:hover {
  background: linear-gradient(#fffef7, #f8e6bd);
  border-color: #9c6b24;
  box-shadow: inset 0 0 0 1px #e4bb69;
}
#hotbar .hslot.locked {
  background: linear-gradient(#ece2cc, #d9cbae);
  border-color: #9b8864;
  box-shadow: inset 0 1px 0 #f6edda;
}
#hotbar .hslot.locked .spell-icon {
  opacity: 0.5;
}
#hotbar .hslot .cost {
  display: none;
}
#hotbar .hslot.nomana .spell-icon {
  opacity: 0.45;
  filter: saturate(0.4);
}
#hotbar .hslot.norage .spell-icon {
  opacity: 0.45;
  filter: saturate(0.4);
}
#hotbar .hslot.norage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: rgba(170, 50, 30, .28);
  pointer-events: none;
}
#hotbar .hslot.norage .cost {
  display: block;
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 1;
  padding: 1px 2px;
  border-radius: 3px;
  font: 8px/10px var(--blocks);
  background: #8f2a1d;
  color: #ffe1d6;
  pointer-events: none;
}
.belt-divider {
  display: none;
}
#game:not([data-pvl-clean-ui=true]) #hotbar .hslot.group-start > .belt-divider {
  display: block;
  position: absolute;
  left: -6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  border-radius: 1px;
  background: rgba(94, 69, 37, .5);
  box-shadow: 1px 0 0 rgba(255, 246, 222, .55);
  pointer-events: none;
}
#game:not([data-pvl-clean-ui=true]) #hotbar[data-group-gap=column] .hslot.group-start {
  grid-column-start: var(--group-column);
}
#game:not([data-pvl-clean-ui=true]) #hotbar[data-group-gap=column] .hslot.group-start > .belt-divider {
  left: -10px;
}
#game:not([data-pvl-clean-ui=true]) #hotbar[data-group-gap=row] .hslot.group-start {
  grid-column-start: 1;
}
#game:not([data-pvl-clean-ui=true]) #hotbar[data-group-gap=row] :is(.hslot.group-start, .hslot.group-start ~ .hslot) {
  margin-top: 6px;
}
#game:not([data-pvl-clean-ui=true]) #hotbar[data-group-gap=row] .hslot.group-start > .belt-divider {
  left: 4px;
  top: -9px;
  bottom: auto;
  width: calc(var(--group-columns) * 51px - 17px);
  height: 2px;
  box-shadow: 0 1px 0 rgba(255, 246, 222, .55);
}
#spells .spell.calling-locked {
  opacity: 0.6;
}
#hud-flags .stance {
  background: #4f5d6b;
  color: #fff6de;
}
.hint .calling-why {
  color: #b5462f;
}
.bar.mana .rage-meter {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  min-height: 4px;
  background: rgba(40, 10, 8, .72);
  border-top: 1px solid rgba(20, 6, 4, .8);
  z-index: 1;
  pointer-events: none;
}
.bar.mana .rage-meter[hidden] {
  display: none;
}
.bar.mana .rage-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background:
    linear-gradient(
      #ffb36b,
      #e2512a 60%,
      #a3271a);
  transition: width .15s;
}
#mana-text .rage-num {
  font-weight: inherit;
  color: #ffb36b;
  margin-right: .35em;
}
#mana-text.tight .rage-num {
  display: none;
}
#mana-text.tight .rage-word {
  display: none;
}
#mana-text .rage-word {
  font-style: normal;
}
#hotbar .hslot.nomana::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 5px;
  background: rgba(40, 90, 170, .28);
  pointer-events: none;
}
#hotbar .hslot.nomana .cost {
  display: block;
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 1;
  padding: 1px 2px;
  border-radius: 3px;
  font: 8px/10px var(--blocks);
  background: #1d4f8f;
  color: #d9ecff;
  pointer-events: none;
}
#hotbar .hslot.locked .sp {
  color: #78684b;
}
#hotbar .hslot.locked::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: var(--px-lock) center / 14px 14px no-repeat;
  image-rendering: pixelated;
}
#foodbar .hslot {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
}
#foodbar .hslot canvas {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}
#foodbar .hslot .cnt {
  right: 2px;
  bottom: 2px;
  padding: 1px 3px;
  background: #604521;
  color: #fff1c9;
  border-radius: 3px;
  text-shadow: none;
  font-size: 11px;
}
#foodbar .hslot.kept::after {
  content: "";
  position: absolute;
  right: 3px;
  top: 3px;
  z-index: 1;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f6c531;
  box-shadow: 0 0 0 1.5px var(--ink);
  pointer-events: none;
}
#foodbar .hslot.none canvas {
  opacity: 0.35;
  filter: grayscale(1);
}
#foodbar .hslot.empty {
  background: #bea77c;
  border-color: #927649;
  box-shadow: inset 0 2px 0 #a48b60;
  cursor: default;
  transform: none;
}
#menu {
  max-width: calc(100vw / var(--ui) - 8px);
  max-height: calc(100vh / var(--ui) - 8px);
  overflow-y: auto;
  overscroll-behavior: contain;
  position: absolute;
  z-index: 20;
  min-width: 170px;
  padding: 5px;
  border-radius: 10px;
  font: 700 13px var(--read);
}
#menu .title {
  padding: 3px 8px 5px;
  border-bottom: 2px solid var(--line);
  color: var(--leaf-deep);
  font: 800 12px var(--read);
}
#menu .menu-note {
  max-width: 300px;
  white-space: pre-line;
  line-height: 1.35;
  font-weight: 600;
}
#menu .opt {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  white-space: normal;
  padding: 5px 9px;
  border-radius: 5px;
  corner-shape: bevel;
  color: var(--ink);
  cursor: pointer;
}
#menu .opt:first-child {
  font-weight: 800;
}
#menu .opt:hover,
#menu .opt:focus-visible {
  background: var(--evergreen);
  color: var(--paper);
  text-shadow: 0 1px 0 var(--ink);
}
#menu .opt .t {
  color: #a0580c;
}
#menu .opt:hover .t,
#menu .opt:focus-visible .t {
  color: var(--honey-hi);
}
#menu .opt:last-child {
  margin-top: 3px;
  border-top: 2px dashed var(--line);
  border-radius: 0 0 5px 5px;
}
#menu .opt .cancel {
  color: #9a8a70;
}
#menu .opt:hover .cancel,
#menu .opt:focus-visible .cancel {
  color: var(--paper);
}
#hint {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 30;
  max-width: 290px;
  padding: 6px 10px 7px;
  pointer-events: none;
  white-space: normal;
  background: #fffaee;
  border: 2px solid var(--ink);
  border-radius: 7px;
  corner-shape: bevel;
  box-shadow: 0 3px 0 rgba(43, 29, 14, 0.38);
  color: var(--ink);
  font: 700 13px/1.35 var(--read);
  text-shadow: none;
}
#hint:empty {
  display: none;
}
#hint .a {
  color: var(--ink);
}
#hint .t {
  color: #1f6b3a;
}
#hint .more {
  color: #8a6a40;
  font-weight: 600;
}
#hint .sign-text {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #d9c79c;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 12;
  max-height: 42vh;
  overflow: hidden;
}
#hint .sign-warning {
  color: #8d3028;
}
#hint .sign-read {
  margin-top: 5px;
  font-size: 11px;
}
#hint .ex {
  margin-top: 3px;
  font-weight: 600;
  color: #6a5030;
  line-height: 1.35;
}
#hint table.ex-stats {
  margin-top: 3px;
  border-collapse: collapse;
  line-height: 1.35;
}
#hint .ex-stats th {
  padding: 0 12px 0 0;
  text-align: left;
  font-weight: 600;
  color: #6a5030;
}
#hint .ex-stats td {
  padding: 0 0 0 10px;
  text-align: right;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#hint .ex-stats td.better {
  color: #226a39;
}
#hint .ex-stats td.worse {
  color: #9a342b;
}
@media (max-width: 1320px) {
  #bars {
    flex-direction: row;
    align-items: flex-end;
  }
  #hotbar {
    grid-template-columns: repeat(7, 46px);
  }
}
@media (min-width: 1321px) and (max-height: 800px) {
  #bars {
    flex-direction: row;
    align-items: flex-end;
  }
}
@media (max-width: 1070px) {
  #chat {
    width: 300px;
  }
  #messages {
    height: 100px;
  }
}
@media (min-width: 761px) and (max-width: 1070px) and (pointer: fine) {
  #chat-prompt,
  #chat-send {
    display: none;
  }
}
@media (max-width: 760px) {
  #tabs button {
    width: 46px;
    padding: 0;
    justify-content: center;
  }
  #tabs .dock-label,
  #tabs kbd {
    display: none;
  }
  #panel {
    right: 56px;
    max-width: calc(100vw - 80px);
  }
  #bars {
    flex-direction: column;
  }
  #chat {
    width: 260px;
  }
}
@media (max-height: 760px) {
  #tabs {
    --dock-gap: 5px;
    --dock-button: 36px;
  }
}
@media (max-height: 650px) {
  #side {
    top: 204px;
  }
  #tabs {
    --dock-gap: 3px;
    --dock-button: 32px;
  }
  #panel {
    max-height: calc(100vh - 300px);
  }
}
body.demo #mm-tools,
body.demo #bars {
  display: none !important;
}
.label {
  text-shadow: none;
  transition: opacity 0.25s;
}
.label .name {
  display: inline-block;
  font: 800 11px/1.3 var(--read);
  padding: 1px 8px;
  border-radius: 5px;
  corner-shape: bevel;
  background: rgba(35, 26, 14, 0.66);
  color: #fff6de;
}
.label .name.monster {
  color: #ffd76a;
}
.label .name.npc {
  color: #a8e4ff;
}
.label .name.pet {
  color: #ffd9a8;
}
.label .name.player,
.label .name.me {
  color: #fff6de;
}
.label .hpbar {
  width: 40px;
  height: 7px;
  margin: 2px auto 0;
  border: 2px solid #1a120a;
  border-radius: 4px;
  background: #5a1f1a;
  overflow: hidden;
}
.label .poolbar {
  width: 40px;
  height: 7px;
  margin: 1px auto 0;
  border: 2px solid #1a120a;
  border-radius: 3px;
  background: #241a10;
  overflow: hidden;
}
.label .poolbar div {
  height: 100%;
  transition: width .12s;
}
.label .poolbar.mana div {
  background: #3b93e8;
}
.label .poolbar.rage div {
  background: #f28a2e;
}
.label .poolbar.focus div {
  background: #6fbf4a;
}
.ctimers .ct-row {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 14px;
}
.ctimers .ct-row[hidden] {
  display: none;
}
.ctimers .ct-icon {
  flex: none;
  width: 12px;
  height: 12px;
  image-rendering: pixelated;
}
.ctimers .ct-track {
  flex: 1;
  min-width: 0;
  height: 7px;
  border: 1px solid #120c05;
  border-radius: 4px;
  background: #2a2016;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgb(215 180 106 / .3);
}
.ctimers .ct-fill {
  display: block;
  height: 100%;
  background: var(--ct-colour, #e9b949);
  transform-origin: left center;
  transform: scaleX(0);
}
.ctimers .ct-row.ready .ct-fill {
  filter: brightness(1.18);
}
.ct-dock {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 7;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 4px 7px;
  pointer-events: none;
  border: 2px solid #d7b46a;
  border-radius: 8px;
  background: rgb(26 18 10 / .74);
  box-shadow: 0 0 0 2px rgb(26 18 10 / .85), 0 3px 8px rgb(0 0 0 / .35);
}
.ct-dock[hidden] {
  display: none;
}
.ct-dock .ct-label,
.ct-dock .ct-time {
  font: 700 10px/1 var(--read);
  color: #fff3d6;
  text-shadow: 0 1px 0 #120c05;
  white-space: nowrap;
}
.ct-dock .ct-label {
  flex: 0 1 auto;
  max-width: 46%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ct-dock .ct-time {
  flex: none;
  min-width: 20px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ct-dock.narrow .ct-label {
  display: none;
}
.ct-dock.blend {
  padding: 0 2px;
  gap: 2px;
  border-color: transparent;
  background: none;
  box-shadow: none;
  opacity: .72;
}
.ct-dock.blend .ct-row {
  height: 10px;
  gap: 4px;
}
.ct-dock.blend .ct-icon {
  width: 9px;
  height: 9px;
}
.ct-dock.blend .ct-track {
  height: 3px;
  border: 0;
  background: rgb(18 12 6 / .55);
  box-shadow: none;
}
.ct-dock.blend .ct-label,
.ct-dock.blend .ct-time {
  font-size: 9px;
  text-shadow: 0 0 3px #120c05, 0 1px 0 #120c05;
}
.label .ct-head {
  width: 40px;
  margin: 2px auto 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.label .ct-head .ct-row {
  position: relative;
  height: 7px;
  gap: 0;
}
.label .ct-head .ct-icon {
  position: absolute;
  left: -12px;
  top: -2px;
  width: 10px;
  height: 10px;
  filter: drop-shadow(0 0 1px #120c05);
}
.label .ct-head .ct-track {
  height: 7px;
  box-sizing: border-box;
  border: 2px solid #1a120a;
  border-radius: 3px;
  background: #241a10;
  box-shadow: none;
}
.label .ct-head.blend {
  opacity: .7;
  gap: 2px;
}
.label .ct-head.blend .ct-row {
  height: 4px;
}
.label .ct-head.blend .ct-icon {
  width: 8px;
  height: 8px;
  top: -2px;
  left: -10px;
}
.label .ct-head.blend .ct-track {
  height: 4px;
  border-width: 1px;
  background: rgb(18 12 6 / .6);
}
.label .say {
  font: 700 13px/1.35 var(--read);
  color: #2b1d0e;
  background: #fffaf0;
  border: 2px solid var(--ink);
  border-radius: 7px;
  corner-shape: bevel;
  padding: 3px 9px;
  margin-bottom: 5px;
  text-shadow: none;
  box-shadow: 0 3px 0 rgba(43, 29, 14, 0.3);
}
.label .say.spell {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.splat {
  width: auto;
  height: auto;
  background: none;
  border: 0;
  border-radius: 0;
  line-height: 0;
}
.levelup-banner {
  position: absolute;
  left: 50%;
  top: 20%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 12;
  line-height: 0;
  filter: drop-shadow(0 4px 0 rgba(43, 29, 14, 0.35)) drop-shadow(0 0 18px rgba(255, 214, 90, 0.8));
  animation: banner-in 2.4s ease both;
}
.levelup-banner svg.blocktext {
  height: 46px;
  display: block;
}
@keyframes banner-in {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(18px) scale(0.4);
  }
  14% {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px) scale(1.12);
  }
  24% {
    transform: translateX(-50%) translateY(0) scale(1);
  }
  78% {
    opacity: 1;
    transform: translateX(-50%) translateY(-4px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(-22px) scale(0.96);
  }
}
@media (prefers-reduced-motion: reduce) {
  .levelup-banner {
    animation-duration: 0.01s;
  }
}
.bag-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
#bag-sort {
  min-height: 36px;
  padding: 4px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--raised);
  color: var(--ink);
  cursor: pointer;
}
#bag-sort:disabled {
  opacity: .6;
  cursor: wait;
}
#bag-sort-status {
  font: 11px/1.3 var(--read);
  color: #e9cf9c;
}
.sorting-bag #inventory,
.sorting-bag #foodbar,
.sorting-bag #equipment {
  pointer-events: none;
  opacity: .65;
}
#skill-goals {
  margin-bottom: 8px;
}
#skill-goals > summary {
  padding: 10px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fffaf0;
  color: var(--leaf-deep);
  font: 800 13px var(--read);
  cursor: pointer;
}
#skill-goals[open] > summary {
  margin-bottom: 6px;
}
#connection-dialog {
  max-width: min(420px, calc(100vw - 48px));
  border: 2px solid #bca56b;
  border-radius: 12px;
  padding: 24px;
  background: #172c30;
  color: #fff3d8;
  z-index: 100000;
}
#connection-dialog::backdrop {
  background: #08131be0;
}
#connection-dialog p {
  line-height: 1.5;
}
#connection-dialog .update-scene {
  margin: 0 0 16px;
  overflow: hidden;
  border: 2px solid #b58647;
  border-radius: 10px;
  corner-shape: bevel;
  background:
    linear-gradient(
      #a9d8ee,
      #d9f0f6 58%,
      #f3ecd0);
  box-shadow: inset 0 2px 4px #80501e22;
}
#connection-dialog .update-scene[hidden] {
  display: none;
}
#connection-dialog .update-scene canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
}
#connection-dialog .update-scene figcaption {
  padding: 5px 10px 6px;
  background: #fff4d2;
  color: #5a3d1a;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border-top: 2px solid #b58647;
}
.mod-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 2px 4px;
  border-radius: 3px;
  background: #285f65;
  color: #cbfff2;
  font: bold 9px sans-serif;
  vertical-align: middle;
}
#moderation-dialog,
#banned-dialog {
  max-width: min(430px, calc(100vw - 48px));
  background: #172c30;
  color: #fff3d8;
  padding: 22px;
  border: 2px solid #bca56b;
  border-radius: 12px;
}
#moderation-dialog label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
#moderation-dialog input,
#moderation-dialog select,
#moderation-dialog textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 40px;
}
#moderation-dialog {
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  box-sizing: border-box;
}
#moderation-dialog .temporary-password-fields {
  min-width: 0;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #bca56b;
  border-radius: 6px;
}
#moderation-dialog .temporary-password-fields[hidden] {
  display: none;
}
#moderation-dialog .ip-ban-fields {
  min-width: 0;
  margin: 12px 0;
  padding: 12px;
  border: 1px solid #bca56b;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
#moderation-dialog .ip-ban-fields[hidden],
#moderation-dialog .ip-ban-fields [hidden] {
  display: none;
}
#moderation-dialog .ip-ban-fields input[type=checkbox] {
  width: 20px;
  height: 20px;
  min-height: 0;
}
#moderation-dialog .temporary-password-fields input[type=checkbox] {
  width: 20px;
  height: 20px;
  min-height: 0;
}
#moderation-dialog::backdrop,
#banned-dialog::backdrop {
  background: #08131ba8;
}
#moderation-dialog .moderation-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  opacity: .9;
}
#banned-dialog {
  width: 560px;
  max-width: min(560px, calc(100vw - 24px));
  box-sizing: border-box;
}
#banned-dialog h2 {
  margin: 0 0 6px;
}
#banned-dialog p {
  margin: 6px 0;
}
#banned-dialog .bp-about {
  font-size: 12px;
  opacity: .85;
}
#banned-dialog .bp-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  max-height: min(58vh, 480px);
  overflow: auto;
}
#banned-dialog .bp-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  margin: 0 0 6px;
  background: #0f2124;
  border: 1px solid #3d5a5c;
  border-radius: 8px;
}
#banned-dialog .bp-text {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
#banned-dialog .bp-count,
#banned-dialog .bp-when,
#banned-dialog .bp-where {
  font-size: 12px;
  color: #e9cf8d;
}
#banned-dialog .bp-reason {
  font-size: 13px;
}
#banned-dialog .bp-teleport {
  flex: none;
  min-height: 40px;
}
#banned-dialog [hidden] {
  display: none;
}
#moderation-dialog.reports-view {
  max-width: min(760px, calc(100vw - 24px));
  width: 760px;
}
#moderation-dialog .moderation-tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 12px;
}
#moderation-dialog .moderation-tabs[hidden] {
  display: none;
}
#moderation-dialog .moderation-tabs button {
  flex: 1;
  min-height: 40px;
}
#moderation-dialog .moderation-tabs button[aria-selected=true] {
  background: #bca56b;
  color: #172c30;
  font-weight: 700;
}
#moderation-dialog .staff-family[hidden] {
  display: none;
}
#moderation-dialog .account-flags[hidden] {
  display: none;
}
#moderation-dialog .af-reviewed {
  opacity: .7;
}
#moderation-dialog .sf-filters,
#moderation-dialog .sf-pager,
#moderation-dialog .sf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
#moderation-dialog .sf-list {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
#moderation-dialog .sf-row {
  border: 1px solid rgba(188, 165, 107, .55);
  border-radius: 6px;
  padding: 8px 10px;
}
#moderation-dialog .sf-row p {
  margin: 0 0 4px;
}
#moderation-dialog .sf-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
#moderation-dialog .sf-names {
  overflow-wrap: anywhere;
}
#moderation-dialog .sf-meta {
  font-size: .9em;
  opacity: .8;
  overflow-wrap: anywhere;
}
#moderation-dialog .sf-pending .sf-state {
  font-weight: 700;
}
#moderation-dialog .sf-actions input {
  flex: 1 1 220px;
  min-width: 0;
}
#moderation-dialog .staff-reports p {
  margin: 6px 0;
}
#moderation-dialog .sr-private {
  font-size: 12px;
  opacity: .85;
}
#moderation-dialog .sr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: end;
}
#moderation-dialog .sr-filters[hidden],
#moderation-dialog .sr-pager[hidden],
#moderation-dialog .sr-list[hidden],
#moderation-dialog .sr-detail[hidden],
#moderation-dialog .staff-reports [hidden] {
  display: none;
}
#moderation-dialog .sr-filters label {
  margin: 0;
}
#moderation-dialog .sr-radio {
  display: flex !important;
  align-items: center;
  gap: 6px;
}
#moderation-dialog .sr-radio input {
  width: auto;
  min-height: 0;
}
#moderation-dialog .sr-subject {
  flex: 1 1 160px;
}
#moderation-dialog .sr-list,
#moderation-dialog .sr-chat {
  list-style: none;
  margin: 8px 0;
  padding: 0;
  max-height: min(52vh, 460px);
  overflow: auto;
}
#moderation-dialog .sr-open {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  margin: 0 0 6px;
  background: #0f2124;
  color: inherit;
  border: 1px solid #3d5a5c;
  border-radius: 8px;
  cursor: pointer;
}
#moderation-dialog .sr-handled .sr-open {
  opacity: .7;
}
#moderation-dialog .sr-open .sr-when {
  grid-row: span 2;
  font-size: 12px;
  opacity: .8;
}
#moderation-dialog .sr-open .sr-excerpt,
#moderation-dialog .sr-open .sr-row-state {
  grid-column: 2;
  overflow-wrap: anywhere;
}
#moderation-dialog .sr-row-state,
#moderation-dialog .sr-reason {
  font-size: 12px;
  color: #e9cf8d;
}
#moderation-dialog .sr-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
}
#moderation-dialog .sr-details {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #0f2124;
  padding: 8px 10px;
  border-radius: 8px;
}
#moderation-dialog .sr-line {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 4px 0;
  border-bottom: 1px solid #2a4345;
  overflow-wrap: anywhere;
}
#moderation-dialog .sr-line .sr-when,
#moderation-dialog .sr-line .sr-channel {
  font-size: 12px;
  opacity: .8;
}
#moderation-dialog .sr-detail h3 {
  margin: 10px 0 4px;
}
#moderation-dialog .sr-detail h4 {
  margin: 12px 0 4px;
}
#moderation-dialog .sr-close {
  text-align: right;
}
#moderation-dialog .sr-outcome {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
#moderation-dialog .sr-outcome select {
  width: auto;
  flex: 1 1 180px;
}
#moderation-dialog .sr-outcome[hidden],
#moderation-dialog [data-act=act][hidden] {
  display: none !important;
}
#moderation-dialog [data-act=act] {
  display: block;
  margin: 8px 0;
  min-height: 40px;
}
#moderation-dialog.player-view {
  max-width: min(680px, calc(100vw - 24px));
  width: 680px;
  box-sizing: border-box;
}
#moderation-dialog .staff-player[hidden],
#moderation-dialog .staff-player [hidden] {
  display: none !important;
}
#moderation-dialog .staff-player {
  margin: 0 0 6px;
}
#moderation-dialog .sp-status {
  margin: 0;
  font-size: 13px;
  opacity: .85;
}
#moderation-dialog .sp-card {
  background: #0f2124;
  border: 1px solid #3d5a5c;
  border-radius: 10px;
  padding: 10px 12px;
  max-height: min(46vh, 420px);
  overflow: auto;
  overflow-wrap: anywhere;
}
#moderation-dialog .sp-card p {
  margin: 4px 0;
}
#moderation-dialog .sp-card h4 {
  margin: 10px 0 4px;
  font-size: 13px;
  color: #e9cf8d;
}
#moderation-dialog .sp-name {
  font-size: 17px;
}
#moderation-dialog .sp-former,
#moderation-dialog .sp-who,
#moderation-dialog .sp-filed,
#moderation-dialog .sp-private,
#moderation-dialog .sp-will {
  font-size: 12px;
  opacity: .9;
}
#moderation-dialog .sp-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
#moderation-dialog .sp-chips:empty {
  display: none;
}
#moderation-dialog .sp-chip {
  padding: 2px 8px;
  border-radius: 6px;
  background: #5b2f2a;
  color: #ffe1d6;
  font-size: 12px;
}
#moderation-dialog .sp-numbers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 6px;
  margin: 8px 0;
}
#moderation-dialog .sp-number {
  display: grid;
  gap: 2px;
  padding: 6px 8px;
  background: #172c30;
  border-radius: 8px;
}
#moderation-dialog .sp-number span {
  font-size: 11px;
  opacity: .85;
}
#moderation-dialog .sp-number strong {
  font-size: 17px;
}
#moderation-dialog .sp-history,
#moderation-dialog .sp-reports,
#moderation-dialog .sp-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
}
#moderation-dialog .sp-record,
#moderation-dialog .sp-report,
#moderation-dialog .sp-ledger li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  padding: 4px 0;
  border-bottom: 1px solid #2a4345;
  font-size: 13px;
}
#moderation-dialog .sp-sanction strong {
  color: #ffc9a8;
}
#moderation-dialog .sp-unconfirmed {
  opacity: .75;
  font-style: italic;
}
#moderation-dialog .sp-when,
#moderation-dialog .sp-by,
#moderation-dialog .sp-extra {
  font-size: 12px;
  opacity: .8;
}
#moderation-dialog .sp-reason {
  flex-basis: 100%;
  font-size: 12px;
  color: #e9cf8d;
}
#moderation-dialog .sp-report .sp-reason {
  flex-basis: auto;
}
#moderation-dialog .sp-handled {
  opacity: .7;
}
#moderation-dialog .sp-more summary {
  cursor: pointer;
  font-size: 12px;
  color: #e9cf8d;
  padding: 4px 0;
}
#moderation-dialog label.sp-close {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 0 auto;
  font-size: 12px;
}
#moderation-dialog label.sp-close input {
  width: auto;
  min-height: 0;
}
#moderation-dialog .sp-open {
  color: #cbfff2;
  font-size: 12px;
}
#moderation-dialog .sp-will {
  color: #cbfff2;
}
#moderation-dialog .sp-sub {
  margin: 8px 0 2px;
  font-size: 12px;
  color: #e9cf8d;
}
#moderation-dialog .sp-skills,
#moderation-dialog .sp-week {
  font-size: 12px;
  opacity: .9;
}
#moderation-dialog .sp-out {
  color: #ffc9a8;
}
#moderation-dialog .sp-risk-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
#moderation-dialog .sp-risk-level:empty {
  display: none;
}
#moderation-dialog .sp-chip.sp-risk-review {
  background: #5a4a1e;
  color: #ffeebf;
}
#moderation-dialog .sp-chip.sp-risk-low {
  background: #1f4a35;
  color: #d6ffe8;
}
#moderation-dialog .sp-risk-score,
#moderation-dialog .sp-deaths {
  font-size: 12px;
  opacity: .9;
}
#moderation-dialog .sp-tl-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 2px 0 6px;
}
#moderation-dialog label.sp-period-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12px;
}
#moderation-dialog label.sp-period-label select {
  width: auto;
  min-height: 0;
}
#moderation-dialog .sp-tl-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
#moderation-dialog label.sp-tl-kind {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 12px;
}
#moderation-dialog label.sp-tl-kind input {
  width: auto;
  min-height: 0;
}
#moderation-dialog .sp-chip.sp-tl-type {
  background: #172c30;
  color: #cbe7e2;
  font-size: 11px;
  padding: 0 6px;
}
#moderation-dialog .sp-tl-more {
  font-size: 12px;
  opacity: .85;
}
#update-notice {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 32px);
  box-sizing: border-box;
  padding: 10px 16px;
  border: 2px solid #bca56b;
  border-radius: 10px;
  background: #172c30ed;
  color: #fff3d8;
  text-align: center;
  z-index: 9000;
  pointer-events: none;
  font-size: 13px;
}
@media (max-width: 700px) {
  #update-notice {
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom));
    width: max-content;
  }
}
#equipment-detail {
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  box-sizing: border-box;
  background: #fff6de;
  color: #283e35;
  border: 3px solid #394c40;
  border-radius: 12px;
  padding: 18px;
  font: 14px/1.5 system-ui;
}
#equipment-detail::backdrop {
  background: #12272099;
}
#equipment-detail h2 {
  margin: 0 0 14px;
  font-size: 21px;
}
#equipment-detail .own-words {
  margin: -6px 0 12px;
  font-style: italic;
  color: #4d5f4f;
}
#equipment-detail table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
#equipment-detail th,
#equipment-detail td {
  padding: 6px 3px;
  text-align: left;
  border-bottom: 1px solid #bfc6aa;
}
#equipment-detail td {
  text-align: right;
}
#equipment-detail .better {
  color: #226a39;
}
#equipment-detail .worse {
  color: #9a342b;
}
#equipment-detail button {
  min-height: 44px;
  min-width: 80px;
}
#recover-backpack {
  min-height: 32px;
  max-width: 100%;
  font: 700 12px var(--read);
  background: #ffe27a;
  color: var(--ink);
  border: 2px solid var(--ink);
  cursor: pointer;
}
.backpack-marker {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  cursor: pointer;
  min-height: 36px;
  white-space: nowrap;
  background: #2b1d0eee;
  color: #ffe27a;
  border: 2px solid #ffe27a;
  border-radius: 6px;
  padding: 5px 8px;
  font: 700 13px var(--read);
  z-index: 4;
}
#recovery-detail {
  box-sizing: border-box;
  width: min(430px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  background: var(--parchment);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  padding: 18px;
  font: 14px/1.5 var(--read);
}
#recovery-detail::backdrop {
  background: #12272088;
}
#recovery-detail button {
  min-width: 80px;
  min-height: 44px;
}
#make .build-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px 0;
}
#make .build-tiles button {
  min-height: 64px;
  padding: 8px 5px;
  background: #e8ebcb;
  border: 2px solid #9baf79;
  box-shadow: none;
}
#make .build-tiles strong,
#make .build-tiles span {
  display: block;
}
#make .build-tiles span {
  font-size: 10px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
#make .build-tiles .unavailable {
  background: #eadfca;
  color: #7b654a;
  border-color: #c4b393;
}
#make .build-tiles [aria-pressed=true] {
  outline: 3px solid #b67c15;
  outline-offset: -3px;
  background: #ffe4a0;
  color: var(--ink);
}
#make .build-tile-note {
  min-height: 40px;
  font-size: 12px;
}
#make .build-tile-use {
  min-height: 44px;
  width: 100%;
}
#make .build-tile-use:disabled {
  opacity: .5;
  cursor: default;
}
#make .build-nearby {
  margin: 0 0 8px;
  min-height: 32px;
}
@media (min-width: 1200px) {
  #make[data-kind=build-target] {
    left: auto;
    right: 128px;
    transform: translateY(-50%);
  }
}
#make .build-tiles.furniture-tiles {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#make .level-tiles {
  --level-side:19;
  display: grid;
  grid-template-columns: repeat(var(--level-side), minmax(0, 1fr));
  gap: 1px;
  margin: 6px auto;
  width: 100%;
  max-width: calc(var(--level-side) * 15px);
}
#make .level-height {
  display: flex;
  gap: 6px;
  margin: 4px 0 2px;
}
#make .level-height button {
  flex: 1;
  min-height: 34px;
  font-size: 12px;
  opacity: .7;
}
#make .level-height button[aria-checked=true] {
  opacity: 1;
  outline: 2px solid #b67c15;
  outline-offset: -2px;
}
#make .level-tiles button {
  aspect-ratio: 1;
  min-height: 0;
  min-width: 0;
  padding: 0;
  border: 1px solid rgba(58, 53, 64, .28);
  border-radius: 2px;
  box-shadow: none;
  background: #d8dcc0;
}
#make .level-tiles .water {
  background: #7fb6e0;
}
#make .level-tiles .unavailable {
  background-image:
    linear-gradient(
      45deg,
      transparent 44%,
      rgba(58, 53, 64, .55) 45% 55%,
      transparent 56%);
  opacity: .7;
}
#make .level-tiles .in-area {
  outline: 2px solid #b67c15;
  outline-offset: -2px;
}
#make .level-tiles .first {
  outline: 3px solid #f6c531;
  outline-offset: -3px;
  box-shadow: 0 0 0 1px #3a3540;
}
#make .level-tiles [aria-pressed=true] {
  outline: 3px solid #3a3540;
  outline-offset: -3px;
}
#make .level-area-note {
  min-height: 34px;
  font-size: 12px;
}
#make .level-area-use {
  min-height: 44px;
  width: 100%;
}
#make .level-area-use:disabled {
  opacity: .5;
  cursor: default;
}
@media (min-width: 1200px) {
  #make[data-kind=level-area] {
    left: auto;
    right: 128px;
    transform: translateY(-50%);
  }
}
#make .furniture-tiles button {
  min-height: 56px;
  padding: 6px 2px;
}
#make .furniture-tiles span {
  font-size: 9px;
}
#plot-access {
  box-sizing: border-box;
  width: min(510px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--parchment);
  color: var(--ink);
  font: 700 14px/1.55 var(--read);
}
#plot-access #plot-size {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#plot-access #plot-size[hidden],
#plot-access #plot-size-note[hidden] {
  display: none;
}
#plot-access #plot-side {
  min-width: 84px;
  text-align: center;
  font-size: 17px;
}
#plot-access #plot-smaller,
#plot-access #plot-larger {
  width: 42px;
  font-size: 20px;
  line-height: 1;
}
#plot-access #plot-resize {
  margin-left: auto;
}
#plot-access #plot-stake {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-width: 300px;
}
#plot-access #plot-stake button {
  border: 2px solid #92784f;
  border-radius: 7px;
  background: #fff9e7;
  color: var(--ink);
}
#plot-access #plot-stake button[aria-pressed=true] {
  background: var(--honey);
  border-color: var(--ink);
}
#plot-access #plot-release-part[hidden],
#plot-access #plot-stake-part[hidden],
#plot-access #plot-release-sure[hidden],
#plot-access #plot-release[hidden] {
  display: none;
}
#plot-access #plot-release,
#plot-access #plot-release-yes {
  border: 2px solid #872e25;
  border-radius: 7px;
  background: #fff1e8;
  color: #872e25;
}
#plot-access #plot-release-sure {
  padding: 10px 12px;
  border-left: 3px solid #872e25;
  background: #f3e2cf;
}
#plot-access #plot-release-sure p {
  margin: 0 0 8px;
}
#plot-access #plot-release-no {
  margin-left: 8px;
  border: 2px solid #92784f;
  border-radius: 7px;
  background: #fff9e7;
  color: var(--ink);
}
#plot-access::backdrop {
  background: rgb(19 36 28 / 55%);
}
#plot-access * {
  box-sizing: border-box;
}
#plot-access header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--evergreen);
  color: var(--paper);
}
#plot-access h2 {
  margin: 0;
  font-size: 23px;
}
#plot-access .plot-body {
  padding: 16px 20px;
}
#plot-access label {
  display: block;
  margin: 12px 0 5px;
}
#plot-access input,
#plot-access select {
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 2px solid #92784f;
  background: #fff9e7;
  border-radius: 6px;
  font: inherit;
}
#plot-access ul {
  list-style: none;
  padding: 0;
}
#plot-access li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #cbb58b;
}
#plot-access li span {
  overflow-wrap: anywhere;
}
#plot-access button {
  min-height: 42px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
}
#plot-access form > button {
  width: 100%;
  background: var(--evergreen);
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 7px;
}
#plot-access button:disabled {
  opacity: .6;
  cursor: wait;
}
#plot-access .plot-warning {
  font-size: 12px;
  color: #665337;
}
#plot-access-note {
  min-height: 24px;
  color: #365b39;
}
#plot-close {
  background: transparent;
  color: inherit;
  border: 0;
  font-size: 25px !important;
}
#plot-access :focus-visible {
  outline: 3px solid #758a4b;
  outline-offset: 3px;
}
#plot-market {
  box-sizing: border-box;
  width: min(600px, calc(100vw - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--parchment);
  color: var(--ink);
  font: 600 14px/1.55 var(--read);
}
#plot-market.property-view {
  width: min(420px, calc(100vw - 24px));
}
#plot-market.property-view::backdrop {
  background: rgb(19 36 28 / 25%);
}
#plot-market .market-wallet[hidden] {
  display: none;
}
#plot-market .market-size {
  font-size: 20px;
  color: var(--evergreen);
  margin: 4px 0;
}
#plot-market.property-view h3 {
  margin-top: 0;
}
#plot-market.property-view .market-status {
  margin: 6px 0;
}
#plot-market::backdrop {
  background: rgb(19 36 28 / 60%);
}
#plot-market * {
  box-sizing: border-box;
}
#plot-market header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  background: var(--evergreen);
  color: var(--paper);
  position: sticky;
  top: 0;
  z-index: 1;
}
#plot-market h2 {
  margin: 0;
  font-size: 24px;
}
#plot-market h3 {
  margin: 18px 0 8px;
}
#plot-market h4 {
  margin: 0;
  font-size: 16px;
}
#plot-market .market-body {
  padding: 16px 20px;
  overflow-wrap: anywhere;
}
#plot-market .market-intro {
  margin-top: 0;
}
#plot-market button {
  min-height: 42px;
  padding: 8px 12px;
  cursor: pointer;
  font: inherit;
  border: 2px solid #92784f;
  border-radius: 7px;
  background: #fff9e7;
  color: var(--ink);
  margin: 4px 6px 4px 0;
  max-width: 100%;
}
#plot-market .market-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  background: #e8ddbd;
  border-radius: 8px;
  padding: 8px 12px;
}
#market-balance {
  flex-basis: 100%;
}
#plot-market .market-primary {
  background: var(--evergreen);
  color: var(--paper);
  border-color: var(--ink);
}
#plot-market .market-rule {
  padding: 10px 12px;
  background: #eadfc5;
  border-left: 3px solid #92784f;
  font-size: 13px;
}
#plot-market .market-price {
  font-size: 20px;
  color: var(--evergreen);
  padding: 10px 0;
}
#plot-market .market-offer {
  padding: 14px 0;
  border-top: 1px solid #c6b58a;
}
#plot-market .market-offer p {
  margin: 5px 0;
}
#plot-market .market-status {
  font-size: 12px;
  color: #635538;
}
#market-note {
  color: #365b39;
}
#plot-market .market-error {
  color: #872e25;
}
#plot-market input {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 2px solid #92784f;
  border-radius: 6px;
  background: #fff9e7;
  font: inherit;
}
#plot-market details {
  margin: 12px 0;
}
#plot-market summary {
  cursor: pointer;
  text-decoration: underline;
}
#plot-market details ul {
  max-height: 220px;
  overflow: auto;
}
#plot-market button:disabled {
  opacity: .55;
  cursor: default;
}
#plot-market #market-close {
  background: transparent;
  color: inherit;
  border: 0;
  font-size: 25px;
  margin: 0;
}
#plot-market :focus-visible {
  outline: 3px solid #758a4b;
  outline-offset: 3px;
}
.plot-attention {
  display: inline-block;
  min-width: 17px;
  padding: 1px 4px;
  margin-left: 4px;
  border: 1px solid #503d17;
  border-radius: 8px;
  background: #f3cd6b;
  color: #34260f;
  font: 800 10px/14px var(--read);
  text-align: center;
  vertical-align: middle;
}
.plot-attention[hidden] {
  display: none !important;
}
[data-tab=friends] {
  position: relative;
}
[data-tab=friends] > .plot-attention {
  position: absolute;
  right: 2px;
  top: 0;
  margin: 0;
  pointer-events: none;
}
#plot-market .market-unread {
  display: inline-block;
  border-radius: 5px;
  padding: 2px 7px;
  background: #efd07e;
  color: #44320c;
  font-size: 12px;
  margin-bottom: 6px;
}
.label .name .player-combat {
  display: inline-block;
  margin-left: 2px;
  padding: 1px 4px;
  border-radius: 3px;
  corner-shape: bevel;
  background: #e6d7aa;
  color: #3a341f;
  font: 800 9px/13px var(--read);
  vertical-align: middle;
  text-shadow: none;
}
.label .name .pioneer-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 4px;
  border-radius: 3px;
  corner-shape: bevel;
  background:
    linear-gradient(
      180deg,
      #ffe98f,
      #f2b83a);
  color: #4a2f08;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65), 0 0 0 1px #9c6b16;
  font: 800 9px/13px var(--read);
  vertical-align: middle;
  text-shadow: none;
}
.oath-ring {
  display: inline-block;
  width: 1.2em;
  height: 1.2em;
  vertical-align: -.25em;
  background: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNCAxNCIgd2lkdGg9IjE0IiBoZWlnaHQ9IjE0IiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiPjxyZWN0IHg9IjQiIHk9IjAiIHdpZHRoPSI2IiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSIyIiB5PSIxIiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iNCIgeT0iMSIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iI2U5ZWRmMyIvPjxyZWN0IHg9IjgiIHk9IjEiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNhZWI1YzIiLz48cmVjdCB4PSIxMCIgeT0iMSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjEiIHk9IjIiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSIyIiB5PSIyIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBmaWxsPSIjZTllZGYzIi8+PHJlY3QgeD0iNSIgeT0iMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iIzQ3NGI1NiIvPjxyZWN0IHg9IjkiIHk9IjIiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNhZWI1YzIiLz48cmVjdCB4PSIxMCIgeT0iMiIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzc2N2Q4YiIvPjxyZWN0IHg9IjEyIiB5PSIyIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMSIgeT0iMyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjIiIHk9IjMiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOWVkZjMiLz48cmVjdCB4PSI0IiB5PSIzIiB3aWR0aD0iNCIgaGVpZ2h0PSIxIiBmaWxsPSIjNDc0YjU2Ii8+PHJlY3QgeD0iOCIgeT0iMyIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iIzc2N2Q4YiIvPjxyZWN0IHg9IjEyIiB5PSIzIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMCIgeT0iNCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjEiIHk9IjQiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOWVkZjMiLz48cmVjdCB4PSIzIiB5PSI0IiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjNDc0YjU2Ii8+PHJlY3QgeD0iNSIgeT0iNCIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjkiIHk9IjQiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiIGZpbGw9IiM3NjdkOGIiLz48cmVjdCB4PSIxMiIgeT0iNCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQ3NGI1NiIvPjxyZWN0IHg9IjEzIiB5PSI0IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMCIgeT0iNSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjEiIHk9IjUiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOWVkZjMiLz48cmVjdCB4PSIyIiB5PSI1IiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjNDc0YjU2Ii8+PHJlY3QgeD0iNCIgeT0iNSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjkiIHk9IjUiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSIxMCIgeT0iNSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iI2FlYjVjMiIvPjxyZWN0IHg9IjEyIiB5PSI1IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDc0YjU2Ii8+PHJlY3QgeD0iMTMiIHk9IjUiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSIwIiB5PSI2IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMSIgeT0iNiIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2U5ZWRmMyIvPjxyZWN0IHg9IjIiIHk9IjYiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiM0NzRiNTYiLz48cmVjdCB4PSI0IiB5PSI2IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iOSIgeT0iNiIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjEwIiB5PSI2IiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjYWViNWMyIi8+PHJlY3QgeD0iMTIiIHk9IjYiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0NzRiNTYiLz48cmVjdCB4PSIxMyIgeT0iNiIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjAiIHk9IjciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSIxIiB5PSI3IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZTllZGYzIi8+PHJlY3QgeD0iMiIgeT0iNyIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzQ3NGI1NiIvPjxyZWN0IHg9IjQiIHk9IjciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSI5IiB5PSI3IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMTAiIHk9IjciIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOWVkZjMiLz48cmVjdCB4PSIxMiIgeT0iNyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQ3NGI1NiIvPjxyZWN0IHg9IjEzIiB5PSI3IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMCIgeT0iOCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjEiIHk9IjgiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNhZWI1YzIiLz48cmVjdCB4PSIyIiB5PSI4IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDc0YjU2Ii8+PHJlY3QgeD0iMyIgeT0iOCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzc2N2Q4YiIvPjxyZWN0IHg9IjQiIHk9IjgiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSI5IiB5PSI4IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMTAiIHk9IjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOWVkZjMiLz48cmVjdCB4PSIxMiIgeT0iOCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQ3NGI1NiIvPjxyZWN0IHg9IjEzIiB5PSI4IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMCIgeT0iOSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjEiIHk9IjkiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNhZWI1YzIiLz48cmVjdCB4PSIzIiB5PSI5IiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjNzY3ZDhiIi8+PHJlY3QgeD0iNSIgeT0iOSIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOWVkZjMiLz48cmVjdCB4PSIxMSIgeT0iOSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzQ3NGI1NiIvPjxyZWN0IHg9IjEzIiB5PSI5IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMSIgeT0iMTAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSIyIiB5PSIxMCIgd2lkdGg9IjMiIGhlaWdodD0iMSIgZmlsbD0iIzc2N2Q4YiIvPjxyZWN0IHg9IjUiIHk9IjEwIiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjYWViNWMyIi8+PHJlY3QgeD0iNyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiIGZpbGw9IiNlOWVkZjMiLz48cmVjdCB4PSIxMCIgeT0iMTAiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiM0NzRiNTYiLz48cmVjdCB4PSIxMiIgeT0iMTAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSIxIiB5PSIxMSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjIiIHk9IjExIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBmaWxsPSIjNzY3ZDhiIi8+PHJlY3QgeD0iNSIgeT0iMTEiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNhZWI1YzIiLz48cmVjdCB4PSI3IiB5PSIxMSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iI2U5ZWRmMyIvPjxyZWN0IHg9IjkiIHk9IjExIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBmaWxsPSIjNDc0YjU2Ii8+PHJlY3QgeD0iMTIiIHk9IjExIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PHJlY3QgeD0iMiIgeT0iMTIiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiMxZDFjMjIiLz48cmVjdCB4PSI0IiB5PSIxMiIgd2lkdGg9IjYiIGhlaWdodD0iMSIgZmlsbD0iIzQ3NGI1NiIvPjxyZWN0IHg9IjEwIiB5PSIxMiIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzFkMWMyMiIvPjxyZWN0IHg9IjQiIHk9IjEzIiB3aWR0aD0iNiIgaGVpZ2h0PSIxIiBmaWxsPSIjMWQxYzIyIi8+PC9zdmc+Cg==) center/contain no-repeat;
  image-rendering: pixelated;
}
.label .name .oath-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 4px 1px 2px;
  border-radius: 3px;
  corner-shape: bevel;
  background:
    linear-gradient(
      180deg,
      #f4f6f9,
      #b9c0cc);
  color: #23262d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px #4b505b;
  font: 800 9px/13px var(--read);
  vertical-align: middle;
  text-shadow: none;
}
.label .name .oath-badge .oath-ring {
  width: 13px;
  height: 13px;
  vertical-align: -3px;
}
.oath-badge .oath-n {
  margin-left: 2px;
}
.oath-badge .oath-star {
  margin-left: 2px;
  color: #3f4652;
}
#badges-group[hidden],
#badge-star-row[hidden],
#badge-ring-row[hidden] {
  display: none;
}
#messages .oath-mark {
  display: inline-block;
  margin-right: 3px;
  cursor: help;
}
#messages .oath-mark .oath-ring {
  width: 14px;
  height: 14px;
  vertical-align: -2px;
}
#messages .pioneer-badge,
#messages .oath-badge {
  display: inline-block;
  margin-right: 4px;
  padding: 0 4px;
  border-radius: 3px;
  corner-shape: bevel;
  font: 800 10px/14px var(--read);
  vertical-align: 1px;
  text-shadow: none;
  cursor: help;
}
#messages .pioneer-badge {
  background:
    linear-gradient(
      180deg,
      #ffe98f,
      #f2b83a);
  color: #4a2f08;
  box-shadow: 0 0 0 1px #9c6b16;
}
#messages .oath-badge {
  padding-left: 2px;
  background:
    linear-gradient(
      180deg,
      #f4f6f9,
      #b9c0cc);
  color: #23262d;
  box-shadow: 0 0 0 1px #4b505b;
}
#messages .oath-badge .oath-ring {
  width: 13px;
  height: 13px;
  vertical-align: -3px;
}
#friends .friend .name .pioneer-badge,
#friends .friend .name .oath-badge {
  display: inline-block;
  margin-left: 5px;
  padding: 0 4px;
  border-radius: 3px;
  corner-shape: bevel;
  font: 800 10px/15px var(--read);
  vertical-align: 1px;
}
#friends .friend .name .pioneer-badge {
  background:
    linear-gradient(
      180deg,
      #ffe98f,
      #f2b83a);
  color: #4a2f08;
  box-shadow: 0 0 0 1px #9c6b16;
}
#friends .friend .name .oath-badge {
  padding-left: 2px;
  background:
    linear-gradient(
      180deg,
      #f4f6f9,
      #b9c0cc);
  color: #23262d;
  box-shadow: 0 0 0 1px #4b505b;
}
#friends .friend .name .oath-badge .oath-ring {
  width: 14px;
  height: 14px;
  vertical-align: -3px;
}
#hud-flags .pvp-region {
  background: #6e302c;
  color: #fff1dc;
  border: 1px solid #e9876c;
}
#hud-flags .pvp-border {
  background: #ecd3a2;
  color: #5e351e;
}
.maplegend .sw.pvp {
  background: #b9574e;
  border: 1px dashed #f1ac80;
}
.eqslot[data-slot=neck] {
  grid-area: neck;
}
.label .name .player-combat {
  display: block;
  width: max-content;
  margin: 1px auto 0;
  font-size: 9px;
  line-height: 11px;
  padding: 0 4px;
}
.maptools #wm-pvp {
  font: 800 12px var(--read);
  white-space: nowrap;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .maptools {
    flex-wrap: wrap;
  }
  .maptools #wm-info {
    flex-basis: 100%;
    margin: 0;
    text-align: right;
  }
}
.maplegend .sw.cave {
  position: relative;
  background: #919990;
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 100%, 10% 36%, 34% 8%, 65% 0, 92% 40%, 100% 100%);
}
.maplegend .sw.cave:after {
  content: "";
  position: absolute;
  inset: 36% 28% 0;
  background: #181d22;
  clip-path: polygon(0 100%, 0 35%, 35% 0, 72% 0, 100% 35%, 100% 100%);
}
#tabs button[data-tab=inventory] {
  position: relative;
}
#bag-space-badge {
  position: absolute;
  top: -7px;
  right: -3px;
  padding: 2px 4px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #fff2c6;
  color: #70480b;
  font: 800 10px/1 var(--read);
  white-space: nowrap;
  pointer-events: none;
}
#bag-space-badge[hidden] {
  display: none;
}
#bag-space-badge:not(.low) {
  background: #efe6cc;
  color: #5b4a2c;
  border-color: #8a7a5c;
  font-weight: 700;
}
#hud-flags .low-health {
  background: #ffe3dc;
  color: #902c24;
  height: auto;
  min-height: 22px;
  white-space: normal;
}
#recovery-detail h2 {
  margin: 0 0 12px;
  font-size: 22px;
}
#recovery-detail h3 {
  margin: 0;
  font-size: 16px;
}
#recovery-detail p {
  margin: 6px 0;
}
.death-recap:not(:empty) {
  margin-bottom: 14px;
}
.recovery-bag {
  border-top: 1px solid #cbb98e;
  padding: 12px 0;
}
.recovery-time {
  font-weight: 700;
  color: #775014;
}
.recovery-loot {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 4px 12px;
  padding-left: 20px;
  margin: 10px 0;
}
#recovery-detail button {
  background: #f4df9c;
  color: var(--ink);
  border: 2px solid #806a3f;
  border-radius: 6px;
  padding: 8px 18px;
  font: 700 14px var(--read);
  cursor: pointer;
}
#players-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  order: -1;
  min-height: 26px;
  font: 800 11px var(--read);
  color: #214d32;
  white-space: nowrap;
  padding: 3px 7px;
  background: #e3f1cf;
  border: 1px solid #83985a;
  border-radius: 5px;
}
#players-online::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  background: #3f8a4e;
  border: 1px solid #214d32;
  border-radius: 50%;
}
#players-online b {
  font-weight: 800;
}
#players-online .short {
  display: none;
}
#net-ping {
  display: inline-flex;
  align-items: center;
  order: -1;
  min-height: 26px;
  font: 800 11px var(--read);
  color: #214d32;
  white-space: nowrap;
  padding: 3px 7px;
  background: #e3f1cf;
  border: 1px solid #83985a;
  border-radius: 5px;
}
#net-ping[hidden] {
  display: none;
}
#net-ping.far {
  color: #5a3d06;
  background: #f6e3b4;
  border-color: #b58a2e;
}
#shop.pet-shop {
  left: 50%;
  top: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  width: 480px;
  max-width: calc(100vw / var(--ui) - 24px);
  max-height: calc(100dvh / var(--ui) - 32px);
}
#shop.pet-shop > .stock {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 4px 10px 10px;
}
.pet-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: #fff8e8;
}
.pet-portrait {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #eee1bb;
  border-radius: 8px;
}
.pet-portrait canvas,
.pet-portrait img {
  position: static;
  width: 56px;
  height: 56px;
  image-rendering: pixelated;
}
.pet-copy strong {
  font: 800 15px var(--read);
  color: var(--ink);
}
.pet-copy p {
  margin: 4px 0 0;
  font: 12px/1.4 var(--read);
  color: var(--brown);
}
#shop .pet-buy {
  min-height: 44px;
  padding: 8px;
  font: 800 12px var(--read);
  white-space: nowrap;
}
.pet-shop-note {
  flex: 0 0 auto;
  margin: 0 12px 12px;
  font: 12px/1.5 var(--read);
  color: var(--brown);
}
@media (max-width: 480px) {
  .pet-card {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 8px;
  }
  .pet-portrait {
    width: 56px;
    height: 56px;
    grid-row: span 2;
  }
  #shop .pet-buy {
    grid-column: 2;
    justify-self: start;
  }
}
#bank {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  max-width: calc(100vw / var(--ui) - 24px);
  height: min(660px, calc(100dvh / var(--ui) - 32px));
  max-height: calc(100dvh / var(--ui) - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#bank > h3,
#bank > .sub {
  flex: 0 0 auto;
}
#bank > .bank-other,
#bank > .bank-fee {
  flex: 0 0 auto;
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 2px solid #d9a93a;
  border-radius: 6px;
  background: #fff3c7;
  font: 700 12px/1.4 var(--read);
  color: #5a3d12;
}
.bank-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.bank-controls {
  flex: 0 0 auto;
}
.bank-gold {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.bank-gold strong {
  flex: 1 1 200px;
  font: 700 13px/1.4 var(--read);
  color: #ffdf8d;
}
.bank-gold button {
  min-height: 44px;
  padding: 6px 10px;
}
@media (max-height: 560px) {
  .bank-gold {
    margin: 3px 0;
  }
  .bank-gold strong {
    flex-basis: auto;
  }
  .bank-gold button {
    min-height: 36px;
  }
}
.bank-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 12px;
}
.bank-quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  font: 700 13px var(--read);
}
#bank .bank-deposit-all {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 10px;
  font: 800 13px var(--read);
}
.bank-quantity select {
  min-height: 40px;
  max-width: 65%;
  padding: 6px;
  background: #fff8e8;
  color: var(--ink);
  border: 2px solid var(--line);
  border-radius: 5px;
  font: 700 13px var(--read);
}
.bank-search {
  display: block;
  font: 700 12px var(--read);
}
.bank-search-field {
  display: flex;
  gap: 6px;
  margin-top: 5px;
}
.bank-search input {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 5px;
  background: #fffaf0;
  color: var(--ink);
  font: 16px var(--read);
}
#bank .bank-clear {
  flex: 0 0 auto;
  padding: 5px 10px;
  font: 700 12px var(--read);
}
.bank-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}
#bank .bank-filters button {
  min-height: 36px;
  padding: 5px 10px;
  font: 800 12px var(--read);
}
#bank .bank-filters button[aria-pressed=true] {
  background: #3d7047;
  color: #fff8e8;
  border-color: #284b30;
  box-shadow: inset 0 -2px #2a5132;
}
#bank :is(input, button, select):focus-visible {
  outline: 3px solid #347044;
  outline-offset: 2px;
}
.bank-count {
  margin: 0 0 8px;
  font: 600 11px var(--read);
  color: var(--brown);
}
.bank-collections {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 14px;
  overscroll-behavior: contain;
}
.bank-collections section {
  min-width: 0;
}
.bank-collections h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
  font: 800 15px var(--read);
}
.bank-collections h4 small {
  font: 600 11px var(--read);
  color: var(--brown);
}
#bank .stock {
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 6px;
  justify-content: stretch;
}
#bank .bank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 86px;
  padding: 6px;
  overflow-wrap: anywhere;
  font: 700 11px/1.25 var(--read);
}
.bank-item canvas {
  position: static;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.bank-item small {
  color: var(--brown);
  font: 800 12px var(--read);
}
.bank-empty {
  grid-column: 1/-1;
  font: 12px/1.5 var(--read);
  color: var(--brown);
}
@media (max-height: 560px) {
  #bank > .sub {
    display: none;
  }
  #bank .bank-filters button {
    flex: 0 0 auto;
  }
  .bank-actions {
    margin: 5px 0;
  }
  .bank-search-label {
    display: none;
  }
}
@media (max-width: 540px) {
  .bank-collections {
    grid-template-columns: 1fr;
  }
  #bank .stock {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  }
}
@media (max-width: 380px) {
  .bank-quantity {
    gap: 5px;
    font-size: 11px;
  }
  .bank-quantity select {
    max-width: 100px;
    font-size: 12px;
  }
  #bank .bank-deposit-all {
    padding: 6px;
    font-size: 12px;
  }
}
#bank .bank-pane-switch {
  display: none;
}
#bank {
  width: 900px;
  height: min(800px, calc(100dvh / var(--ui) - 32px));
  background: #593c26;
  color: #fff1d3;
}
#bank > h3 {
  background: var(--leather);
}
#bank > .sub {
  color: #ead4b1;
  font-size: 12px;
  line-height: 1.4;
}
#bank .bank-body {
  padding: 0 10px 10px;
}
#bank .bank-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#bank .bank-search-field {
  margin-top: 2px;
}
#bank button {
  background: var(--raised);
}
#bank button:hover {
  background: #fff0b9;
}
#bank button[aria-pressed=true] {
  background: #f6d889;
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: inset 0 -3px #c99f4b;
}
#bank :is(input, button, select):focus-visible {
  outline: 3px solid #ffe27a;
  outline-offset: 2px;
}
#bank .bank-collections {
  gap: 14px;
  align-items: start;
}
#bank .bank-collections section {
  border: 2px dashed #b98c55;
  border-radius: 12px;
  corner-shape: bevel;
  padding: 10px;
  background: #65462e;
}
#bank .bank-collections h4 {
  font: 16px/1.4 var(--blocks);
  border-color: #987047;
  color: #fff1d3;
}
#bank .bank-collections h4 small {
  color: #edd1a3;
}
#bank .bank-sort {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
#bank .bank-sort button {
  min-height: 34px;
  padding: 5px 8px;
}
#bank .stock {
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 5px;
}
#bank .bank-item,
#bank .bank-vacant {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  min-height: 56px;
  padding: 4px;
  border-radius: 9px;
  corner-shape: bevel;
}
#bank .bank-item {
  border: 2px solid #32200f;
  box-shadow: inset 1px 1px #fff5d6, inset -2px -3px #b8955e;
}
#bank .bank-item canvas {
  width: 40px;
  height: 40px;
  margin: -7px 0 0;
}
#bank .bank-item-name {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#bank .bank-item small {
  position: absolute;
  right: 3px;
  bottom: 2px;
  max-width: calc(100% - 4px);
  font: 900 12px/1.1 var(--read);
  color: #fffaf0;
  text-shadow:
    1px 1px #38250f,
    -1px -1px #38250f,
    1px -1px #38250f,
    -1px 1px #38250f;
  letter-spacing: -.4px;
}
#bank .bank-item .bank-fav {
  position: absolute;
  right: 3px;
  top: 2px;
  z-index: 1;
  font: normal 900 14px/1 var(--read);
  color: #ffd45a;
  text-shadow:
    1px 1px #6a430f,
    -1px -1px #6a430f,
    1px -1px #6a430f,
    -1px 1px #6a430f;
  pointer-events: none;
}
#bank[data-fav-picking=true] .bank-item:not(.favourite) .bank-fav {
  color: #fff6dc;
  opacity: .9;
}
#bank[data-fav-picking=true] .bank-item {
  border-style: dashed;
}
#bank .bank-filters [data-category=Favourites]::before {
  content: "★ ";
  color: #e3a21a;
}
#bank .bank-filters .bank-fav-pick::before {
  content: "☆ ";
}
#bank .bank-filters .bank-fav-pick[aria-pressed=true]::before {
  content: "★ ";
  color: #e3a21a;
}
#menu .bank-fav-line {
  color: #d9961a;
}
#bank .bank-vacant {
  border: 2px solid #402813;
  background: #4d301b;
  box-shadow: inset 1px 2px #382411;
}
#bank .bank-count {
  color: #f1d5ad;
  margin: 10px 0 0;
  font: 700 11px/1.4 var(--read);
}
#bank .bank-empty {
  color: #f1d5ad;
}
@media (max-width: 540px) {
  #bank .bank-pane-switch {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    margin: 0 0 8px;
  }
  #bank .bank-pane-switch button {
    flex: 1;
    min-height: 40px;
  }
  #bank[data-pane=withdraw] .bank-collections section:nth-child(2),
  #bank[data-pane=deposit] .bank-collections section:first-child {
    display: none;
  }
  #bank .bank-collections {
    grid-template-columns: 1fr;
  }
  #bank .stock {
    max-height: 32dvh;
    overflow-y: auto;
    padding: 3px;
  }
  #bank .bank-collections section {
    padding: 8px;
  }
}
@media (max-height: 560px) {
  #bank .bank-collections h4 {
    font-size: 13px;
  }
  #bank .bank-sort {
    margin-bottom: 6px;
  }
  #bank .bank-sort button {
    min-height: 30px;
  }
}
#public-chest {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  max-width: calc(100vw / var(--ui) - 24px);
  max-height: calc(100dvh / var(--ui) - 32px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  zoom: var(--ui);
}
#public-chest > h3,
#public-chest > .sub,
#public-chest > .pc-note,
#public-chest > .pc-retry {
  flex: 0 0 auto;
}
#public-chest .pc-note {
  margin: 0 0 8px;
  padding: 6px 10px;
  border: 2px solid #8fb23c;
  border-radius: 6px;
  corner-shape: bevel;
  background: #eef6e0;
  font: 700 12px/1.4 var(--read);
  color: #2d4f2c;
}
#public-chest .pc-note[hidden] {
  display: none;
}
#public-chest .pc-note.pc-error {
  border-color: #d9a93a;
  background: #fff3c7;
  color: #5a3d12;
}
#public-chest .pc-note.pc-why {
  border-color: #a99c86;
  background: #f3ecdc;
  color: #4a3b26;
}
#public-chest .pc-retry {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  font: 700 12px var(--read);
  color: var(--brown);
}
#public-chest .pc-retry[hidden] {
  display: none;
}
.pc-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-content: start;
  gap: 14px;
  overscroll-behavior: contain;
}
.pc-body section {
  min-width: 0;
}
.pc-body h4 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
  font: 800 15px var(--read);
}
.pc-body h4 small {
  font: 600 11px var(--read);
  color: var(--brown);
}
.pc-slots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
#public-chest .pc-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  min-height: 84px;
  padding: 6px 3px 4px;
  background: linear-gradient(#f1ddb0, #e9d09c);
  border: 2px solid #b58647;
  box-shadow: inset 0 3px 0 rgba(120, 80, 30, .2), inset 0 -2px 0 rgba(255, 255, 255, .4);
}
#public-chest .pc-slot:hover {
  border-color: var(--ink);
  background: linear-gradient(#fff4d8, #f2dcab);
}
#public-chest .pc-slot.mine {
  border-color: #d29c1c;
  box-shadow: inset 0 0 0 2px #f6c531;
}
#public-chest .pc-slot.empty {
  background: rgba(181, 134, 71, .12);
  border: 2px dashed #c9a871;
  box-shadow: none;
  cursor: default;
}
.pc-slot canvas {
  position: static;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
.pc-slot .pc-count-n {
  min-height: 13px;
  font: 800 11px/13px var(--read);
  color: var(--ink);
}
.pc-slot .pc-by {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 800 10px/12px var(--read);
  color: #3f5d34;
}
.pc-slot.mine .pc-by {
  color: #9a6a10;
}
.pc-slot .pc-when {
  font: 700 10px/12px var(--read);
  color: #7a6444;
  white-space: nowrap;
}
#public-chest.pc-look .pc-slot {
  cursor: default;
}
.pc-left {
  margin: 8px 0 0;
  font: 600 11px/1.45 var(--read);
  color: var(--brown);
}
#public-chest .stock {
  grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
  gap: 6px;
  justify-content: stretch;
}
#public-chest .bank-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-height: 82px;
  padding: 6px;
  overflow-wrap: anywhere;
  font: 700 11px/1.25 var(--read);
}
#public-chest .pc-item.kept {
  opacity: .5;
  filter: saturate(.6);
}
#public-chest[data-waiting] .pc-slot,
#public-chest[data-waiting] .pc-item {
  cursor: progress;
}
#public-chest.pc-look .pc-bag {
  opacity: .6;
}
#public-chest :is(button):focus-visible {
  outline: 3px solid #347044;
  outline-offset: 2px;
}
@media (max-height: 560px) {
  #public-chest > .sub {
    display: none;
  }
}
@media (max-width: 560px) {
  .pc-body {
    grid-template-columns: 1fr;
  }
  #public-chest .stock {
    grid-template-columns: repeat(auto-fill, minmax(74px, 1fr));
  }
}
.label.first-hunt .name {
  outline: 2px solid #ffe27a;
  outline-offset: 3px;
}
.first-action {
  outline: 3px solid #ffe27a !important;
  outline-offset: 2px;
}
#first-steps-dismiss {
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #9e885d;
  border-radius: 5px;
  background: #fff6de;
  color: #365a38;
  font: 700 12px var(--read);
  cursor: pointer;
}
#first-steps-foot {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  position: sticky;
  bottom: -13px;
  margin: 0 -14px -13px;
  padding: 10px 14px 13px;
  background: linear-gradient(rgba(246, 229, 188, 0), #f6e5bc 10px);
}
#first-steps-foot:has(> #first-steps-dismiss[hidden]):has(> #journey-journal[hidden]) {
  display: none;
}
#first-steps-dismiss[hidden],
.journey-choice[hidden] {
  display: none;
}
#journey-card.first-steps {
  border-color: #83985a;
}
@media (pointer: coarse) and (max-height: 500px) {
  #journey-card.first-steps {
    position: fixed;
    left: calc(max(8px, env(safe-area-inset-left)) + 218px);
    right: calc(max(8px, env(safe-area-inset-right)) + 176px);
    top: 10px;
    width: auto;
    max-height: calc(100dvh - 100px);
  }
  #journey-card.first-steps h2 {
    font-size: 13px;
  }
  #journey-card.first-steps p {
    font-size: 12px;
  }
}
#settings label.audio-level,
#settings label.slider-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px;
  margin: 8px 0 12px;
}
#settings .audio-level input[type=range],
#settings .slider-row input[type=range] {
  grid-column: 1 / -1;
  width: 100%;
  height: 24px;
  margin: 0;
  accent-color: var(--leaf);
}
#settings .audio-level output,
#settings .slider-row output {
  font-variant-numeric: tabular-nums;
}
#compass-ring .s {
  top: auto;
  bottom: -15px;
}
#compass-ring .e {
  left: auto;
  right: -15px;
  top: 50%;
  margin-left: 0;
  margin-top: -15px;
}
#compass-ring .w {
  left: -15px;
  top: 50%;
  margin-left: 0;
  margin-top: -15px;
}
#make[data-kind=build][data-preview=true] {
  top: auto;
  bottom: 110px;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: min(460px, calc(100% - 24px));
  max-height: calc(40vh / var(--ui));
}
#make[data-preview=true] > .rows,
#make[data-preview=true] > .build-controls,
#make[data-preview=true] > .sub,
#make[data-preview=true] > .warn {
  display: none;
}
#make .build-review[hidden] {
  display: none;
}
#make .build-review {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
#make .build-summary {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
#make[data-preview=true] > .build-catalog {
  display: none;
}
#make .build-name {
  font: 800 15px var(--read);
  color: var(--ink);
}
#make .build-cost,
#make .build-note {
  margin: 6px 0;
  font: 600 12px/1.4 var(--read);
  color: var(--brown);
}
#make .build-actions {
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
#make .build-size {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 6px 0;
  font: 800 12px var(--read);
  color: var(--brown);
}
#make .build-size[hidden] {
  display: none;
}
#make .build-size button {
  width: 36px;
  min-height: 34px;
  padding: 0;
  font: 800 17px/1 var(--read);
}
#make .build-size b {
  min-width: 70px;
  text-align: center;
  font-size: 14px;
  color: var(--ink);
}
#make .build-actions button {
  min-height: 40px;
  padding: 6px 10px;
  font: 800 12px var(--read);
}
#make .build-confirm {
  flex: 1;
  background: var(--evergreen);
  color: var(--paper);
}
#make .build-confirm:disabled {
  opacity: .5;
  cursor: default;
}
@media (max-width: 600px), (max-height: 550px) {
  #make[data-kind=build][data-preview=true] {
    bottom: calc(8px + env(safe-area-inset-bottom));
    max-height: min(calc(100dvh / var(--ui) - 24px), max(260px, 42dvh / var(--ui)));
  }
  #make .build-actions button {
    min-height: 44px;
  }
}
#amount-dialog {
  box-sizing: border-box;
  width: min(340px, calc(100vw - 32px));
  padding: 0;
  background: var(--parchment);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  corner-shape: bevel;
  box-shadow: var(--bevel), var(--ledge);
  font: 14px/1.5 var(--read);
  text-shadow: none;
}
#amount-dialog::backdrop {
  background: rgb(20 35 28 / 45%);
}
#amount-dialog form {
  margin: 0;
  padding: 16px 18px 18px;
}
#amount-dialog h2 {
  margin: 0 0 8px;
  font: 18px/1.4 var(--blocks);
  color: var(--leaf-deep);
}
#amount-dialog .amount-what {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  font-weight: 700;
  color: var(--brown);
}
#amount-dialog .amount-what[hidden],
#amount-dialog .amount-what img[hidden] {
  display: none;
}
#amount-dialog .amount-what img {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
#amount-dialog input {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 700 22px var(--read);
  font-variant-numeric: tabular-nums;
}
#amount-dialog input[hidden] {
  display: none;
}
#amount-dialog.asking-text input {
  font-size: 18px;
  font-variant-numeric: normal;
}
#amount-dialog #amount-help {
  min-height: 1.5em;
  margin: 6px 0 12px;
  font-size: 12.5px;
  color: var(--brown);
}
#amount-dialog #amount-help.bad {
  color: #b0462e;
  font-weight: 700;
}
#amount-dialog .amount-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
#amount-dialog button {
  min-width: 96px;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font: 700 14px var(--read);
  cursor: pointer;
}
#amount-dialog .amount-ok {
  background: var(--evergreen);
  color: var(--paper);
}
#amount-dialog .amount-ok:disabled {
  opacity: .55;
  cursor: default;
}
#make .opt .qty button.idle {
  visibility: hidden;
}
:root {
  --ui: 1;
}
#hud-left,
#hud,
#journey-card,
#compass,
#side,
#bars,
#chat,
#dialog,
#make,
#loot,
#shop,
#bank,
#menu,
#hint,
#level-progress {
  zoom: var(--ui);
}
#work-progress {
  zoom: calc(var(--ui, 1) * var(--hud-scale, 1));
}
body.ui-hidden #game > :not(#view):not(#ui-restore) {
  visibility: hidden !important;
}
body.ui-hidden > :not(#game) {
  visibility: hidden !important;
}
#ui-restore {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 246, 222, 0.35);
  background: rgba(24, 18, 12, 0.6);
  color: #fff6de;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: opacity 0.8s;
}
#ui-restore.faded {
  opacity: 0;
  pointer-events: none;
}
@media (pointer: coarse) {
  #ui-restore.faded {
    opacity: 0.3;
    pointer-events: auto;
    top: 10px;
    left: auto;
    right: 10px;
    transform: none;
  }
}
.flight-card {
  position: fixed;
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
  z-index: 30;
  min-width: 230px;
  padding: 8px 14px 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 3px 0 rgba(43, 29, 14, 0.35);
  pointer-events: none;
}
.flight-card .fc-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font: 800 13px/1.2 var(--read);
  color: var(--ink);
}
.flight-card .fc-time {
  font-variant-numeric: tabular-nums;
}
.flight-card .fc-bar {
  height: 6px;
  margin: 6px 0 5px;
  background: rgba(43, 29, 14, 0.15);
  border-radius: 3px;
  overflow: hidden;
}
.flight-card .fc-bar i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--honey);
}
.flight-card .fc-hint {
  font: 600 11px/1.2 var(--read);
  color: #6a5438;
  text-align: center;
}
body.flying #journey-card,
body.flying #hotbar,
body.flying #foodbar,
body.flying #touch-controls {
  display: none !important;
}
body.flying:has(#worldmap:not(.hidden)) #flight-card {
  display: none;
}
@media (pointer: coarse) and (max-width: 700px) {
  .flight-card {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
    min-width: 0;
    width: min(78vw, 300px);
  }
}
#piece-drag {
  position: fixed;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  z-index: 31;
  zoom: var(--ui);
  display: grid;
  gap: 6px;
  width: max-content;
  max-width: min(92vw, 440px);
  padding: 7px 12px 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 3px 0 rgba(43, 29, 14, 0.35);
  color: var(--ink);
  font: 800 13px/1.3 var(--read);
  text-align: center;
}
#piece-drag .pd-short {
  display: none;
}
#piece-drag[hidden] {
  display: none;
}
#piece-drag .pd-why {
  font-weight: 700;
}
#piece-drag .pd-why.ok {
  color: #2c6a3c;
}
#piece-drag .pd-why.no {
  color: #b8321f;
}
#piece-drag .pd-why.home {
  color: #6a5438;
}
#piece-drag .pd-keys {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
#piece-drag button {
  min-height: 0;
  padding: 4px 10px;
  background: linear-gradient(var(--honey-hi), #f0b93a);
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 -3px 0 rgba(150, 90, 10, 0.32);
  color: var(--ink);
  font: 800 12px var(--read);
  cursor: pointer;
}
#piece-drag button:hover {
  background: linear-gradient(#fff0a8, var(--honey));
}
#piece-drag button[hidden] {
  display: none;
}
#piece-drag.nope {
  animation: piece-nope 0.32s ease-out;
}
@keyframes piece-nope {
  0%, 100% {
    transform: translateX(-50%);
  }
  25% {
    transform: translateX(calc(-50% - 5px));
  }
  75% {
    transform: translateX(calc(-50% + 5px));
  }
}
body.dragging-piece,
body.dragging-piece * {
  cursor: grabbing !important;
}
body.carrying-piece #view {
  cursor: move !important;
}
@media (pointer: coarse) {
  #piece-drag button {
    min-height: 36px;
    padding: 6px 14px;
    font-size: 13px;
  }
}
@media (pointer: coarse) and (max-width: 700px) {
  #piece-drag .pd-wide {
    display: none;
  }
  #piece-drag .pd-short {
    display: inline;
  }
  #piece-drag .pd-rotate {
    min-width: 36px;
  }
  #piece-drag button {
    padding-inline: 8px;
  }
  #piece-drag {
    top: auto;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 112px);
    max-width: 92vw;
    gap: 4px;
    padding-block: 6px;
  }
}
.shop-sections {
  display: flex;
  gap: 6px;
  flex: 0 0 auto;
  padding: 5px 10px;
  flex-wrap: wrap;
}
.shop-sections button {
  min-height: 36px;
  padding: 6px 10px;
}
.shop-sections button[aria-pressed=true] {
  background: var(--honey);
  color: var(--ink);
}
#make[data-kind=garden] .opt.rich {
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
}
#make[data-kind=garden] .opt.rich .pic {
  grid-column: 1;
  grid-row: 1 / span 2;
}
#make[data-kind=garden] .opt.rich .what {
  grid-column: 2;
  grid-row: 1;
}
#make[data-kind=garden] .opt.rich > :last-child {
  grid-column: 2;
  grid-row: 2;
}
#horsebag:not([hidden]) {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 2px;
  border-bottom: 1px solid #776040;
  font-size: 12px;
}
#horsebag label {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}
#horsebag select {
  min-width: 0;
  max-width: 150px;
  width: 100%;
  font: inherit;
}
#horsebag button {
  padding: 4px 7px;
  white-space: nowrap;
}
#hud-flags .dragonfire-burn {
  background: #632d20;
  color: #ffe5bd;
  border-color: #d9854b;
}
#messages[data-show=world] > [data-find] {
  display: block;
}
.m-rareloot {
  color: #cfd6e0;
  border-left-color: #9cabb5;
}
.m-exceptionalloot {
  color: #ffe498;
  border-left: 3px solid #e2b24e;
  padding-left: 6px;
  font-weight: bold;
}
.m-legendaryloot {
  color: #dec7ff;
  border-left: 3px solid #b593f0;
  padding-left: 6px;
  font-weight: bold;
}
.m-dropjoy {
  color: #ffe9b0;
  border-left: 3px dotted #f0c766;
  padding-left: 6px;
  font-weight: 600;
}
#messages > [data-update="1"] {
  display: block !important;
  color: #ffe3a0;
}
#messages > .m-permanentban[data-update="1"] {
  color: #ff8585;
  font-weight: bold;
  border-left: 3px solid #ed5252;
  padding-left: 6px;
}
#make .home-horse-choice {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  gap: 3px;
  text-align: left;
  padding: 9px 11px;
  white-space: normal;
  min-height: 48px;
}
#make .home-horse-choice .need {
  margin: 0;
  white-space: normal;
  text-align: left;
  font-weight: 400;
}
#make .home-horse-choice:disabled {
  cursor: default;
  opacity: .65;
}
#voice-muted-list .voice-muted-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}
#voice-muted-list .voice-muted-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}
#voice-muted-list .voice-muted-row button {
  flex-shrink: 0;
  min-height: 34px;
}
#make .opt.survey-choice {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  white-space: normal;
  text-align: left;
  width: 100%;
  padding: 12px;
  overflow-wrap: anywhere;
}
#make .survey-choice strong {
  font-size: 14px;
}
#make .survey-choice span {
  font-size: 12px;
  line-height: 1.45;
}
#make .survey-choice b {
  font-size: 12px;
  color: #376451;
}
#make .survey-choice:focus-visible {
  outline: 3px solid #548477;
  outline-offset: -3px;
}
#make .survey-choice span {
  font-weight: 400;
}
#release-notes {
  box-sizing: border-box;
  width: min(570px, calc(100vw - 24px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  padding: 22px;
  background: var(--parchment);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--bevel), var(--ledge);
  font: 15px/1.5 var(--read);
  text-shadow: none;
}
#release-notes::backdrop {
  background: rgb(20 35 28 / 55%);
}
#release-notes h2 {
  margin: 0;
  color: var(--leaf-deep);
  font: 22px/1.3 var(--blocks);
}
#release-notes .release-title {
  margin: 10px 0 16px;
  font-weight: 700;
  color: var(--brown);
}
#release-notes ul {
  padding-left: 22px;
  margin: 0;
}
#release-notes li {
  padding-left: 3px;
  margin-bottom: 12px;
}
#release-notes .release-summary section {
  margin: 0 0 20px;
}
#release-notes .release-summary h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  color: var(--leaf-deep);
  font: 700 16px/1.3 var(--read);
}
#release-notes .release-summary .release-icon {
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
#release-notes .release-summary p {
  margin: 0;
  line-height: 1.6;
}
#release-notes details .release-summary {
  margin-top: 10px;
}
#release-notes .release-foot {
  font-size: 13px;
  color: var(--brown);
  border-top: 1px solid var(--brown);
  padding-top: 12px;
}
#release-notes button {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: var(--evergreen);
  color: var(--paper);
  font: 700 15px var(--read);
  cursor: pointer;
}
#release-notes h2 {
  padding-right: 40px;
}
#release-notes .release-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  min-height: 40px;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 24px;
}
#release-notes h2:focus {
  outline: none;
}
#hud-flags .food-buff {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-height: 24px;
  max-width: 100%;
  padding: 3px 6px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: #e3f1cf;
  color: #2c5a1f;
  font: 700 11px/1.3 var(--read);
  cursor: pointer;
}
#hud-flags .food-buff:focus-visible {
  outline: 2px solid #a05a19;
  outline-offset: 2px;
}
#make .cooking-controls {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  font: 600 12px var(--read);
}
#make .cooking-controls label {
  display: block;
}
#make .cooking-controls input[type=search] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 5px 0 8px;
  padding: 7px;
  font: inherit;
  background: var(--paper,#fff9e9);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 4px;
}
#make .cooking-controls .cooking-ready {
  display: flex;
  gap: 7px;
  align-items: center;
}
#make .cooking-controls p {
  margin: 6px 0 0;
}
#make .rows [hidden] {
  display: none !important;
}
#travel-companions {
  color: #f4e6c0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 10px auto;
  max-width: 300px;
}
#travel-companions #petpouch,
#travel-companions #horsebag:not([hidden]),
#travel-companions #boatbag:not([hidden]) {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 14px 40px 24px;
  justify-items: center;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 7px 3px 5px;
  border: 2px solid #4a2c16;
  border-radius: 10px;
  corner-shape: bevel;
  background: linear-gradient(#b98450, #9a6a3c);
  box-shadow: inset 0 2px #ffffff33, inset 0 -2px #00000038;
  font-size: 10px;
}
#travel-companions #petpouch::before {
  content: "Pet";
  position: static;
  padding: 0;
  background: none;
  font: bold 10px/14px var(--font,sans-serif);
  color: inherit;
  grid-row: 1;
}
#travel-companions #petpouch::after {
  content: attr(data-companion);
  grid-row: 3;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 10px/24px var(--font,sans-serif);
}
#travel-companions #horsebag label,
#travel-companions #boatbag label {
  font: bold 10px/14px var(--font,sans-serif);
}
#travel-companions #horsebag select,
#travel-companions #boatbag select {
  box-sizing: border-box;
  max-width: 100%;
  width: 100%;
  min-width: 0;
  height: 24px;
  font: 10px var(--font,sans-serif);
  padding: 2px;
  border: 1px solid #957143;
  border-radius: 3px;
  color: #fff0ce;
  background: #62452b;
  cursor: pointer;
}
#travel-companions .travel-icon,
#travel-companions #petpouch .slot {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  position: relative;
  width: 40px;
  height: 40px;
  padding: 3px;
  background: #e0c58d;
  border: 2px solid #a88046;
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 2px #fff0b980, 0 2px #25180e55;
  clip-path: none;
  cursor: pointer;
}
#travel-companions #petpouch .slot {
  grid-row: 2;
}
#travel-companions .travel-icon canvas,
#travel-companions .travel-icon img,
#travel-companions #petpouch .slot canvas,
#travel-companions #petpouch .slot img {
  position: static;
  width: 28px;
  height: 28px;
  image-rendering: pixelated;
}
#travel-companions .travel-icon svg {
  width: 28px;
  height: 28px;
}
#travel-companions #boatbag span {
  max-width: 100%;
  text-align: center;
  font-size: 10px;
  line-height: 12px;
}
#travel-companions .travel-icon:disabled,
#travel-companions #petpouch .slot.empty {
  cursor: default;
}
#travel-companions .empty .travel-icon,
#travel-companions #petpouch .slot.empty {
  background: #674c32;
  border-color: #866544;
  box-shadow: inset 0 2px #34221566;
}
#travel-companions select:disabled {
  appearance: none;
  text-align: center;
  background: transparent;
  border-color: transparent;
  color: #d4bd95;
  opacity: 1;
  cursor: default;
}
#travel-companions .empty .travel-icon svg,
#travel-companions .empty .travel-icon canvas,
#travel-companions .empty .travel-icon img,
#travel-companions #petpouch .slot.empty canvas {
  opacity: .5;
  filter: grayscale(1);
}
#travel-companions button:not(:disabled):hover,
#travel-companions #petpouch .slot:not(.empty):hover {
  border-color: #ffe3a0;
  background: #ecd49e;
}
#travel-companions button:focus-visible,
#travel-companions select:focus-visible,
#travel-companions .slot:focus-visible {
  outline: 2px solid #ffe3a0;
  outline-offset: 2px;
}
#travel-companions .travel-name {
  display: block;
  box-sizing: border-box;
  max-width: 100%;
  min-width: 0;
  width: 100%;
  height: 24px;
  padding: 2px;
  border: 0;
  background: transparent;
  color: #fff0ce;
  font: 10px/12px var(--font,sans-serif);
  text-overflow: ellipsis;
  overflow: hidden;
  cursor: pointer;
}
#travel-companions .travel-name:disabled {
  color: #ead7b4;
  cursor: default;
}
#travel-companions .travel-name:not(:disabled):hover {
  text-decoration: underline;
  background: #00000018;
}
#combat-role {
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
}
#combat-role strong {
  color: var(--leaf-deep);
  font-size: 16px;
}
#combat-role p,
#combat-role small {
  margin: 5px 0;
  display: block;
  line-height: 1.4;
}
.ability-intro,
.party-help {
  font-size: 12px;
  line-height: 1.45;
  margin: 8px 0;
}
.ability-group {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.ability-group summary {
  padding: 10px;
  background: var(--raised);
  cursor: pointer;
}
#spells button.spell {
  width: 100%;
  text-align: left;
  white-space: normal;
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: 22px 36px minmax(0, 1fr) auto;
  gap: 5px;
  padding: 9px 5px;
}
#spells .ability-state {
  display: block;
  grid-column: 1 / -1;
  font-size: 11px;
  line-height: 1.4;
  color: var(--leaf-deep);
}
#spells .needs-gear .ability-state,
#spells .locked .ability-state {
  color: #735024;
}
#spells .spell.locked {
  opacity: 1;
}
#spells .spell[aria-disabled=true] {
  background: #eee3ca;
}
#spells .spell-bar-controls {
  display: flex;
  justify-content: flex-end;
  padding: 2px 8px 8px;
}
#spells .spell-bar-controls button {
  min-height: 36px;
  font-size: 12px;
  white-space: normal;
}
#party {
  margin: 0 0 14px;
  padding: 10px;
  border: 2px solid var(--brown);
  background: var(--parchment);
  border-radius: 5px;
}
#party h3 {
  margin: 0 0 6px;
  font-size: 16px;
}
.party-status {
  font-size: 12px;
  margin: 10px 0;
}
.party-xp-choice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  margin: 8px 0;
}
.party-xp-choice[hidden] {
  display: none;
}
.party-xp-choice select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 6px;
  border: 2px solid var(--brown);
  border-radius: 5px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
.party-xp-status,
.party-offer-mode {
  font-size: 12px;
  font-weight: bold;
  overflow-wrap: anywhere;
}
.owner-plant-entry {
  margin: 0 0 10px;
  min-height: 40px;
}
.planting-choice {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 8px 0;
}
.planting-choice select {
  width: 100%;
  min-width: 0;
  padding: 8px;
  min-height: 42px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--brown);
  font: inherit;
}
.party-invite-form,
.party-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.party-invite-form input {
  min-width: 0;
  flex: 1 1 110px;
  width: 110px;
}
#party button {
  min-height: 34px;
  font-size: 12px;
}
.party-roster {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.party-member {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  background: #fffaec;
}
.party-member.selected {
  border-color: var(--leaf-deep);
  box-shadow: inset 0 0 0 1px var(--leaf-deep);
}
.party-member-info {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  row-gap: 3px;
}
#party .party-select {
  display: block;
  max-width: 100%;
  padding: 3px 5px;
  text-align: left;
  overflow-wrap: anywhere;
}
.party-health {
  display: block;
  font-size: 11px;
  text-align: right;
  max-width: 98px;
}
.party-member progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 8px;
  accent-color: var(--leaf);
  appearance: none;
  border: 1px solid #705c35;
  border-radius: 2px;
  background: #dbcda9;
}
.party-member progress::-webkit-progress-bar {
  background: #dbcda9;
}
.party-member progress::-webkit-progress-value {
  background: linear-gradient(#78be70, #3e8045);
}
.party-member progress::-moz-progress-bar {
  background: linear-gradient(#78be70, #3e8045);
}
#party button:disabled {
  cursor: default;
  opacity: .65;
}
.party-invite-form input {
  border: 2px solid var(--ink);
  border-radius: 5px;
  corner-shape: bevel;
  padding: 6px;
  background: var(--paper);
  color: var(--ink);
}
.party-kick {
  flex: none;
}
.party-invitation {
  padding: 8px;
  margin: 8px 0;
  border: 2px solid var(--leaf-deep);
}
.party-invitation p {
  margin: 0 0 6px;
}
.party-invitation button {
  margin-right: 5px;
}
#party [hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  #party button {
    min-height: 42px;
  }
  .party-kick {
    max-width: 68px;
  }
}
#spells .spell kbd:empty {
  visibility: hidden;
}
#party-hud {
  position: relative;
  width: min(100%, 240px);
  box-sizing: border-box;
  padding: 5px;
  border-width: 2px;
  border-radius: 7px;
}
#party-hud[hidden],
#party-hud [hidden] {
  display: none !important;
}
.party-hud-head {
  display: flex;
  gap: 4px;
}
#party-hud button {
  min-height: 40px;
  touch-action: manipulation;
}
#party-hud .party-hud-manage {
  flex: 1;
  text-align: left;
  min-width: 0;
}
#party-hud .party-hud-toggle {
  width: 40px;
  flex: none;
  padding: 0;
  font-size: 20px;
}
.party-hud-members {
  display: grid;
  gap: 3px;
  margin-top: 4px;
}
#party-hud .party-hud-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 5px;
  row-gap: 2px;
  padding: 4px 5px;
  text-align: left;
  background: var(--raised);
}
.party-hud-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.party-hud-health {
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
#party-hud progress {
  grid-column: 1 / -1;
  width: 100%;
  height: 6px;
  appearance: none;
  border: 1px solid #705c35;
  border-radius: 2px;
  background: #dbcda9;
}
#party-hud progress::-webkit-progress-bar {
  background: #dbcda9;
}
#party-hud progress::-webkit-progress-value {
  background: linear-gradient(#78be70, #3e8045);
}
#party-hud progress::-moz-progress-bar {
  background: linear-gradient(#78be70, #3e8045);
}
#party-hud .party-hud-member.selected {
  background: #e3f1cf;
  border-color: var(--leaf-deep);
  box-shadow: inset 0 0 0 1px var(--leaf-deep);
}
#party-hud button:disabled {
  cursor: default;
  color: var(--brown);
}
#party-hud .party-hud-offer {
  width: 100%;
  margin-top: 4px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.party-hud-hint {
  font-size: 10px;
  line-height: 1.25;
  margin: 5px 2px 1px;
}
@media (max-height: 520px) {
  #party-hud .party-hud-members {
    max-height: 126px;
    overflow: auto;
  }
}
@media (pointer: coarse) and (max-height: 520px) {
  #party-hud .party-hud-members {
    position: absolute;
    left: calc(100% + 8px);
    top: var(--party-boss-side-top,0px);
    width: 210px;
    max-height: min(126px, var(--party-boss-side-height,126px));
    box-sizing: border-box;
    margin: 0;
    padding: 4px;
    border: 2px solid var(--ink);
    border-radius: 5px;
    background: var(--parchment);
    box-shadow: var(--ledge);
  }
  #party-hud .party-hud-hint {
    display: none;
  }
}
@media (max-width: 760px) and (min-height: 521px), (pointer: coarse) and (min-height: 521px) {
  body:has(#bossbar:not(.hidden)) #party-hud-members:has(> :nth-child(3)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  body:has(#bossbar:not(.hidden)) #party-hud-members:has(> :nth-child(3)) .party-hud-member {
    grid-template-columns: minmax(0, 1fr);
    min-height: 48px;
  }
}
#skills .defence-training {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 7px;
  align-items: center;
  padding: 6px;
  font: 12px/1.3 var(--read);
}
#skills .defence-training input {
  width: 18px;
  height: 18px;
  margin: 0;
}
#skills .defence-training small {
  grid-column: 1 / -1;
}
#skills [data-skill=shielding] .nm {
  white-space: normal;
}
#skills .defence-training select {
  min-height: 36px;
  width: 100%;
  font: inherit;
}
.calling-practice {
  margin: 8px 0;
  min-height: 44px;
  width: 100%;
}
#travel-companions [hidden] {
  display: none !important;
}
.label .name .guild-tag {
  display: block;
  color: #d6e5bc;
  font: 600 9px/1.25 var(--read);
  letter-spacing: .5px;
  text-align: center;
}
#travel-companions {
  grid-template-columns: repeat(3, 48px);
  justify-content: center;
  gap: 12px;
  margin: 14px auto 10px;
}
#travel-companions #petpouch,
#travel-companions #horsebag:not([hidden]),
#travel-companions #boatbag:not([hidden]) {
  grid-template-rows: 40px;
  padding: 5px 2px;
  width: 48px;
}
#travel-companions #petpouch::before,
#travel-companions #horsebag label,
#travel-companions #boatbag label {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  padding: 0 4px;
  background: #4a2c16;
  border-radius: 3px;
  font: 8px/13px var(--blocks);
  color: #fff6de;
  white-space: nowrap;
}
#travel-companions #petpouch::after {
  display: none;
}
#travel-companions #petpouch .slot {
  grid-row: 1;
}
#toolbelt .slot canvas,
#toolbelt .slot img {
  width: 18px;
  height: 18px;
  left: 5px;
  top: 5px;
}
#bank .bank-item canvas {
  width: 36px;
  height: 36px;
}
#travel-companions .travel-icon,
#travel-companions #petpouch .slot {
  padding: 0;
}
#travel-companions .travel-icon canvas,
#travel-companions .travel-icon img,
#travel-companions #petpouch .slot canvas,
#travel-companions #petpouch .slot img {
  width: 36px;
  height: 36px;
}
#skill-pins {
  padding: 6px 9px;
  border: 2px solid #6a4827;
  border-radius: 8px;
  background: var(--paper,#fff1cf);
  color: var(--ink,#2b1d0e);
  font: 12px var(--read,sans-serif);
}
#skill-pins[hidden] {
  display: none;
}
#skill-pins summary {
  cursor: pointer;
  font-weight: bold;
  padding: 2px 0;
}
.pinned-skill {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
}
.pinned-skill-goal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 6px;
  flex: 1;
  min-width: 0;
  padding: 3px 5px;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.pinned-skill-goal small {
  font-size: 11px;
}
.pinned-skill-goal progress {
  grid-column: 1/-1;
  width: 100%;
  height: 5px;
  accent-color: #527d40;
}
.skill-unpin {
  width: 26px;
  min-height: 26px;
  padding: 0;
  font-size: 18px;
  cursor: pointer;
}
#skill-pin {
  margin: 6px 0;
  min-height: 32px;
}
#skill-pins button:focus-visible,
#skill-pins summary:focus-visible {
  outline: 2px solid #806018;
  outline-offset: 2px;
}
@media (max-width: 760px), (pointer: coarse) {
  #skill-pins {
    font-size: 11px;
    padding: 3px 6px;
  }
  #skill-pins summary {
    min-height: 28px;
    line-height: 28px;
  }
  .skill-unpin {
    min-height: 32px;
    width: 32px;
  }
  .pinned-skill-goal {
    min-height: 32px;
  }
}
#skill-pins {
  corner-shape: bevel;
  box-shadow: var(--bevel), var(--ledge);
}
#travel-companions #petpouch::before {
  grid-row: auto;
  align-self: auto;
}
#skills .skill canvas {
  image-rendering: pixelated;
  width: 28px;
  height: 28px;
}
#spells .sp-name {
  min-width: 0;
  overflow-wrap: anywhere;
}
#spells .spell-icon {
  grid-column: 2;
  grid-row: 1;
}
#spells .sp-name {
  grid-column: 3;
  grid-row: 1;
}
#spells .cost {
  grid-column: 4;
  grid-row: 1;
}
#skill-pin:hover,
.quest-follow:hover,
.journal-switch button:hover {
  background: linear-gradient(#fff0a8, var(--honey));
}
#skill-pin:disabled {
  opacity: .6;
  cursor: default;
}
.skill-unpin {
  flex: none;
  padding: 0 0 1px 1px;
  background: var(--raised);
  border: 2px solid var(--ink);
  border-radius: 6px;
  corner-shape: bevel;
  box-shadow: inset 0 -3px 0 #a06e284d;
  color: var(--ink);
  font: 16px/1 var(--blocks);
  cursor: pointer;
}
.skill-unpin:hover {
  background: linear-gradient(#fff0a8, var(--honey));
}
#combat-practice,
.journal-filter select {
  box-sizing: border-box;
  min-height: 34px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff3d8;
  color: var(--leaf-deep);
  font: 700 13px var(--read);
  max-width: 100%;
}
#toolbelt {
  gap: 2px;
}
#party .party-mana,
#party-hud .party-mana {
  height: 4px;
  margin-top: -1px;
}
#party .party-mana::-webkit-progress-value,
#party-hud .party-mana::-webkit-progress-value {
  background: #497fbc;
}
#party .party-mana::-moz-progress-bar,
#party-hud .party-mana::-moz-progress-bar {
  background: #497fbc;
}
@media (max-width: 520px) {
  #make[data-kind=cook] .opt.rich {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
  }
  #make[data-kind=cook] .opt.rich .pic {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  #make[data-kind=cook] .opt.rich .what {
    grid-column: 2;
    grid-row: 1;
  }
  #make[data-kind=cook] .opt.rich > :last-child {
    grid-column: 2;
    grid-row: 2;
    white-space: normal;
  }
  #make[data-kind=cook] .opt .info .takes {
    white-space: normal;
    flex-wrap: wrap;
  }
}
#wm-coordinates {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 6px;
  pointer-events: none;
  background: var(--parchment);
  border: 1px solid var(--brown);
  border-radius: 3px;
  font: 600 12px var(--read);
  color: var(--brown);
  font-variant-numeric: tabular-nums;
}
.settings-navigation,
.achievement-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.settings-navigation button,
.achievement-filters button {
  padding: 9px 12px;
  text-align: left;
}
.settings-navigation button[aria-pressed=true],
.achievement-filters button[aria-pressed=true] {
  background: var(--evergreen);
  color: var(--paper);
  border-color: var(--ink);
  text-shadow: 0 1px 0 var(--ink);
}
.settings-pane[hidden],
.achievement-card[hidden] {
  display: none;
}
.settings-content {
  min-width: 0;
}
#journal-achievements > input {
  width: 100%;
  margin-bottom: 12px;
}
.build-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  margin-bottom: 8px;
}
.build-search input {
  width: 100%;
  min-width: 0;
}
.build-search .build-ready {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  font: 700 12px var(--read);
}
.build-search .build-ready input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  flex: 0 0 18px;
}
#make .build-filters button[hidden],
#make .home-guide[hidden] {
  display: none;
}
.build-search p {
  grid-column: 1/-1;
  margin: 2px 0;
  font-size: 12px;
}
.build-catalog {
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#make[data-kind=build] > h3 {
  flex-shrink: 0;
}
@media (max-width: 600px) {
  #make[data-kind=build] > h3 {
    flex-wrap: wrap;
    gap: 4px;
  }
  #make[data-kind=build] .make-title {
    flex-basis: 100%;
    font-size: 14px;
  }
  #make[data-kind=build] h3 .now {
    margin-left: 0;
  }
}
#make[data-preview=true] .build-search {
  display: none;
}
@media (min-width: 900px) {
  #make[data-kind=build]:not([data-preview=true]) {
    width: min(820px, calc(100vw / var(--ui) - 180px));
  }
  #make:not([data-preview=true]) .build-catalog {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 12px;
    overflow: hidden;
  }
  #make:not([data-preview=true]) .build-controls {
    grid-column: 1;
    grid-row: 1/3;
    overflow: auto;
    border-right: 1px solid var(--line);
    padding-right: 12px;
  }
  #make:not([data-preview=true]) .build-filters {
    flex-direction: column;
  }
  #make:not([data-preview=true]) .build-filters button {
    padding: 10px;
    text-align: left;
  }
  #make:not([data-preview=true]) .build-search {
    grid-column: 2;
    grid-row: 1;
  }
  #make:not([data-preview=true]) .build-catalog > .rows {
    grid-column: 2;
    grid-row: 2;
    margin-right: 0;
  }
  #journal-achievements[hidden] {
    display: none;
  }
}
#settings .settings-navigation {
  grid-column: 1;
  grid-row: 1;
}
#settings .settings-content {
  grid-column: 2;
  grid-row: 1;
}
#settings .settings-navigation button[aria-pressed=true],
#journal-achievements .achievement-filters button[aria-pressed=true] {
  background: var(--evergreen);
  color: var(--paper);
}
#journal-achievements > input,
.build-search input {
  min-height: 34px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 6px;
  corner-shape: bevel;
  background: #fffaf0;
  color: var(--ink);
  font: 600 13px var(--read);
}
.achievement-card {
  corner-shape: bevel;
}
.achievement-filters button:focus-visible {
  outline: 3px solid var(--evergreen);
  outline-offset: 2px;
}
@media (max-width: 899px), (pointer: coarse) {
  #make:not([data-preview=true]) .build-catalog {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
  #make .build-catalog > .build-search {
    flex-shrink: 0;
  }
  #make .build-catalog > .rows {
    flex: 0 0 auto;
    overflow: visible;
    margin-right: 0;
    padding-right: 0;
  }
}
#equipment-detail:has(.equipment-actions)[open] {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
#equipment-detail .equipment-copy {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 18px;
}
#equipment-detail .equipment-actions {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  border-top: 1px solid #bfc6aa;
  background: #fff6de;
}
#equipment-detail .equipment-actions button {
  flex: 1;
}
#equipment-detail .item-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 2px solid #c3a66b;
}
#equipment-detail .item-card-header h2 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}
#equipment-detail .item-card-picture {
  display: grid;
  place-items: center;
  flex: 0 0 88px;
  height: 88px;
  box-sizing: border-box;
  border: 2px solid #b89752;
  border-radius: 12px;
  background:
    radial-gradient(
      circle,
      #fffaf0,
      #ecd5a0);
  box-shadow: inset 0 0 0 3px #fff6de, 0 3px 8px #382a1420;
}
#equipment-detail .item-card-picture > * {
  width: 72px;
  height: 72px;
  max-width: 100%;
  object-fit: contain;
}
#equipment-detail .equipment-copy {
  overflow-wrap: anywhere;
}
@media (max-width: 420px) {
  #equipment-detail .item-card-header {
    gap: 12px;
  }
  #equipment-detail .item-card-picture {
    flex-basis: 72px;
    height: 72px;
  }
  #equipment-detail .item-card-picture > * {
    width: 60px;
    height: 60px;
  }
  #equipment-detail .item-card-header h2 {
    font-size: 19px;
  }
}
#rest-visit {
  position: fixed;
  z-index: 95;
  top: max(12px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100vw - 24px));
  box-sizing: border-box;
  padding: 14px 16px;
  color: #4b311c;
  background: #fff2d2;
  border: 3px solid #77542b;
  border-radius: 10px;
  box-shadow: 0 5px 20px #0006;
  pointer-events: auto;
  font: 15px/1.35 system-ui;
}
#rest-visit[hidden] {
  display: none;
}
#rest-visit h2 {
  margin: 0 0 8px;
  font-size: 18px;
}
#rest-visit p {
  margin: 8px 0;
}
#rest-visit div {
  display: flex;
  min-height: 44px;
}
#rest-visit button {
  min-height: 44px;
  min-width: 140px;
  padding: 8px 12px;
  font: inherit;
  font-weight: 700;
  color: #4b311c;
  background: #f3d285;
  border: 2px solid #77542b;
  border-radius: 6px;
  cursor: pointer;
}
#rest-visit button:disabled {
  opacity: .65;
  cursor: wait;
}
#rest-visit button:focus-visible {
  outline: 3px solid #156baf;
  outline-offset: 3px;
}
@media (max-height: 500px) {
  #rest-visit {
    left: auto;
    right: 12px;
    transform: none;
    width: 300px;
    max-height: calc(100vh - 24px);
    overflow: auto;
  }
}
#rest-visit {
  z-index: 1460;
  width: min(380px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
}
#rest-visit [hidden] {
  display: none !important;
}
#rest-visit .rest-puzzle {
  display: block;
}
#rest-visit .rest-prompt {
  font-weight: 700;
  margin: 6px 0;
}
#rest-visit .rest-figure {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border: 2px solid #77542b;
  border-radius: 6px;
  background: #fbf3df;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
#rest-visit .rest-figure[data-input=turn] {
  width: min(220px, 100%);
  margin: 0 auto;
}
#rest-visit .rest-figure img,
#rest-visit .rest-figure canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: auto;
  transition: transform .15s;
}
#rest-visit .rest-figure canvas {
  cursor: crosshair;
  touch-action: none;
}
#rest-visit .rest-figure canvas:focus-visible {
  outline: 3px solid #156baf;
  outline-offset: -3px;
}
#rest-visit .rest-help {
  font-size: 12px;
  opacity: .8;
  margin: 4px 0;
}
#rest-visit .rest-answer {
  display: flex;
  gap: 8px;
  margin: 8px 0;
}
#rest-visit .rest-answer input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  box-sizing: border-box;
  padding: 6px 10px;
  font: inherit;
  font-size: 20px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #4b311c;
  background: #fffaf0;
  border: 2px solid #77542b;
  border-radius: 6px;
}
#rest-visit .rest-answer input::placeholder {
  text-transform: none;
  letter-spacing: 0;
  font-size: 15px;
}
#rest-visit .rest-answer button,
#rest-visit .rest-turn button {
  min-width: 0;
  flex: 1;
}
#rest-visit .rest-turn {
  gap: 8px;
  margin: 8px 0;
}
#rest-visit .rest-miss {
  color: #9b2d1f;
  font-weight: 700;
  min-height: 0;
}
#rest-visit .rest-miss:empty {
  display: none;
}
#rest-visit button.rest-skip,
#rest-visit .rest-puzzle > button {
  min-width: 0;
  width: 100%;
  margin-top: 6px;
  font-weight: 600;
  background: #f7e6bb;
}
#rest-visit .rest-cook {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 0;
  margin: 2px 0 6px;
}
#rest-visit .rest-face {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: block;
}
#rest-visit .rest-face svg {
  display: block;
}
#rest-visit .rest-bubble {
  position: relative;
  flex: 1;
  margin: 0;
  padding: 8px 10px;
  background: #fffaf0;
  border: 2px solid #77542b;
  border-radius: 12px;
  font-style: italic;
}
#rest-visit .rest-bubble::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  margin-top: -7px;
  border: 7px solid transparent;
  border-right-color: #77542b;
  border-left: 0;
}
#rest-visit .rest-bubble::after {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  margin-top: -5px;
  border: 5px solid transparent;
  border-right-color: #fffaf0;
  border-left: 0;
}
#rest-visit .rest-marks {
  min-height: 0;
  margin: 8px 0;
}
#rest-visit .rest-marks button {
  flex: 1;
  min-width: 0;
}
#rest-visit .rest-miss {
  color: #8a4b12;
}
#rest-visit .rest-cheer {
  position: relative;
  display: block;
  min-height: 0;
  text-align: center;
  padding: 10px 0 4px;
}
#rest-visit .rest-thanks {
  font-size: 18px;
  font-weight: 700;
  margin: 4px 0;
}
#rest-visit .rest-streak {
  font-weight: 700;
  color: #2e7d32;
  margin: 4px 0;
}
#rest-visit .rest-burst {
  position: absolute;
  left: 50%;
  top: 22px;
  width: 0;
  height: 0;
  pointer-events: none;
}
#rest-visit .rest-burst i {
  position: absolute;
  left: -4px;
  top: -4px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  opacity: 0;
  animation: rest-sparkle .8s ease-out forwards;
}
#rest-visit .rest-burst i:nth-child(3n) {
  border-radius: 50%;
}
#rest-visit.rest-cheering .rest-face {
  animation: rest-hop .5s ease-out;
}
@keyframes rest-sparkle {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--dx), var(--dy)) rotate(var(--r)) scale(.6);
  }
}
@keyframes rest-hop {
  0%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #rest-visit .rest-burst {
    display: none;
  }
  #rest-visit.rest-cheering .rest-face {
    animation: none;
  }
}
#rest-visit .rest-gift {
  display: block;
  min-height: 0;
  margin: 8px 0 4px;
  text-align: left;
}
#rest-visit .rest-gift-title {
  font-weight: 700;
  margin: 4px 0;
}
#rest-visit .rest-gift-skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 6px;
  min-height: 0;
}
#rest-visit .rest-gift-skills button {
  min-width: 0;
  min-height: 44px;
  padding: 4px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.15;
}
#rest-visit .rest-gift-skills button small {
  font-weight: 600;
  font-size: 11px;
  opacity: .85;
}
#rest-visit .rest-gift-skills button[aria-pressed=true] {
  background: #7fb35a;
  color: #1f3312;
  box-shadow: inset 0 0 0 2px #2e5a17;
}
#rest-visit .rest-gift-skills button:disabled {
  cursor: default;
  opacity: .5;
}
#rest-visit button.rest-later,
#rest-visit button.rest-book {
  min-width: 0;
  width: 100%;
  margin-top: 6px;
  font-weight: 600;
  background: #f7e6bb;
}
#rest-visit .rest-given {
  font-size: 17px;
  font-weight: 800;
  color: #2e7d32;
}
#rest-visit .rest-card,
#rest-visit .rest-apron {
  font-weight: 700;
  color: #7a4a12;
}
.bank-gold-help {
  flex: 1 1 100%;
  font: 12px/1.4 var(--read);
}
#worldmap-labels span.spawntown {
  border-color: #735321;
  background: #fff0b9;
  outline: 1px solid #fff8df;
  font: 700 14px/1.1 var(--read);
}
#worldmap-labels span.spawntown::before {
  content: "★";
  color: #98671b;
}
#worldmap-labels span.town {
  padding: 2px 4px;
  background: var(--paper);
  border: 1px solid var(--ink);
  border-radius: 3px;
  font: bold 12px/1.1 var(--read);
  text-shadow: none;
}
#make .floor-dimensions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#make .floor-dimensions label {
  display: grid;
  gap: 4px;
  flex: 1;
}
#make .floor-dimensions input,
#make .floor-dimensions select {
  width: 100%;
  min-width: 70px;
  min-height: 44px;
  box-sizing: border-box;
  font: inherit;
}
#make .floor-plan {
  display: grid;
  gap: 2px;
  max-width: 300px;
  margin: 12px auto;
}
#make .floor-plan span {
  aspect-ratio: 1;
  border: 1px solid #6d654e;
}
#make .floor-plan .ready {
  background: #aaca78;
}
#make .floor-plan .existing {
  background: #be9966;
}
#make .floor-plan .blocked {
  background:
    linear-gradient(
      45deg,
      #e0d8c3 43%,
      #865c4c 44% 56%,
      #e0d8c3 57%);
}
#floor-progress {
  position: absolute;
  left: 50%;
  top: 70px;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
  padding: 6px 10px;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 7px;
  zoom: var(--ui);
  font: 700 12px var(--read);
}
#floor-progress[hidden] {
  display: none;
}
#floor-progress button {
  min-height: 44px;
}
#make .gs-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 10px 0;
  max-height: 180px;
  overflow: auto;
}
#make .gs-item {
  min-height: 44px;
  white-space: normal;
  overflow-wrap: anywhere;
}
#make .gs-transfer {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}
#make .gs-transfer label {
  display: grid;
  gap: 4px;
}
#make .gs-amount {
  width: 100px;
  min-height: 44px;
  box-sizing: border-box;
  font: inherit;
}
#make .gs-mode,
#make .gs-use,
#make .gs-retry {
  min-height: 44px;
}
#make .gs-history {
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.7;
}
#make .floor-confirm,
#make .gs-controls {
  flex: 0 0 auto;
  border-top: 1px solid #c9a25a;
  padding-top: 8px;
}
#make .floor-confirm {
  display: flex;
  align-items: center;
  gap: 10px;
}
#make .floor-confirm p {
  flex: 1;
  margin: 0;
  font-size: 12px;
}
#make .floor-use {
  min-height: 44px;
  flex-shrink: 0;
}
#make .gs-selected {
  margin: 0 0 6px;
  font-size: 12px;
}
#make .gs-note {
  margin: 4px 0 0;
  font-size: 12px;
}
#make .gs-note:empty {
  display: none;
}
#make .gs-transfer label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wm-flight .wf-repeat {
  align-self: flex-start;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  font: 700 12px/1.3 var(--read);
  padding: 5px 7px;
}
.chat-translation {
  display: inline;
}
.chat-original-toggle {
  font: inherit;
  font-size: 10px;
  color: #ffe39a;
  background: #3c3426;
  border: 1px solid #9e8a62;
  border-radius: 4px;
  padding: 2px 5px;
  cursor: pointer;
}
.chat-original:not([hidden]) + .chat-translation {
  display: block;
}
#inventory-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
#inventory-foot .pix-wallet {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 3px 8px;
  border: 2px solid #604474;
  border-radius: 6px;
  background: #251b37;
  color: #f9e8ff;
  font: 16px/1 var(--blocks);
  white-space: nowrap;
  cursor: pointer;
}
#panel:is(.bag8, .bag10) #inventory-foot .pix-wallet {
  min-height: 36px;
}
#panel.bag8 #tab-inventory > #inventory-foot {
  grid-row: auto;
  grid-column: 1 / -1;
  justify-self: stretch;
  justify-content: flex-end;
}
.pix-discovery {
  position: fixed;
  z-index: 180;
  top: max(64px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(340px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 20px 24px 16px;
  text-align: center;
  border: 2px solid #f9d78b;
  border-radius: 16px;
  background:
    radial-gradient(
      ellipse at 50% 0%,
      #553975,
      #171324 75%);
  color: #fff5df;
  box-shadow:
    0 0 0 4px #21172b,
    0 0 42px #a074ce88,
    0 12px 35px #0009;
  pointer-events: none;
  animation: pix-arrive .65s ease-out;
}
.pix-discovery-badge {
  display: grid;
  place-items: center;
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto 8px;
  border: 1px solid #d0a8ed;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      #e8b9ff44,
      transparent 70%);
  box-shadow: 0 0 22px #be8fd577, inset 0 0 16px #d0a8ed33;
}
.pix-discovery-badge::before,
.pix-discovery-badge::after {
  content: "✦";
  position: absolute;
  color: #ffe6a3;
  font-size: 24px;
  top: 7px;
  left: -16px;
  animation: pix-star 1.6s ease-in-out 4 alternate;
}
.pix-discovery-badge::after {
  top: auto;
  left: auto;
  bottom: 0;
  right: -18px;
  animation-delay: .3s;
  font-size: 32px;
}
.pix-discovery-badge canvas {
  width: 72px !important;
  height: 72px !important;
  image-rendering: pixelated;
  filter: drop-shadow(0 4px 8px #0008);
}
.pix-discovery strong,
.pix-discovery b {
  display: block;
  line-height: 1.2;
}
.pix-discovery strong {
  font-size: 23px;
  color: #fff5df;
}
.pix-discovery b {
  font-size: 30px;
  color: #ffe3a2;
  margin: 6px 0;
}
.pix-discovery p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: #eedcf9;
}
.pix-discovery > button {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  color: #fff5df;
  background: transparent;
  border: 0;
  font-size: 26px;
  pointer-events: auto;
  cursor: pointer;
}
@keyframes pix-arrive {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-15px) scale(.88);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes pix-star {
  from {
    opacity: .45;
    transform: scale(.75);
  }
  to {
    opacity: 1;
    transform: scale(1.1);
  }
}
@media (max-height: 500px) {
  .pix-discovery {
    top: 12px;
    padding: 12px 44px 12px 100px;
    min-height: 105px;
    width: min(420px, calc(100vw - 32px));
  }
  .pix-discovery-badge {
    position: absolute;
    left: 14px;
    top: 14px;
    width: 68px;
    height: 68px;
    margin: 0;
  }
  .pix-discovery-badge canvas {
    width: 48px !important;
    height: 48px !important;
  }
  .pix-discovery strong {
    font-size: 18px;
  }
  .pix-discovery b {
    font-size: 24px;
  }
  .pix-discovery p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pix-discovery,
  .pix-discovery-badge::before,
  .pix-discovery-badge::after {
    animation: none;
  }
}
.legendary-discovery {
  --find-color:#ac82ec;
  position: fixed;
  z-index: 179;
  left: 50%;
  top: max(76px, env(safe-area-inset-top));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(460px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 18px 44px 18px 20px;
  border: 2px solid #dfbd75;
  border-radius: 5px;
  background:
    linear-gradient(
      120deg,
      #231a32,
      #171421 65%,
      #302338);
  color: #fff5df;
  box-shadow:
    0 0 0 3px #15121e,
    0 0 0 4px #786047,
    0 8px 26px #0009;
  pointer-events: none;
  animation: legendary-arrive .55s ease-out;
}
.legendary-discovery:before,
.legendary-discovery:after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 2px;
  background:
    linear-gradient(
      90deg,
      transparent,
      #e9d392,
      transparent);
  top: 5px;
  pointer-events: none;
}
.legendary-discovery:after {
  top: auto;
  bottom: 5px;
}
.legendary-emblem {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 78px;
  height: 78px;
  border: 1px solid var(--find-color);
  border-radius: 5px;
  background:
    radial-gradient(
      circle,
      #79608266,
      #16131f 75%);
  box-shadow: 0 0 20px color-mix(in srgb, var(--find-color) 35%, transparent);
}
.legendary-emblem:before,
.legendary-emblem:after {
  content: "✦";
  position: absolute;
  color: #ffe6a4;
  font-size: 21px;
  top: -13px;
  left: -10px;
  animation: legendary-spark 1.2s ease-out 2;
}
.legendary-emblem:after {
  top: auto;
  left: auto;
  bottom: -12px;
  right: -10px;
  animation-delay: .2s;
}
.legendary-emblem canvas {
  width: 64px !important;
  height: 64px !important;
  image-rendering: pixelated;
  filter: drop-shadow(0 3px 2px #0008);
}
.legendary-words {
  min-width: 0;
  font-family: var(--read,Arial,sans-serif);
}
.legendary-words > span {
  display: block;
  color: #f4d69b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  line-height: 1.5;
}
.legendary-words > strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  margin: 5px 0;
  overflow-wrap: anywhere;
  color: #fff5eb;
}
.legendary-words > p {
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.4;
  color: #d5c9e4;
}
.legendary-discovery > button {
  position: absolute;
  right: 0;
  top: 0;
  width: 44px;
  height: 44px;
  color: #e6d7ed;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 24px;
  pointer-events: auto;
  cursor: pointer;
}
.m-pixfind {
  color: #ffe8ae;
  border-left: 3px solid #c497ee;
  padding-left: 6px;
  font-weight: bold;
}
@keyframes legendary-arrive {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-12px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}
@keyframes legendary-spark {
  0% {
    opacity: .2;
    transform: scale(.5);
  }
  45% {
    opacity: 1;
    transform: scale(1.25);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@media (max-width: 480px), (max-height: 500px) {
  .legendary-discovery {
    gap: 12px;
    padding: 12px 40px 12px 14px;
    top: max(14px, env(safe-area-inset-top));
  }
  .legendary-emblem {
    flex-basis: 54px;
    height: 54px;
  }
  .legendary-emblem canvas {
    width: 46px !important;
    height: 46px !important;
  }
  .legendary-words > strong {
    font-size: 17px;
  }
  .legendary-words > span {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .legendary-words > p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .legendary-discovery,
  .legendary-emblem:before,
  .legendary-emblem:after {
    animation: none;
  }
}
#tab-inventory > .pix-hunt-progress {
  display: block;
  width: 100%;
  margin: 8px 0 0;
  text-align: left;
  white-space: normal;
  border: 1px solid #956326;
  border-radius: 5px;
  background: #332719;
  color: #ffe2a1;
  font: 14px/1.35 var(--blocks);
  padding: 6px;
  cursor: pointer;
}
#tab-inventory > .pix-hunt-detail {
  margin: 4px 0 0;
  color: #f8eaca;
  font: 13px/1.4 sans-serif;
}
.pix-discovery-badge > canvas {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
}
#cooking-plan {
  padding: 6px 9px;
  border: 2px solid #6a4827;
  border-radius: 8px;
  background: var(--paper,#fff1cf);
  color: var(--ink,#2b1d0e);
  font: 12px var(--read,sans-serif);
}
#cooking-plan[hidden] {
  display: none;
}
#cooking-plan summary {
  cursor: pointer;
  font-weight: bold;
  overflow-wrap: anywhere;
}
.cooking-plan-quantity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 6px 0;
}
.cooking-plan-quantity input {
  width: 64px;
  min-width: 0;
  color: inherit;
  background: #fff8e9;
  border: 1px solid #806018;
  border-radius: 3px;
  padding: 4px;
  font: inherit;
}
.cooking-plan-ingredients {
  margin: 5px 0;
  padding: 0;
  list-style: none;
}
.cooking-plan-ingredients li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 0;
}
.cooking-plan-ingredients b {
  white-space: nowrap;
}
.cooking-plan-ingredients .ready {
  color: #28562c;
}
.cooking-plan-ingredients .short {
  color: #824022;
}
.cooking-plan-note {
  display: block;
  line-height: 1.35;
}
#cooking-plan .cooking-plan-clear {
  display: block;
  margin-top: 5px;
  font: inherit;
}
#make .cooking-pin {
  display: block;
  margin-top: 5px;
  padding: 3px 8px;
  font: 11px var(--read);
  color: var(--ink);
  background: #f7e5bc;
  border: 1px solid #806018;
  border-radius: 4px;
  cursor: pointer;
}
#make .cooking-pin[aria-pressed=true] {
  background: #d2e2b9;
}
#cooking-plan :focus-visible,
#make .cooking-pin:focus-visible {
  outline: 2px solid #806018;
  outline-offset: 2px;
}
#carpentry-plan {
  margin-top: 6px;
  padding: 6px 9px;
  border: 2px solid #6a4827;
  border-radius: 8px;
  background: var(--paper,#fff1cf);
  color: var(--ink,#2b1d0e);
  font: 12px var(--read,sans-serif);
  pointer-events: auto;
}
#carpentry-plan[hidden] {
  display: none;
}
#carpentry-plan summary {
  cursor: pointer;
  font-weight: bold;
  overflow-wrap: anywhere;
}
.carpentry-plan-piece {
  margin: 6px 0 0;
  padding: 4px 0 0;
  border-top: 1px dashed #b8925a;
}
.carpentry-plan-piece:first-child {
  border-top: 0;
  padding-top: 0;
}
.carpentry-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.carpentry-plan-head strong {
  overflow-wrap: anywhere;
}
#carpentry-plan .carpentry-plan-close {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #806018;
  border-radius: 4px;
  background: #f7e5bc;
  color: inherit;
  font: 700 14px/1 var(--read,sans-serif);
  cursor: pointer;
}
.carpentry-plan-needs {
  margin: 3px 0 0;
  padding: 0;
  list-style: none;
}
.carpentry-plan-needs li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 1px 0;
}
.carpentry-plan-needs b {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.carpentry-plan-needs .ready {
  color: #28562c;
}
.carpentry-plan-needs .short {
  color: #824022;
}
.carpentry-plan-ready {
  display: block;
  color: #28562c;
  font-weight: bold;
}
.carpentry-plan-note {
  display: block;
  margin-top: 5px;
  line-height: 1.35;
  opacity: .85;
}
#carpentry-plan :focus-visible {
  outline: 2px solid #806018;
  outline-offset: 2px;
}
#hud-left > #carpentry-plan .carpentry-plan-body {
  max-height: min(290px, 34dvh);
  overflow: auto;
}
#make .blueprint .build-plan {
  align-self: center;
  margin-top: 4px;
  padding: 1px 9px;
  border: 1px solid #806018;
  border-radius: 4px;
  background: #f7e5bc;
  color: #2b1d0e;
  font: 700 11px/18px var(--read,sans-serif);
  cursor: pointer;
}
#make .blueprint .build-plan:hover {
  background: #fff3d2;
}
#make .blueprint .build-plan.on {
  background: #d2e2b9;
  border-color: #3a7f4b;
}
#make .blueprint .build-plan:focus-visible {
  outline: 2px solid #387849;
  outline-offset: 2px;
}
#make[data-pictures=list] .blueprint .build-plan {
  margin: 0 0 0 6px;
  flex: none;
}
#make .build-plan-chosen[aria-pressed=true] {
  background: linear-gradient(#e2efcf, #c9dcae) !important;
}
#make .make-all {
  display: block;
  flex: none;
  margin: 6px 0 0;
  padding: 5px 8px;
  border: 1px solid #b8925a;
  border-radius: 6px;
  background: rgb(255 248 220 / 75%);
  color: #2b1d0e;
}
#make .make-all summary {
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 22px;
}
#make .make-all-what {
  font-weight: normal;
}
#make .make-all-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
}
#make .make-all-pick {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 220px;
  min-width: 0;
  font-weight: bold;
}
#make .make-all-pick select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  min-height: 30px;
  font: inherit;
  font-weight: normal;
}
#make .make-all-go {
  min-height: 30px;
  padding: 3px 12px;
  font-weight: bold;
  white-space: nowrap;
}
#make .make-all-time {
  flex: 1 1 100%;
  margin: 0;
  font-size: 12px;
  color: #5a4020;
}
#make .make-all-time.long {
  color: #a5371f;
}
#skill-goal-ledger[hidden] {
  display: none;
}
#skill-goal-ledger .ledger-sum {
  margin: 2px 0 4px;
  font-weight: bold;
}
#skill-goal-ledger .ledger-list {
  max-height: 220px;
  overflow: auto;
  margin: 0;
  padding: 0;
  list-style: none;
}
#skill-goal-ledger .ledger-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 2px 0;
  border-bottom: 1px dotted rgb(128 96 24 / 35%);
}
#skill-goal-ledger .ledger-list img {
  width: 24px;
  height: 24px;
  image-rendering: pixelated;
}
#skill-goal-ledger .ledger-what {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#skill-goal-ledger .ledger-mark {
  opacity: .8;
}
#skill-goal-ledger .reached .ledger-mark {
  opacity: 1;
  color: #7a4f10;
}
#skill-goal-ledger .ledger-count {
  font-variant-numeric: tabular-nums;
}
#skill-goal-ledger .ledger-note {
  margin: 4px 0 0;
  font-size: 12px;
  opacity: .85;
}
@media (max-width: 760px), (pointer: coarse) {
  #carpentry-plan {
    font-size: 11px;
    padding: 3px 6px;
  }
  #carpentry-plan summary {
    min-height: 28px;
    line-height: 1.4;
    display: list-item;
    padding-top: 5px;
  }
  .carpentry-plan-body {
    max-height: 25dvh;
    overflow: auto;
    touch-action: pan-y;
  }
  #carpentry-plan .carpentry-plan-close {
    width: 32px;
    height: 32px;
  }
  #make .blueprint .build-plan {
    min-height: 28px;
    line-height: 26px;
  }
  #make .make-all select,
  #make .make-all-go {
    min-height: 40px;
  }
}
@media (max-width: 760px), (pointer: coarse) {
  #cooking-plan {
    font-size: 11px;
    padding: 3px 6px;
  }
  #cooking-plan summary {
    min-height: 28px;
    line-height: 1.4;
    display: list-item;
    padding-top: 5px;
  }
  .cooking-plan-body {
    max-height: 25dvh;
    overflow: auto;
    touch-action: pan-y;
  }
  #cooking-plan button,
  #cooking-plan input,
  #make .cooking-pin {
    min-height: 32px;
  }
}
#messages[data-show=zh] > :not([data-ch=zh]):not([data-update]),
#messages[data-show=world] > [data-ch=zh],
#messages[data-show=chat] > [data-ch=zh],
#messages[data-show=guild] > [data-ch=zh],
#messages[data-show=game] > [data-ch=zh],
#messages[data-show=private] > [data-ch=zh] {
  display: none;
}
.m-zh {
  color: #ccefc9;
}
#zh-unread {
  margin-left: 3px;
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  padding: 0 3px;
}
#messages[data-show=trade] > :not([data-ch=trade]):not([data-update]),
#messages[data-show=world] > [data-ch=trade],
#messages[data-show=chat] > [data-ch=trade],
#messages[data-show=zh] > [data-ch=trade],
#messages[data-show=guild] > [data-ch=trade],
#messages[data-show=game] > [data-ch=trade],
#messages[data-show=private] > [data-ch=trade] {
  display: none;
}
.m-trade {
  color: #f3d9a4;
}
#trade-unread {
  margin-left: 3px;
  border-radius: 8px;
  background: var(--honey);
  color: var(--ink);
  padding: 0 3px;
}
#trade-unread[hidden] {
  display: none;
}
#messages[data-show=party] > :not([data-ch=party]):not([data-update]),
#messages[data-show=world] > [data-ch=party],
#messages[data-show=chat] > [data-ch=party],
#messages[data-show=trade] > [data-ch=party],
#messages[data-show=zh] > [data-ch=party],
#messages[data-show=guild] > [data-ch=party],
#messages[data-show=game] > [data-ch=party],
#messages[data-show=private] > [data-ch=party] {
  display: none;
}
.m-party {
  color: #f0c2ff;
}
#party-unread {
  margin-left: 3px;
  border-radius: 8px;
  background: #e47cff;
  color: var(--ink);
  padding: 0 3px;
}
#party-unread[hidden] {
  display: none;
}
#zh-unread[hidden] {
  display: none;
}
#make[data-kind=saw] h3 {
  flex-wrap: wrap;
  gap: 4px;
}
#make[data-kind=saw] h3 .now + .now {
  margin-left: 0;
}
#ui-notice {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 29;
  max-width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 7px 12px 8px;
  background: #fffaee;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 7px;
  corner-shape: bevel;
  box-shadow: 0 3px 0 rgba(43, 29, 14, 0.38);
  font: 700 13px/1.35 var(--read);
  text-align: center;
  cursor: pointer;
  animation: ui-notice-in .25s ease-out;
}
#ui-notice[hidden] {
  display: none;
}
@keyframes ui-notice-in {
  from {
    opacity: 0;
    transform: translate(-50%, -6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  #ui-notice {
    animation: none;
  }
}
@media (max-width: 767px), (pointer: coarse) {
  #ui-notice {
    top: calc(max(8px, env(safe-area-inset-top)) + 120px);
    font-size: 12px;
    z-index: 7;
  }
}
.window details.make-how {
  margin: 2px 0 8px;
}
.window details.make-how > summary {
  display: inline-block;
  cursor: pointer;
  font: 800 12px/1.4 var(--read);
  color: var(--leaf-deep);
  list-style: none;
}
.window details.make-how > summary::-webkit-details-marker {
  display: none;
}
.window details.make-how > summary::before {
  content: "▸ ";
}
.window details.make-how[open] > summary::before {
  content: "▾ ";
}
.window details.make-how > summary:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: 2px;
}
.window details.make-how > p {
  margin: 4px 0 0;
}
#game #hotbar > .hslot.shield-active {
  outline: 2px solid #72dfef !important;
  outline-offset: -3px !important;
}
#game #hotbar > .hslot.shield-active .sp {
  color: #b7f5ff !important;
}
#make[data-kind=floor-area] .floor-move {
  cursor: move;
  touch-action: none;
  user-select: none;
  min-height: 32px;
  display: flex;
  align-items: center;
  padding-right: 32px;
}
#make[data-kind=floor-area] .floor-move:focus-visible {
  outline: 2px solid #d4ae4f;
  outline-offset: 2px;
}
#make[data-kind=floor-area] .floor-view {
  align-self: flex-start;
  min-height: 40px;
  margin: 0 0 8px;
  flex: none;
}
#make[data-kind=floor-area][data-floor-folded=true] > :is(.rows, .floor-confirm) {
  display: none !important;
}
#make[data-kind=floor-area][data-floor-folded=true] .floor-view {
  margin-bottom: 0;
}
#game#game#game #hud .bar.mana.pool-rage #mana-fill {
  background:
    linear-gradient(
      180deg,
      #ffd59a 0 1px,
      #f28a2e 1px,
      #cf5a1e 60%,
      #9a3a12) !important;
  box-shadow: 0 0 8px rgb(242 138 46 / .45) !important;
}
#game#game#game #hud .bar.mana.pool-focus #mana-fill {
  background:
    linear-gradient(
      180deg,
      #e2f5b8 0 1px,
      #8fc24e 1px,
      #5e9a36 60%,
      #3c6e22) !important;
  box-shadow: 0 0 8px rgb(143 194 78 / .4) !important;
}
#game#game#game #hud .bar.mana:is(.pool-rage, .pool-focus) #mana-text::before {
  content: none !important;
}
#mana-text .rage-word {
  font-style: normal;
}
#hotbar .hslot.pooled .cost {
  display: block;
  position: absolute;
  right: 1px;
  bottom: 1px;
  z-index: 1;
  padding: 1px 2px;
  border-radius: 3px;
  font: 8px/10px var(--blocks);
  color: #fff7e6;
  pointer-events: none;
}
#hotbar .hslot.pooled.pool-rage .cost {
  background: rgba(160, 58, 18, .92);
}
#hotbar .hslot.pooled.pool-focus .cost {
  background: rgba(58, 110, 34, .92);
}
#hotbar .hslot.pooled.norage .cost {
  background: rgba(70, 28, 20, .95);
  color: #ffb3a0;
}
#hotbar .hslot.ready-pop {
  animation: technique-ready .32s steps(4) 1;
}
@keyframes technique-ready {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 220, 150, .0);
  }
  40% {
    box-shadow: 0 0 0 3px rgba(255, 220, 150, .85);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 220, 150, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  #hotbar .hslot.ready-pop {
    animation: none;
    outline: 2px solid rgba(255, 220, 150, .8);
  }
}
.m-skill99 {
  font-weight: bold;
}
.m-skill99 .rainbow-0 {
  color: #ff9696;
}
.m-skill99 .rainbow-1 {
  color: #ffc078;
}
.m-skill99 .rainbow-2 {
  color: #ffe883;
}
.m-skill99 .rainbow-3 {
  color: #a0e9a3;
}
.m-skill99 .rainbow-4 {
  color: #92dcff;
}
.m-skill99 .rainbow-5 {
  color: #b9b1ff;
}
.m-skill99 .rainbow-6 {
  color: #f2a9e5;
}
#messages > .m-jailnotice[data-update="1"] {
  color: #ff8585;
  font-weight: bold;
  border-left: 3px solid #ed5252;
  padding-left: 6px;
}
#worldmap {
  box-shadow:
    0 10px 24px #24180f66,
    0 3px 0 #51381f,
    inset 0 1px 0 #fff9df;
}
#worldmap .mapwrap {
  box-shadow: 0 1px 0 #fff5d3, 0 -1px 0 #6d502b;
}
#worldmap .mapwrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 2px 6px #20181055;
  z-index: 3;
}
#worldmap .sub {
  padding-right: 34px;
}
#wm-resize {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: nwse-resize;
  touch-action: none;
  user-select: none;
  z-index: 5;
  font: 22px/1 sans-serif;
}
#wm-resize:focus-visible {
  outline: 2px solid var(--honey);
  outline-offset: -3px;
}
.friend-request-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  padding: 1px 4px;
  margin-left: 4px;
  border-radius: 9px;
  background: #a43e26;
  color: #fff3cd;
  font-size: 12px;
  line-height: 1.35;
  border: 1px solid #efc374;
}
.friend-request-count[hidden],
.friend-requests[hidden] {
  display: none;
}
.friend-requests {
  padding: 8px;
  margin-bottom: 10px;
  border: 1px solid #b68b4c;
  background: rgba(236, 194, 111, .12);
  border-radius: 5px;
}
.friend-requests h3 {
  margin: 0 0 7px;
  font-size: 14px;
}
.friend-request {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 5px 0;
}
.friend-request strong {
  overflow-wrap: anywhere;
  min-width: 0;
}
.friend-request-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
#friends .friend-request-actions button {
  min-height: 40px;
  padding: 5px 12px;
}
[data-tab=friends] > .friend-request-count {
  position: absolute;
  right: -5px;
  top: -7px;
  margin: 0;
  pointer-events: none;
  z-index: 2;
}
[data-tab=friends]:has(.friend-request-count:not([hidden])) > .plot-attention {
  top: auto;
  bottom: -6px;
}
#wm-find {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font: 700 12px var(--read);
}
#wm-find input {
  flex: 1;
  width: 110px;
  min-width: 70px;
  height: 32px;
  padding: 3px 7px;
  font: 16px var(--read);
}
#wm-find button {
  min-width: 32px;
  min-height: 32px;
  padding: 3px 8px;
  font: 700 12px var(--read);
}
#wm-find [hidden],
#wm-find-pin[hidden] {
  display: none;
}
#wm-chat-spot {
  position: absolute;
  z-index: 5;
  left: 50%;
  bottom: 40px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100% - 16px);
  padding: 4px 4px 4px 10px;
  background: var(--parchment);
  border: 1px solid var(--brown);
  border-radius: 4px;
  box-shadow: 0 2px 6px #20181066;
  font: 600 12px var(--read);
  color: var(--brown);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#wm-chat-spot[hidden] {
  display: none;
}
#wm-chat-spot button {
  min-height: 0;
  padding: 3px 8px;
  font: inherit;
}
#wm-find-status {
  flex-basis: 100%;
  color: #922b23;
}
#wm-find input[aria-invalid=true] {
  outline: 2px solid #922b23;
}
#wm-find-pin {
  position: absolute;
  z-index: 4;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  border: 3px solid #fff5d3;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #9b3b16, 0 2px 6px #20181099;
  pointer-events: none;
}
#wm-find-pin::before,
#wm-find-pin::after {
  content: "";
  position: absolute;
  background: #9b3b16;
}
#wm-find-pin::before {
  width: 2px;
  height: 28px;
  left: 6px;
  top: -7px;
}
#wm-find-pin::after {
  height: 2px;
  width: 28px;
  top: 6px;
  left: -7px;
}
#make .hunting-difficulties {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
#make[data-kind=hunting] .rows > .sub {
  grid-column: 1 / -1;
}
@media (max-width: 500px) {
  #make .hunting-difficulties {
    grid-template-columns: 1fr;
  }
}
#banned-dialog .bp-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0;
}
#banned-dialog .bp-tabs button[aria-pressed=true] {
  outline: 2px solid #bca56b;
  outline-offset: 1px;
}
.oath-ring.oath-hardcore {
  background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNCAxNCIgd2lkdGg9IjE0IiBoZWlnaHQ9IjE0IiBzaGFwZS1yZW5kZXJpbmc9ImNyaXNwRWRnZXMiPjxyZWN0IHg9IjQiIHk9IjAiIHdpZHRoPSI2IiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSIyIiB5PSIxIiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iNCIgeT0iMSIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iI2ZmZTBiYyIvPjxyZWN0IHg9IjgiIHk9IjEiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZjY1NWYiLz48cmVjdCB4PSIxMCIgeT0iMSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjEiIHk9IjIiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSIyIiB5PSIyIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBmaWxsPSIjZmZlMGJjIi8+PHJlY3QgeD0iNSIgeT0iMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iIzg1MWMzOCIvPjxyZWN0IHg9IjkiIHk9IjIiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZjY1NWYiLz48cmVjdCB4PSIxMCIgeT0iMiIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iI2RiMzQ0YiIvPjxyZWN0IHg9IjEyIiB5PSIyIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMSIgeT0iMyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjIiIHk9IjMiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmUwYmMiLz48cmVjdCB4PSI0IiB5PSIzIiB3aWR0aD0iNCIgaGVpZ2h0PSIxIiBmaWxsPSIjODUxYzM4Ii8+PHJlY3QgeD0iOCIgeT0iMyIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iI2RiMzQ0YiIvPjxyZWN0IHg9IjEyIiB5PSIzIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMCIgeT0iNCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjEiIHk9IjQiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmUwYmMiLz48cmVjdCB4PSIzIiB5PSI0IiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjODUxYzM4Ii8+PHJlY3QgeD0iNSIgeT0iNCIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjkiIHk9IjQiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiIGZpbGw9IiNkYjM0NGIiLz48cmVjdCB4PSIxMiIgeT0iNCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzg1MWMzOCIvPjxyZWN0IHg9IjEzIiB5PSI0IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMCIgeT0iNSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjEiIHk9IjUiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmUwYmMiLz48cmVjdCB4PSIyIiB5PSI1IiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjODUxYzM4Ii8+PHJlY3QgeD0iNCIgeT0iNSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjkiIHk9IjUiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSIxMCIgeT0iNSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iI2ZmNjU1ZiIvPjxyZWN0IHg9IjEyIiB5PSI1IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjODUxYzM4Ii8+PHJlY3QgeD0iMTMiIHk9IjUiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSIwIiB5PSI2IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMSIgeT0iNiIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2ZmZTBiYyIvPjxyZWN0IHg9IjIiIHk9IjYiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiM4NTFjMzgiLz48cmVjdCB4PSI0IiB5PSI2IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iOSIgeT0iNiIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjEwIiB5PSI2IiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjZmY2NTVmIi8+PHJlY3QgeD0iMTIiIHk9IjYiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM4NTFjMzgiLz48cmVjdCB4PSIxMyIgeT0iNiIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjAiIHk9IjciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSIxIiB5PSI3IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjZmZlMGJjIi8+PHJlY3QgeD0iMiIgeT0iNyIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzg1MWMzOCIvPjxyZWN0IHg9IjQiIHk9IjciIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSI5IiB5PSI3IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMTAiIHk9IjciIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmUwYmMiLz48cmVjdCB4PSIxMiIgeT0iNyIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzg1MWMzOCIvPjxyZWN0IHg9IjEzIiB5PSI3IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMCIgeT0iOCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjEiIHk9IjgiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZjY1NWYiLz48cmVjdCB4PSIyIiB5PSI4IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjODUxYzM4Ii8+PHJlY3QgeD0iMyIgeT0iOCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iI2RiMzQ0YiIvPjxyZWN0IHg9IjQiIHk9IjgiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSI5IiB5PSI4IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMTAiIHk9IjgiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmUwYmMiLz48cmVjdCB4PSIxMiIgeT0iOCIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzg1MWMzOCIvPjxyZWN0IHg9IjEzIiB5PSI4IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMCIgeT0iOSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjEiIHk9IjkiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZjY1NWYiLz48cmVjdCB4PSIzIiB5PSI5IiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjZGIzNDRiIi8+PHJlY3QgeD0iNSIgeT0iOSIgd2lkdGg9IjQiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjkiIHk9IjkiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmUwYmMiLz48cmVjdCB4PSIxMSIgeT0iOSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzg1MWMzOCIvPjxyZWN0IHg9IjEzIiB5PSI5IiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMSIgeT0iMTAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSIyIiB5PSIxMCIgd2lkdGg9IjMiIGhlaWdodD0iMSIgZmlsbD0iI2RiMzQ0YiIvPjxyZWN0IHg9IjUiIHk9IjEwIiB3aWR0aD0iMiIgaGVpZ2h0PSIxIiBmaWxsPSIjZmY2NTVmIi8+PHJlY3QgeD0iNyIgeT0iMTAiIHdpZHRoPSIzIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZmUwYmMiLz48cmVjdCB4PSIxMCIgeT0iMTAiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiM4NTFjMzgiLz48cmVjdCB4PSIxMiIgeT0iMTAiIHdpZHRoPSIxIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSIxIiB5PSIxMSIgd2lkdGg9IjEiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjIiIHk9IjExIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBmaWxsPSIjZGIzNDRiIi8+PHJlY3QgeD0iNSIgeT0iMTEiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiNmZjY1NWYiLz48cmVjdCB4PSI3IiB5PSIxMSIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iI2ZmZTBiYyIvPjxyZWN0IHg9IjkiIHk9IjExIiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiBmaWxsPSIjODUxYzM4Ii8+PHJlY3QgeD0iMTIiIHk9IjExIiB3aWR0aD0iMSIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHJlY3QgeD0iMiIgeT0iMTIiIHdpZHRoPSIyIiBoZWlnaHQ9IjEiIGZpbGw9IiM0MjE1MjEiLz48cmVjdCB4PSI0IiB5PSIxMiIgd2lkdGg9IjYiIGhlaWdodD0iMSIgZmlsbD0iIzg1MWMzOCIvPjxyZWN0IHg9IjEwIiB5PSIxMiIgd2lkdGg9IjIiIGhlaWdodD0iMSIgZmlsbD0iIzQyMTUyMSIvPjxyZWN0IHg9IjQiIHk9IjEzIiB3aWR0aD0iNiIgaGVpZ2h0PSIxIiBmaWxsPSIjNDIxNTIxIi8+PHBhdGggZD0iTTcgNGgxdjJoMXYxSDh2Mkg3VjdINlY2aDF6IiBmaWxsPSIjZmZmMWM5Ii8+PC9zdmc+Cg==);
}
.oath-hardcore-badge {
  background: linear-gradient(#ffe0cc, #eb8c8a);
  color: #5a1025;
}
.oath-hardcore-choice {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.oath-hardcore-choice:has(input:disabled) {
  opacity: .55;
}
#make[data-kind=build] {
  --build-thumb: 72px;
  --build-card: 124px;
}
#make[data-kind=build] .rows:has(.blueprint) {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--build-card), 1fr));
  grid-auto-rows: max-content;
  gap: 8px;
  align-content: start;
}
#make[data-kind=build] .rows > .home-guide {
  grid-column: 1 / -1;
  margin: 0;
}
#make .opt.blueprint {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  padding: 8px 6px;
  min-width: 0;
  text-align: center;
  border-radius: 8px;
  cursor: pointer;
}
#make .opt.blueprint:hover {
  border-color: var(--evergreen);
  background: #fff6dc;
}
#make .thumb {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--build-thumb);
  height: var(--build-thumb);
  border-radius: 6px;
  background:
    radial-gradient(
      closest-side,
      #f3e2b4 0 55%,
      rgb(243 226 180 / 0) 100%);
}
#make .opt.blueprint > .thumb {
  flex: none;
}
#make .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
#make .thumb.wait img {
  visibility: hidden;
}
#make .thumb.none img {
  width: 50%;
  height: 50%;
  image-rendering: pixelated;
  opacity: .35;
}
#make .blueprint .what {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  min-width: 0;
  width: 100%;
}
#make .blueprint .nm {
  display: block;
  font: 800 12.5px/1.25 var(--read);
  color: var(--ink);
  overflow-wrap: anywhere;
}
#make .reqs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 4px;
}
#make .req {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px 1px 3px;
  border-radius: 5px;
  background: #f3e6c4;
  font: 800 12px/1.5 var(--read);
  color: var(--ink);
  white-space: nowrap;
}
#make .req img {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
}
#make .req.skill {
  background: #e3ecd2;
}
#make .req.short {
  background: #f6d5c8;
  color: #a5371f;
  box-shadow: inset 0 0 0 1px #c9634a;
}
#make .blueprint .why {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  font: 700 11px/1.3 var(--read);
  color: #b0462e;
}
#make .blueprint.no .thumb img {
  opacity: .55;
  filter: saturate(.6);
}
#make .blueprint.no .nm {
  color: #8a7a60;
}
#make .build-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
#make .build-head .thumb {
  --build-thumb: 56px;
}
#make .build-info {
  flex: none;
  width: 26px;
  height: 26px;
  min-height: 0;
  padding: 0;
  border-radius: 50%;
  corner-shape: round;
  font: italic 800 14px/1 Georgia, serif;
}
#make .build-info[hidden] {
  display: none;
}
#make .build-info[aria-expanded=true] {
  background: var(--evergreen);
  color: var(--paper);
}
#make .build-about {
  position: fixed;
  inset: auto;
  margin: 0;
  padding: 9px 11px;
  box-sizing: border-box;
  max-height: 50vh;
  overflow: auto;
  background: #fffaf0;
  color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(43, 29, 14, .35);
  font: 600 12.5px/1.45 var(--read);
}
#make .build-about {
  display: none;
}
#make .build-about:popover-open {
  display: block;
}
#make .build-review.about-open .build-about {
  display: block;
  position: static;
  width: auto !important;
  max-height: none;
  box-shadow: none;
}
@media (pointer: coarse) {
  #make .build-info {
    width: 36px;
    height: 36px;
    font-size: 17px;
  }
}
#make .build-needs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 5px;
  margin: 6px 0;
}
#make .build-label {
  font: 800 12px var(--read);
  color: var(--brown);
  margin-right: 2px;
}
#make .req.wide {
  white-space: normal;
  padding-right: 7px;
}
#make .req.wide i {
  font: 600 11px var(--read);
  color: var(--brown);
  opacity: .9;
}
#make .req.wide.short i {
  color: inherit;
}
#make .build-facts {
  margin: 6px 0;
  font: 700 11.5px/1.4 var(--read);
  color: var(--brown);
}
@media (max-width: 899px), (pointer: coarse) {
  #make[data-kind=build] .build-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  #make[data-kind=build] .build-filters button {
    flex: none;
    white-space: nowrap;
  }
  #make[data-kind=build] .build-target {
    display: none;
  }
}
@media (max-width: 600px) {
  #make[data-kind=build] {
    --build-thumb: 60px;
    --build-card: 98px;
  }
  #make .req {
    font-size: 11.5px;
  }
  #make .req img {
    width: 16px;
    height: 16px;
  }
}
