:root {
  color-scheme: dark;
  --ink: #edf0d8;
  --muted: #acbeb0;
  --gold: #e8c78d;
  --line: #b8c29935;
  --panel: #152d31f7;
  --green: #9ac9a1;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #142c33;
  color: var(--ink);
  height: 100dvh;
  touch-action: none;
}
button,
a,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #20383bdc;
  border-radius: 4px;
  min-height: 44px;
  padding: 10px 14px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover {
  background: #35504e;
  border-color: #d2d6b780;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button.primary {
  background: #e6c38a;
  color: #263a37;
  border-color: #ffe6b9;
  font-weight: 650;
}
button.primary:hover {
  background: #f6dba7;
}
button.primary span {
  float: right;
}
button.text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
kbd {
  font:
    10px ui-monospace,
    monospace;
  color: #cfdbc0;
  background: #dae8c910;
  border: 1px solid #cdddba30;
  border-radius: 3px;
  padding: 3px 5px;
  margin-left: 5px;
}
small,
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.8px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
#world {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  touch-action: none;
}
.screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
#title {
  background: linear-gradient(90deg, #0e282e8c, #1632320d 80%);
}
.title-card {
  position: relative;
  width: 470px;
  text-align: center;
  padding: 46px 50px 24px;
  border: 1px solid #dce1ba66;
  background: linear-gradient(145deg, #173238f2, #1c3735e8);
  box-shadow:
    0 0 0 6px #17303877,
    0 20px 100px #0a1e29a0;
  backdrop-filter: blur(8px);
}
.title-card::after {
  position: absolute;
  inset: 8px;
  content: "";
  border: 1px solid #d3d8ad20;
  pointer-events: none;
}
.title-card .eyebrow {
  letter-spacing: 3px;
  font-size: 9px;
  color: #c6d4b4;
}
.title-star {
  font-size: 38px;
  color: #eac991;
  margin: 22px 0 3px;
}
h1 {
  font:
    normal 68px Georgia,
    serif;
  letter-spacing: -3px;
  margin: 0 0 12px;
  color: #f6e3b9;
  text-shadow: 0 3px #112629;
}
.tagline {
  font:
    italic 18px Georgia,
    serif;
  color: #d8dfbf;
  margin: 0;
}
.title-rule {
  height: 1px;
  background: linear-gradient(90deg, transparent, #c3c79488, transparent);
  margin: 25px 0;
}
.intro {
  font:
    14px/1.8 ui-sans-serif,
    system-ui;
  color: #b6c7b9;
  margin: 0 0 27px;
}
.title-card .primary {
  width: 100%;
  text-align: left;
}
.title-card #saveHint {
  font-size: 11px;
  color: #a9bdae;
  margin: 12px 0 0;
}
.title-footer {
  font-size: 9px;
  letter-spacing: 2.5px;
  color: #8da79d;
  margin-top: 22px;
}
.title-caption {
  position: absolute;
  bottom: 30px;
  left: 36px;
  font-size: 10px;
  letter-spacing: 2px;
}
.title-caption span {
  margin-left: 25px;
  opacity: 0.5;
}
.home-link {
  position: absolute;
  left: 32px;
  top: 27px;
  color: #e2e3c7;
  text-decoration: none;
  font-size: 12px;
}
.brand {
  position: absolute;
  left: 25px;
  top: 23px;
  display: flex;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 3px;
  text-shadow: 0 2px #193239;
}
.brandmark {
  font-size: 30px;
  color: var(--gold);
  line-height: 1;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 1.7px;
  margin-top: 6px;
  color: #d2d8c0;
}
#vitals {
  position: absolute;
  right: 25px;
  top: 22px;
  width: 208px;
  text-shadow: 0 2px #152c33;
}
.vital-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
}
.vital-label small {
  margin-left: auto;
  font-size: 8px;
}
.heart {
  color: #e1a08c;
  font-size: 18px;
}
.meter {
  height: 7px;
  border: 1px solid #1b2c33;
  background: #233c41;
  box-shadow: 0 0 0 1px #c2cdab66;
}
.meter i {
  display: block;
  background: linear-gradient(90deg, #c98478, #edb09a);
  height: 100%;
  width: 100%;
}
.spirit {
  height: 3px;
  margin-top: 5px;
  background: #233d43;
}
.spirit i {
  display: block;
  background: #85bfb7;
  height: 100%;
  width: 100%;
}
.vital-foot {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  letter-spacing: 1px;
  margin-top: 7px;
  color: #c8d3bc;
}
#hotbar {
  position: absolute;
  top: 80px;
  left: 24px;
  display: flex;
  gap: 5px;
}
button.slot {
  position: relative;
  width: 47px;
  height: 47px;
  min-height: 47px;
  padding: 6px;
  background: #173136e8;
  border-color: #b3bb923f;
  box-shadow: inset 0 0 0 2px #0d272c55;
  border-radius: 3px;
}
button.slot.active {
  border-color: #f6d49a;
  background: #3c5146;
  box-shadow:
    0 0 0 1px #e9c38a77,
    inset 0 0 0 3px #ddc38d17;
}
button.slot canvas,
.item-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}
button.slot kbd {
  position: absolute;
  left: 3px;
  top: 3px;
  margin: 0;
  border: 0;
  padding: 0;
  background: none;
  font-size: 8px;
  color: #c1ceba;
}
.quantity {
  position: absolute;
  right: 4px;
  bottom: 3px;
  font-size: 10px;
  text-shadow: 1px 1px #112931;
}
.slot.empty {
  opacity: 0.6;
}
#selectedName {
  position: absolute;
  left: 26px;
  top: 137px;
  color: #f0dbb1;
  font-size: 11px;
  letter-spacing: 0.3px;
  text-shadow: 0 2px #182f33;
}
.top-actions {
  position: absolute;
  right: 25px;
  top: 95px;
  display: flex;
  gap: 6px;
}
.top-actions button {
  font-size: 11px;
  padding: 8px 11px;
  min-height: 36px;
}
.top-actions kbd {
  font-size: 8px;
}
#miniwrap {
  position: absolute;
  right: 25px;
  top: 145px;
  padding: 5px 5px 22px;
  background: #173137df;
  border: 1px solid #b7c59e5c;
  border-radius: 3px;
}
#minimap {
  display: block;
  width: 180px;
  height: 80px;
  image-rendering: pixelated;
}
#coordinates {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 8px;
  letter-spacing: 1px;
  color: #b3c9bb;
}
#objective {
  position: absolute;
  left: 25px;
  bottom: 32px;
  width: 330px;
  background: linear-gradient(90deg, #153136eb, #15313655);
  border-left: 2px solid #d4b581;
  padding: 13px 18px;
}
#objective small {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #d5c399;
}
#objective strong {
  display: block;
  font:
    19px Georgia,
    serif;
  margin-top: 6px;
  color: #f1e4c3;
}
#objective p {
  font-size: 11px;
  line-height: 1.6;
  color: #c1cebb;
  margin: 8px 0 0;
}
#desktopHelp {
  position: absolute;
  right: 23px;
  bottom: 22px;
  font-size: 9px;
  color: #d4dac5;
  text-shadow: 0 2px #213a36;
}
#desktopHelp kbd {
  font-size: 8px;
  margin: 0 2px 0 9px;
}
#toast {
  position: absolute;
  left: 50%;
  bottom: 22%;
  transform: translateX(-50%);
  max-width: min(650px, 90vw);
  padding: 12px 20px;
  text-align: center;
  background: #153136ef;
  border: 1px solid #dfd5a875;
  border-radius: 3px;
  font-size: 12px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}
#toast.show {
  opacity: 1;
}
#bossbar {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  text-align: center;
  padding: 10px 18px;
  background: #263439e8;
  border: 1px solid #dcc5a05c;
}
#bossbar small {
  font-size: 7px;
  color: #dbc6a2;
}
#bossbar strong {
  font:
    18px Georgia,
    serif;
  display: block;
  margin: 4px;
}
.boss-track {
  height: 5px;
  background: #19292f;
  margin: 8px 0 4px;
}
.boss-track i {
  display: block;
  height: 100%;
  background: #d7a589;
}
#bossNumbers {
  font-size: 9px;
}
.overlay {
  background: #0c23299c;
  backdrop-filter: blur(5px);
  padding: 24px;
}
.panel-shell {
  max-width: 1040px;
  width: 100%;
  max-height: calc(100dvh - 48px);
  background: #193237fa;
  border: 1px solid #b6c3a36b;
  box-shadow: 0 15px 80px #09212a99;
  display: flex;
  flex-direction: column;
  border-radius: 5px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 23px 28px;
  border-bottom: 1px solid var(--line);
}
h2 {
  font:
    30px Georgia,
    serif;
  color: #f0dfbc;
  margin: 4px 0;
}
.panel-head small {
  font-size: 8px;
}
.close {
  font-size: 25px;
  border: 0;
  background: none;
  line-height: 1;
  width: 44px;
  padding: 5px;
  color: #c8d3b9;
}
.panel-body {
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: pan-y;
  scrollbar-color: #6c8170 #1a3338;
}
.pack-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  min-height: 410px;
}
.bag-pane,
.craft-pane {
  padding: 24px 28px;
}
.craft-pane {
  border-left: 1px solid var(--line);
  background: #112d3033;
}
.section-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  display: flex;
  justify-content: space-between;
  color: #c0d0ba;
  margin-bottom: 15px;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.inventory-grid button.slot {
  width: 100%;
  height: 56px;
  min-height: 56px;
}
.inventory-grid button.slot canvas {
  width: 40px;
  height: 40px;
}
.inventory-grid button.slot .quantity {
  font-size: 10px;
}
.item-detail {
  background: #102b3055;
  padding: 14px;
  margin-top: 17px;
  border: 1px solid #bdc9a51f;
  min-height: 87px;
}
.item-detail strong {
  color: #e7d4b1;
  font-size: 13px;
}
.item-detail p {
  font-size: 11px;
  line-height: 1.6;
  color: #bacbbb;
  margin: 6px 0;
}
.equipment {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.equipment span {
  border: 1px solid var(--line);
  padding: 10px;
  font-size: 10px;
  color: #bbcebc;
  border-radius: 3px;
}
.bag-note {
  font-size: 10px;
  color: #a1b8a8;
  line-height: 1.7;
  margin-top: 20px;
}
.filter-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.filter-row button {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 9px;
}
.filter-row button.active {
  border-color: var(--gold);
  color: var(--gold);
}
.recipes {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 365px;
  overflow: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-color: #6c8170 #1a3338;
}
.recipe {
  display: grid;
  grid-template-columns: 35px 1fr 65px;
  gap: 11px;
  padding: 12px 11px;
  background: #18363b;
  border: 1px solid #b9c79e25;
  border-radius: 3px;
  align-items: center;
}
.recipe.ready {
  border-color: #c8d6a569;
  background: #24423f;
}
.recipe h3 {
  font-size: 12px;
  margin: 0 0 5px;
  color: #e9debf;
  font-weight: 600;
}
.recipe p {
  font-size: 10px;
  line-height: 1.5;
  margin: 0;
  color: #a9c0af;
}
.recipe small {
  font-size: 8px;
  letter-spacing: 0.4px;
  display: block;
  margin-top: 5px;
  color: #93afa2;
}
.recipe .cost {
  display: inline-block;
  margin-right: 7px;
  color: #d4d5b8;
}
.recipe .missing {
  color: #d49d88;
}
.recipe button {
  font-size: 10px;
  min-height: 34px;
  padding: 7px 10px;
}
.panel-foot {
  padding: 13px 28px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: #9eb7a5;
  display: flex;
  justify-content: space-between;
}
.journal-content {
  padding: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.chapter {
  padding: 22px;
  background: #133035;
  border: 1px solid var(--line);
  position: relative;
}
.chapter.done {
  border-color: #a6c295;
}
.chapter .number {
  font:
    40px Georgia,
    serif;
  color: #65877b;
}
.chapter h3 {
  font:
    22px Georgia,
    serif;
  color: #e6d8b7;
  margin: 10px 0;
}
.chapter p,
.chapter li {
  font-size: 11px;
  color: #b9cbbb;
  line-height: 1.8;
}
.chapter ul {
  padding-left: 15px;
}
.chapter .reward {
  font-size: 10px;
  color: #daca9e;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.guide {
  padding: 0 28px 25px;
  font-size: 12px;
  line-height: 1.8;
  color: #b9cbbb;
}
.guide strong {
  color: #e8d6b4;
}
.map-content {
  padding: 24px;
}
.big-map {
  width: 100%;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  background: #0c232d;
  max-height: 55vh;
  object-fit: contain;
}
.map-key {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: #c0d3bd;
  margin-top: 14px;
  flex-wrap: wrap;
}
.travel-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.travel-row button {
  font-size: 11px;
}
.pause-content {
  padding: 26px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pause-content p {
  font-size: 12px;
  line-height: 1.8;
  color: #bfd0bd;
}
.pause-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.save-state {
  font-size: 11px;
  color: #d1ce9c;
}
.danger {
  color: #e4aa98;
}
.death-card {
  text-align: center;
  background: #213036ed;
  padding: 45px;
  border: 1px solid var(--line);
}
#death {
  background: #24212f88;
  z-index: 12;
}
.death-card p {
  font-size: 13px;
  color: #c1c9b4;
}
.death-card strong {
  display: block;
  font-size: 12px;
  margin-top: 24px;
  color: #e4c490;
}
.victory {
  padding: 45px;
  text-align: center;
}
.victory .title-star {
  font-size: 55px;
}
.victory h2 {
  font-size: 44px;
}
.victory p {
  font-size: 13px;
  line-height: 1.9;
  color: #c1d2bc;
  max-width: 500px;
  margin: 20px auto;
}
.victory button {
  margin: 10px;
}
#touch {
  display: none;
}
.mobile-hint {
  display: none;
}
@media (pointer: coarse) {
  #touch {
    display: block;
  }
  #desktopHelp {
    display: none;
  }
  .move-controls,
  .action-controls {
    position: absolute;
    bottom: max(22px, env(safe-area-inset-bottom));
    display: flex;
    gap: 7px;
  }
  .move-controls {
    left: 15px;
  }
  .action-controls {
    right: 15px;
    align-items: flex-end;
  }
  #touch button {
    width: 48px;
    height: 48px;
    padding: 0;
    font-size: 19px;
    background: #1b383ca8;
    border-color: #c1d0b266;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
  }
  #touch button.pressed {
    background: #a6be8f88;
    border-color: #e3d7a9;
  }
  #touch .use {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    font-size: 12px;
    border-color: #eac892;
    background: #847c4b88;
  }
  #touchHeal {
    color: #edb19c;
  }
  #touchInteract {
    font-size: 16px !important;
  }
  #objective {
    bottom: 103px;
  }
  #toast {
    bottom: 31%;
  }
}
@media (max-width: 1100px) {
  #bossbar {
    top: 170px;
    width: 290px;
  }
  #desktopHelp {
    max-width: 310px;
    line-height: 2;
    text-align: right;
  }
  .brand {
    left: 18px;
  }
  #vitals {
    right: 18px;
  }
  #hotbar {
    left: 18px;
  }
  .top-actions {
    right: 18px;
  }
  #miniwrap {
    right: 18px;
  }
}
@media (max-width: 700px) {
  .brand {
    top: 17px;
    left: 14px;
    font-size: 10px;
    letter-spacing: 2px;
  }
  .brandmark {
    font-size: 23px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1px;
  }
  #vitals {
    top: 14px;
    right: 14px;
    width: 133px;
  }
  .vital-label {
    font-size: 10px;
  }
  .vital-label small {
    display: none;
  }
  .vital-foot {
    font-size: 6px;
    letter-spacing: 0.3px;
  }
  .meter {
    height: 5px;
  }
  #hotbar {
    top: 68px;
    left: 13px;
    right: 13px;
    gap: 4px;
  }
  button.slot {
    width: calc((100vw - 54px) / 8);
    height: 41px;
    min-height: 41px;
    padding: 3px;
  }
  button.slot canvas {
    width: 29px;
    height: 29px;
  }
  #selectedName {
    top: 117px;
    left: 15px;
    font-size: 10px;
  }
  .top-actions {
    top: 138px;
    left: 13px;
    right: auto;
    gap: 4px;
  }
  .top-actions button {
    min-height: 35px;
    padding: 7px 9px;
    font-size: 10px;
  }
  .top-actions kbd {
    display: none;
  }
  #miniwrap {
    top: 185px;
    right: 13px;
    padding: 3px 3px 17px;
  }
  #minimap {
    width: 105px;
    height: 48px;
  }
  #coordinates {
    font-size: 6px;
    bottom: 5px;
    left: 6px;
  }
  #objective {
    left: 14px;
    width: 235px;
    padding: 9px 12px;
    bottom: 107px;
  }
  #objective small {
    font-size: 6px;
  }
  #objective strong {
    font-size: 16px;
  }
  #objective p {
    font-size: 9px;
    line-height: 1.5;
    margin-top: 5px;
  }
  #bossbar {
    top: 185px;
    left: 13px;
    transform: none;
    width: 210px;
    padding: 7px;
  }
  #bossbar strong {
    font-size: 15px;
  }
  #bossbar small {
    font-size: 6px;
  }
  #toast {
    font-size: 10px;
    padding: 10px 13px;
    width: max-content;
    max-width: 92vw;
    bottom: 32%;
  }
  .overlay {
    padding: 8px;
  }
  .panel-shell {
    max-height: calc(100dvh - 16px);
  }
  .panel-head {
    padding: 15px 17px;
  }
  h2 {
    font-size: 26px;
  }
  .pack-layout {
    display: flex;
    flex-direction: column;
  }
  .bag-pane,
  .craft-pane {
    padding: 18px;
  }
  .craft-pane {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .inventory-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 6px;
  }
  .inventory-grid button.slot {
    height: 49px;
    min-height: 49px;
  }
  .inventory-grid button.slot canvas {
    width: 33px;
    height: 33px;
  }
  .bag-note {
    margin: 10px 0 0;
    font-size: 9px;
  }
  .equipment {
    margin-top: 10px;
  }
  .equipment span {
    padding: 8px;
    font-size: 9px;
  }
  .item-detail {
    margin-top: 10px;
    min-height: 64px;
    padding: 10px;
  }
  .item-detail p {
    font-size: 10px;
  }
  .recipes {
    max-height: 400px;
  }
  .panel-foot {
    padding: 11px 16px;
    font-size: 8px;
  }
  .journal-content {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 12px;
  }
  .chapter {
    padding: 16px;
  }
  .chapter .number {
    font-size: 28px;
  }
  .chapter h3 {
    font-size: 20px;
  }
  .guide {
    padding: 0 18px 20px;
    font-size: 11px;
  }
  .pause-content {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 12px;
  }
  .title-card {
    width: calc(100% - 46px);
    max-width: 440px;
    padding: 30px 27px 20px;
  }
  h1 {
    font-size: 55px;
  }
  .title-star {
    margin-top: 18px;
  }
  .title-card .eyebrow {
    font-size: 7px;
    letter-spacing: 2px;
  }
  .title-caption {
    left: 20px;
    bottom: 19px;
    font-size: 7px;
  }
  .home-link {
    left: 20px;
    top: 20px;
    font-size: 10px;
  }
  .title-footer {
    font-size: 7px;
  }
  .intro {
    font-size: 12px;
  }
  .tagline {
    font-size: 16px;
  }
  .title-rule {
    margin: 20px 0;
  }
  .title-card .primary {
    font-size: 12px;
  }
  .victory {
    padding: 28px 20px;
  }
  .victory h2 {
    font-size: 33px;
  }
  .map-content {
    padding: 16px;
  }
  .map-key {
    gap: 9px;
    font-size: 9px;
  }
  .travel-row {
    gap: 6px;
  }
  .travel-row button {
    font-size: 10px;
    flex: 1;
  }
  #touch button {
    width: 43px;
    height: 47px;
  }
  .move-controls {
    left: 12px;
    gap: 5px;
  }
  .action-controls {
    right: 12px;
    gap: 5px;
  }
  #touch .use {
    width: 55px;
    height: 55px;
  }
  #touchHeal {
    position: absolute;
    right: 0;
    bottom: 68px;
    width: 42px !important;
    height: 42px !important;
  }
}
@media (max-height: 550px) {
  #objective {
    display: none;
  }
  #miniwrap {
    top: 143px;
  }
  #hotbar {
    top: 66px;
  }
  #selectedName {
    top: 119px;
  }
  .brand {
    top: 14px;
  }
  #vitals {
    top: 12px;
  }
  .top-actions {
    top: 86px;
  }
  #bossbar {
    top: 14px;
    width: 230px;
  }
  #desktopHelp {
    bottom: 12px;
  }
  .title-card {
    padding: 20px 30px;
    width: 390px;
  }
  .title-star,
  .title-rule,
  .intro,
  .title-footer {
    display: none;
  }
  .title-card h1 {
    font-size: 50px;
    margin-top: 12px;
  }
  .tagline {
    margin-bottom: 20px;
  }
  .panel-head {
    padding: 10px 22px;
  }
  .title-caption {
    bottom: 15px;
  }
  .overlay {
    padding: 10px;
  }
  .panel-shell {
    max-height: calc(100dvh - 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
@media (max-width: 700px) and (min-height: 551px) {
  #hotbar {
    top: 82px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 4px;
    touch-action: pan-x;
    scrollbar-width: none;
  }
  #hotbar button.slot {
    flex: 0 0 44px;
    min-height: 44px;
    height: 44px;
  }
  #selectedName {
    top: 137px;
  }
  .top-actions {
    top: 157px;
  }
  #miniwrap {
    top: 205px;
  }
  #bossbar {
    top: 205px;
  }
}
.slot::after {
  content: attr(data-cooldown);
  position: absolute;
  left: 4px;
  bottom: 3px;
  font:
    9px ui-monospace,
    monospace;
  color: #ffe0af;
  text-shadow: 1px 1px #152b32;
}
@media (pointer: coarse) {
  #touch button {
    min-width: 44px;
    min-height: 44px;
  }
  #touchHeal {
    width: 44px !important;
    height: 44px !important;
    font-size: 14px !important;
  }
  .recipe button,
  .filter-row button {
    min-height: 44px;
  }
  .top-actions button {
    min-height: 44px;
    min-width: 44px;
  }
}
