* {
  box-sizing: border-box;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  font-family: "Segoe UI", "Microsoft JhengHei", Arial, sans-serif;
  color: #f4f6ec;
  background: #a8d9ea;
}
body {
  --lime: #b6e97b;
  --edge: #435047;
  --panel: #1d2c29;
  --muted: #afbeb5;
  --header: 76px;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
button:focus-visible,
canvas:focus-visible,
a:focus-visible {
  outline: 3px solid #d6fc9b;
  outline-offset: 3px;
}
button {
  touch-action: manipulation;
}
header {
  height: var(--header);
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  background: #172521;
  border-bottom: 3px solid #6f9057;
  box-shadow: 0 3px 0 #1d333028;
}
.brand,
.header-right,
.day,
.eyebrow,
.phase-main,
.quest,
.bar-head,
.hints,
.world-status,
.save-status,
.bar-head span,
.bar-head button,
.hints span,
.target-label {
  display: flex;
  align-items: center;
}
.brand {
  gap: 13px;
}
.logo {
  width: 44px;
  height: 44px;
  image-rendering: pixelated;
}
.brand strong {
  display: block;
  font:
    1000 30px/0.98 "Arial Black",
    "Segoe UI Black",
    Impact,
    sans-serif;
  letter-spacing: -1.7px;
  color: #f5f6ed;
}
.brand strong span {
  color: #b6e981;
}
.brand small {
  display: block;
  margin-top: 5px;
  font-weight: 700;
  color: #c2ccbe;
  font-size: 11px;
}
.header-right {
  gap: 10px;
}
.day {
  gap: 8px;
  color: #e4e6d6;
  font: 700 14px monospace;
}
.day i {
  color: #ebcd72;
}
.divider {
  width: 1px;
  height: 24px;
  background: #435047;
  margin: 0 8px;
}
.icon,
.bar-head button {
  display: grid;
  place-items: center;
  border: 1px solid #4e5e53;
  border-radius: 6px;
  background: #2e3c35;
}
.icon {
  width: 36px;
  height: 36px;
}
.icon:hover,
.bar-head button:hover,
.quest:hover {
  background: #435543;
}
i[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
}
i svg {
  width: 20px;
  height: 20px;
  display: block;
}
main {
  height: calc(100% - var(--header));
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
#sky {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: crosshair;
  outline: 0;
}
#sky:focus-visible {
  outline: 2px dashed #aae383;
  outline-offset: -3px;
}
.panel {
  background: linear-gradient(125deg, #21332fed, #1d2c29f5);
  border: 1px solid #56675c;
  border-radius: 9px;
  box-shadow:
    0 3px 0 #273c3b3b,
    0 6px 18px #31525f18;
}
.phase {
  position: absolute;
  top: 24px;
  left: 28px;
  width: 214px;
  padding: 15px 17px 13px;
  pointer-events: none;
}
.eyebrow {
  gap: 8px;
  font-size: 12px;
  color: #c7d6c9;
  font-weight: 700;
  letter-spacing: 1px;
}
.lime-dot {
  width: 7px;
  height: 7px;
  background: var(--lime);
  display: inline-block;
  border-radius: 1px;
  flex: none;
}
.eyebrow b {
  margin-left: auto;
  font: 700 12px monospace;
  color: #c5d9b4;
  letter-spacing: 0.8px;
}
.phase-main {
  gap: 11px;
  margin: 13px 0;
}
.item-art {
  image-rendering: pixelated;
  width: 45px;
  height: 45px;
}
.phase h1 {
  font-size: 23px;
  margin: 0;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: 1px;
}
.phase-main small,
.modal-head small {
  font: 700 10px monospace;
  letter-spacing: 1.8px;
  color: #b7ccaa;
}
.progress {
  height: 5px;
  background: #53645b;
  border-radius: 1px;
  overflow: hidden;
}
.progress i {
  height: 100%;
  background: var(--lime);
  display: block;
  width: 0;
  transition: width 0.25s;
}
.progress-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b5c4b9;
  font-size: 12px;
  margin-top: 8px;
}
.progress-foot b {
  font: 700 12px monospace;
  color: #e2e9dc;
}
.quest {
  position: absolute;
  right: 28px;
  top: 24px;
  padding: 12px 15px;
  gap: 12px;
  text-align: left;
}
.quest-icon {
  height: 34px;
  width: 34px;
  background: #394637;
  border: 1px solid #647354;
  display: grid;
  place-items: center;
  color: #cfe496;
  border-radius: 5px;
}
.quest-copy small {
  display: block;
  color: #b6c8ac;
  font-size: 11px;
  letter-spacing: 1px;
}
.quest-copy strong {
  font-size: 14px;
  display: block;
  margin-top: 3px;
}
.quest-count {
  font: 700 13px monospace;
  align-self: flex-end;
  margin: 0 0 2px 5px;
  color: #c6d6bb;
}
#target {
  position: absolute;
  pointer-events: none;
  transform: translate(-50%, 0);
  text-align: center;
}
.target-label {
  display: inline-flex;
  gap: 7px;
  padding: 6px 12px;
  background: #263e37e8;
  border: 1px solid #70877b;
  color: #f0f5e6;
  border-radius: 5px;
  box-shadow: 0 2px 0 #36564b40;
  white-space: nowrap;
}
.target-label strong {
  font-size: 13px;
  letter-spacing: 1px;
}
#target-hint {
  font-weight: 650;
  color: #314f51;
  font-size: 12px;
  margin-top: 5px;
}
#hand {
  position: absolute;
  right: 0;
  bottom: -3%;
  height: clamp(165px, 32vh, 330px);
  width: auto;
  image-rendering: pixelated;
  pointer-events: none;
  transform-origin: 100% 100%;
}
#hand.swing {
  animation: swing 0.29s ease-out;
}
@keyframes swing {
  45% {
    transform: rotate(-12deg) translate(-4%, 1%);
  }
}
.hud-bottom {
  position: absolute;
  bottom: 21px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 94vw;
}
#loot-status {
  width:100%;max-width:min(94vw,600px);margin:0 auto 6px;
  background:#172521e8;color:#e7f4df;border:1px solid #76965e;
  border-radius:6px;padding:6px 9px;text-align:center;
  font-size:12px;line-height:1.35;overflow-wrap:anywhere;
  pointer-events:none;
}
.bar-head {
  justify-content: space-between;
  margin: 0 2px 8px;
  color: #354d48;
  font-size: 13px;
  font-weight: 750;
}
.bar-head span,
.bar-head button {
  gap: 7px;
}
.bar-head i svg {
  width: 15px;
  height: 15px;
}
.bar-head button {
  display: flex;
  background: #243831eb;
  color: #f3f6e8;
  font: 650 12px inherit;
  padding: 5px 9px;
  border-color: #596f5d;
  border-radius: 5px;
  font-size: 12px;
}
kbd {
  font: 700 11px monospace;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 0 3px;
  line-height: 15px;
}
.hotbar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: #25372f;
  border: 2px solid #627464;
  box-shadow:
    0 3px 0 #17282067,
    0 5px 15px #334f4326;
  border-radius: 8px;
}
.slot {
  width: clamp(42px, 4.35vw, 67px);
  aspect-ratio: 1;
  position: relative;
  display: grid;
  place-items: center;
  background: #394940;
  border: 1px solid #536154;
  border-radius: 3px;
  box-shadow: inset 0 2px 0 #24352f70;
  padding: 3px;
}
.slot:hover {
  background: #485d4d;
}
.slot.active {
  background: #4a5d3e;
  border: 2px solid #cafa8b;
  box-shadow: 0 0 0 1px #91b76e;
}
.slot canvas {
  width: 74%;
  height: 74%;
  image-rendering: pixelated;
}
.slot-num,
.qty {
  position: absolute;
  font: 700 11px monospace;
  color: #b0bdb0;
}
.slot-num {
  top: 2px;
  left: 4px;
}
.active .slot-num {
  color: #d4f49d;
}
.qty {
  bottom: 2px;
  right: 4px;
  color: white;
  text-shadow: 1px 1px #12251e;
}
.hints {
  justify-content: center;
  gap: 18px;
  margin-top: 11px;
  color: #3d5655;
  font-size: 12px;
  font-weight: 650;
}
.hints span {
  gap: 5px;
}
.hints i svg {
  width: 15px;
  height: 15px;
}
.world-status,
.save-status {
  position: absolute;
  bottom: 20px;
  gap: 7px;
  color: #3d5553;
  font:
    650 12px "Segoe UI",
    sans-serif;
}
.world-status {
  left: 28px;
}
.save-status {
  right: 26px;
  background: #e2f1dfc9;
  padding: 4px 8px;
  border-radius: 4px;
}
.save-status .lime-dot {
  background: #617e4f;
  width: 5px;
  height: 5px;
}
.world-status svg {
  width: 15px;
  height: 15px;
}
#toast {
  position: absolute;
  bottom: 156px;
  left: 50%;
  transform: translateX(-50%);
  background: #253b32ee;
  border: 1px solid #647c61;
  padding: 8px 14px;
  border-radius: 5px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  font-size: 14px;
  text-align: center;
}
#toast.on {
  opacity: 1;
}
dialog {
  color: #eef4e8;
  background: #23352e;
  border: 1px solid #72846c;
  border-radius: 12px;
  box-shadow: 0 15px 65px #14292480;
  width: min(500px, 92vw);
  max-height: 84dvh;
  padding: 22px;
  overflow-y: auto;
}
dialog::backdrop {
  background: #152b26a9;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  border-bottom: 1px solid #526354;
  padding-bottom: 14px;
}
.modal-head small {
  color: var(--lime);
}
h2 {
  font-size: 24px;
  margin: 3px 0 0;
}
.modal-head .icon {
  flex: none;
}
#content p,
#content li {
  font-size: 15px;
  line-height: 1.65;
  color: #d6e1d3;
}
#content h3 {
  font-size: 15px;
  margin: 16px 0 8px;
  color: #d4e9b7;
}
.row,
.recipe,
.inv-item,
.action {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #4b6050;
  border-radius: 6px;
  background: #31443a;
  padding: 9px 12px;
  margin: 6px 0;
  font-size: 14px;
}
.row {
  justify-content: space-between;
}
.recipe,
.action {
  width: 100%;
  text-align: left;
}
.recipe span {
  flex: 1;
}
.recipe small,
.inv-item small {
  display: block;
  font-size: 12px;
  color: #bcc9b7;
  margin-top: 3px;
}
.recipe:disabled {
  opacity: 0.55;
  cursor: default;
}
.recipe b {
  font-size: 12px;
  color: var(--lime);
}
.recipe canvas,
.inv-item canvas {
  width: 36px;
  height: 36px;
  image-rendering: pixelated;
}
.inventory {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.storage-controls {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:7px;
  margin:12px 0 10px;
  color:#d3e2d0;
  font-size:13px;
}
.storage-controls button {
  border:1px solid #678268;
  border-radius:5px;
  background:#31443a;
  color:inherit;
  padding:7px 11px;
}
.storage-controls button.selected {
  background:#b6df85;
  border-color:#b6df85;
  color:#203020;
  font-weight:bold;
}
.storage-grid {
  display:grid;
  grid-template-columns:repeat(9,minmax(0,1fr));
  gap:3px;
  padding:8px;
  background:#1c2d27;
  border:2px solid #738c6a;
  border-radius:8px;
}
.storage-slot {
  position:relative;
  aspect-ratio:1;
  min-width:0;
  padding:0;
  border:1px solid #506554;
  border-radius:3px;
  background:#31473b;
  display:grid;
  place-items:center;
}
.storage-slot.empty {background:#293c32}
.storage-slot.filled:hover,.storage-slot.filled:focus-visible {border-color:#cbf39d;background:#3d5946}
.storage-slot canvas {width:88%;height:88%;image-rendering:pixelated}
.storage-slot small {
  position:absolute;
  bottom:0;
  right:1px;
  padding:1px;
  line-height:1;
  font-size:10px;
  font-weight:800;
  color:#fff;
  text-shadow:0 1px 3px #000,1px 0 2px #000;
}
.storage-inventory {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:6px;
}
.storage-inventory-item {
  min-width:0;
  display:flex;
  align-items:center;
  gap:7px;
  padding:6px;
  border:1px solid #526a58;
  border-radius:5px;
  background:#304538;
  color:inherit;
  text-align:left;
}
.storage-inventory-item canvas {width:30px;height:30px;flex:none;image-rendering:pixelated}
.storage-inventory-item span {min-width:0;flex:1;overflow-wrap:anywhere;font-size:12px}
.storage-inventory-item small {white-space:nowrap;color:#b9d8a9}
.storage-inventory-item:hover {border-color:#b6df85}
.storage-legacy {border:1px dashed #e1bb69;padding:8px;border-radius:5px}
.bag-toolbar {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(90px,36%);
  gap:6px;
  margin:8px 0 12px;
}
.bag-toolbar input,.bag-toolbar select {
  width:100%;min-width:0;padding:8px;border:1px solid #6a806c;
  border-radius:5px;color:#eef4e8;background:#16271f;
  font:inherit;font-size:13px;
}
.bag-pages {display:flex;align-items:center;justify-content:space-between;gap:7px;margin:8px 0;font-size:12px;color:#c5d4c7}
.bag-pages button {border:1px solid #6a806c;border-radius:5px;background:#31443a;padding:6px 9px}
.bag-pages button:disabled {opacity:.45}
.recipe .recipe-source {color:#adc1b0;font-size:11px}
.recipe-group {border:1px solid #42594b;border-radius:7px;background:#23352c;margin:6px 0;padding:9px}
.recipe-heading,.recipe-method {display:flex;align-items:center;gap:8px}
.recipe-heading strong,.recipe-method>span {flex:1;min-width:0}
.recipe-heading canvas {width:34px;height:34px;flex-shrink:0}
.recipe-heading button,.recipe-method button {border:1px solid #6a806c;border-radius:5px;background:#31443a;padding:6px 8px;white-space:nowrap;font:inherit;font-size:12px}
.recipe-method button:disabled {opacity:.55}
.recipe-method {border-top:1px solid #42594b;margin-top:6px;padding-top:7px}
.recipe-method small {display:block;font-size:12px}
.recipe-method .ingredient {display:inline-block;margin:2px 5px 2px 0}
.recipe-method .ingredient.enough {color:#b7df86}
.recipe-method .ingredient.missing {color:#ffc3af}
[data-bag-id][hidden] {display:none!important}
.catalog-item {min-width:0;align-items:flex-start}
.catalog-item span {min-width:0;overflow-wrap:anywhere}
.recipe .ingredient {display:inline-block;margin:2px 5px 2px 0;font-size:12px}
.recipe .ingredient.enough {color:#b7df86}
.recipe .ingredient.missing {color:#ffc3af}
.recipe:disabled {opacity:.88}
.monster-button {border:1px solid #6a806c;background:#243831;border-radius:5px;padding:6px 10px}
.monster-button:disabled {opacity:.5}
.inv-item {
  margin: 0;
  text-align: left;
}
.inv-item:hover,
.recipe:not(:disabled):hover,
.action:hover {
  border-color: #b1d48a;
}
.action {
  justify-content: center;
  font-weight: 700;
}
.action.primary {
  background: #b7df86;
  color: #20311f;
}
.tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.tabs button {
  border: 1px solid #576e58;
  background: #31443a;
  border-radius: 5px;
  padding: 6px 12px;
}
.tabs button.sel {
  background: #b6d98b;
  color: #213222;
}
.key {
  color: var(--lime);
  font: 700 13px monospace;
}
@media (max-width: 700px) {
  body {
    --header: 61px;
  }
  header {
    padding: 0 12px;
  }
  .brand {
    gap: 6px;
  }
  .logo {
    width: 34px;
    height: 34px;
  }
  .brand strong {
    font-size: 22px;
  }
  .brand small {
    margin-top: 3px;
    font-size: 9px;
  }
  .header-right {
    gap: 5px;
  }
  .icon {
    width: 30px;
    height: 30px;
  }
  .divider {
    margin: 0 2px;
  }
  .day {
    font-size: 11px;
    gap: 3px;
  }
  .day svg {
    width: 16px;
  }
  .phase {
    top: 13px;
    left: 12px;
    width: 151px;
    padding: 10px;
  }
  .phase-main {
    margin: 7px 0;
    gap: 6px;
  }
  .phase h1 {
    font-size: 18px;
  }
  .item-art {
    width: 33px;
    height: 33px;
  }
  .eyebrow,
  .progress-foot,
  .eyebrow b {
    font-size: 10px;
  }
  .quest {
    top: 13px;
    right: 12px;
    gap: 6px;
    padding: 8px;
  }
  .quest-icon {
    width: 24px;
    height: 27px;
  }
  .quest-copy strong {
    font-size: 12px;
  }
  .quest-count {
    font-size: 10px;
    margin-left: 1px;
  }
  .slot {
    width: clamp(34px, 11vw, 55px);
  }
  .hotbar {
    gap: 2px;
    padding: 4px;
  }
  .hud-bottom {
    bottom: 18px;
  }
  .world-status,
  .save-status {
    display: none;
  }
  #hand {
    height: 21vh;
    bottom: 10%;
    right: -5%;
  }
  .hints {
    gap: 11px;
    font-size: 11px;
  }
  .bar-head {
    font-size: 12px;
  }
  .quest-copy small {
    font-size: 10px;
  }
}
@media (max-height: 530px) {
  body {
    --header: 50px;
  }
  .phase {
    top: 8px;
    transform: scale(0.78);
    transform-origin: top left;
  }
  .quest {
    top: 8px;
  }
  .hud-bottom {
    bottom: 5px;
  }
  .hints {
    display: none;
  }
  .slot {
    width: 40px;
  }
  .bar-head {
    margin-bottom: 3px;
  }
  .world-status,
  .save-status {
    display: none;
  }
}

.move-pad {
  position: absolute;
  left: 16px;
  bottom: 64px;
  display: grid;
  grid-template-columns: repeat(3, 34px);
  gap: 3px;
}
.move-pad button {
  background: #243b32e8;
  border: 1px solid #788c76;
  border-radius: 5px;
  height: 31px;
}
.move-pad button:first-child {
  grid-column: 2;
}
.move-pad button:nth-child(2) {
  grid-column: 1;
}
.move-pad[hidden] {
  display: none;
}
@media (max-width: 750px) {
  .move-pad {
    bottom: 140px;
  }
}
#toast {
  position: static;
  transform: none;
  min-height: 20px;
  padding: 2px 7px;
  margin-right: 6px;
  font-size: 12px;
  text-align: left;
  max-width: min(54vw, 275px);
}
.bar-head {
  min-height: 26px;
  align-items: flex-end;
}
.outfits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin: 8px 0 16px;
}
.character-choice {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 7px 0 14px;
}
.character-option {
  border: 1px solid #64765f;
  border-radius: 7px;
  padding: 11px 8px;
  font-weight: 700;
  background: #334a40;
}
.character-option[aria-pressed="true"] {
  background: #b7df86;
  border-color: #d0f5a0;
  color: #20311f;
}
.action.danger {
  border-color: #a86454;
  background: #543b36;
  color: #ffdfd1;
}
.action.danger:hover {
  border-color: #ffb29b;
  background: #724941;
}
.outfit {
  padding: 4px;
  background: #334a40;
  color: #e2e9dc;
  border: 1px solid #59705d;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 700;
}
.outfit[aria-pressed="true"] {
  border: 2px solid #c5eb8f;
  background: #485c42;
}
.outfit canvas {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
}
.room-button {
  width: auto;
  display: flex;
  gap: 5px;
  padding: 0 9px;
  font-size: 13px;
}
.room-button.connected {
  border-color: var(--lime);
  color: var(--lime);
}
.room-form {
  display: grid;
  gap: 12px;
}
.room-form label {
  display: grid;
  gap: 5px;
  font-size: 14px;
  color: #dae5d5;
}
.room-form input,
.invite-field {
  width: 100%;
  padding: 10px;
  color: #f6f8ef;
  background: #16271f;
  border: 1px solid #6a806c;
  border-radius: 5px;
  font: 16px monospace;
}
.room-error {
  color: #f6c79e;
  font-size: 14px;
}
.room-description {
  margin: 5px 0 12px;
}
.room-form .action {
  margin: 0;
}
.save-status {
  font-size: 11px;
}
@media (pointer: fine) {
  .move-pad {
    display: none;
  }
}
@media (max-width: 600px) {
  .outfits {
    grid-template-columns: repeat(2, 1fr);
  }
  .outfit canvas {
    width: 66px;
    margin: auto;
  }
  .day,
  .divider {
    display: none;
  }
  .header-right {
    gap: 6px;
  }
  .move-pad {
    bottom: 112px;
  }
}
@media (max-width: 350px) {
  .brand strong {
    font-size: 18px;
  }
  .room-button span {
    display: none;
  }
  .header-right {
    gap: 4px;
  }
}
/* Dedicated HUD chrome: nothing in these bars can overlap the world canvas. */
body {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
}
header { flex: 0 0 var(--header); }
.status-strip {
  flex: 0 0 30px;
  min-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px;
  background: #24362e;
  border-bottom: 1px solid #54734a;
  color: #e9f4e1;
  font-variant-numeric: tabular-nums;
}
.status-strip .world-status,
.status-strip .save-status {
  position: static;
  display: flex;
  white-space: nowrap;
  color: inherit;
  font-size: 12px;
  gap: 5px;
}
.status-strip .world-status { min-width: 0; }
.status-strip .world-status i { flex-shrink: 0; }
.status-strip .save-status { background: transparent; padding: 0; color: #b4c7b2; }
main { flex: 1 1 0; min-height: 0; height: auto; }
.game-dock {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding: 4px 8px max(5px, env(safe-area-inset-bottom));
  background: #172521;
  border-top: 1px solid #54734a;
}
.game-dock .hud-bottom {
  position: static;
  transform: none;
  width: min(100%, 680px);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.game-dock #loot-status {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 30px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  padding: 2px 4px;
  border: 0;
  background: none;
  font-size: 11px;
  line-height: 13px;
}
.game-dock .bar-head {
  width: 100%;
  min-width: 0;
  height: 26px;
  min-height: 26px;
  margin: 0 0 3px;
  align-items: center;
}
.game-dock #toast {
  display: block;
  flex: 1 1 0;
  min-width: 0;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  background: transparent;
  color: #d9e8cb;
  border: 0;
  padding: 0 4px;
  font-size: 11px;
}
.game-dock #bag { flex: 0 0 auto; white-space: nowrap; padding: 3px 7px; }
.game-dock .hotbar { max-width: 100%; }
.game-dock .slot { min-width: 0; flex-shrink: 1; }
.move-pad { bottom: 8px; }
@media (max-width: 700px) {
  .status-strip { padding: 0 8px; }
  .status-strip .world-status, .status-strip .save-status { font-size: 11px; }
  .game-dock .slot { width: clamp(30px, 11vw, 48px); }
}
@media (max-width: 350px) {
  .status-strip .save-status { display: none; }
}
@media (max-height: 530px) {
  .status-strip { flex-basis: 24px; min-height: 24px; }
  .game-dock { padding-top: 2px; padding-bottom: max(3px, env(safe-area-inset-bottom)); }
  .game-dock #loot-status { height: 17px; -webkit-line-clamp: 1; }
  .game-dock .bar-head { height: 23px; min-height: 23px; }
  .game-dock .slot { width: 34px; }
  .game-dock .hotbar { padding: 3px; gap: 3px; }
}
