/* =============================================================
   ARCADE · minecraft.css
   Voxel sandbox UI built on vanilla Minecraft textures:
   widgets.png buttons, icons.png hearts, container GUI panels.
   ============================================================= */

.mc {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
  color: #e8e8e8;
  font-family: "Courier New", ui-monospace, monospace;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.mc,
.mc * {
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.82);
}

#mc-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

/* ------------------------------------------------------------
   Classic MC button — sprite from widgets.png (200x20),
   scaled 2x per side. Text centered like vanilla.
   ------------------------------------------------------------ */
.mc-btn {
  display: block;
  width: 100%;
  padding: 0.55rem 1rem 0.62rem;
  border: 2px solid #000;
  background-image: url("../img/mc-btn.png?v=703046da");
  background-size: 100% 100%;
  image-rendering: pixelated;
  color: #e8e8e8;
  font: inherit;
  font-size: 0.95rem;
  cursor: pointer;
}

.mc-btn:hover:not(:disabled) {
  background-image: url("../img/mc-btn-hover.png?v=96db1c13");
  color: #ffffa0;
}

.mc-btn:disabled {
  background-image: url("../img/mc-btn-disabled.png?v=ddbabd61");
  opacity: 0.55;
  cursor: default;
  color: #a0a0a0;
}

.mc-btn--sm {
  width: auto;
  padding: 0.3rem 0.7rem 0.36rem;
  font-size: 0.72rem;
}

/* ------------------------------------------------------------
   HUD
   ------------------------------------------------------------ */
.hud {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  transition: opacity 0.2s linear;
}

.hud.is-hidden {
  opacity: 0;
  visibility: hidden;
}

/* vanilla crosshair sprite */
.crosshair {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 32px;
  height: 32px;
  translate: -50% -50%;
  background: url("../img/mc-crosshair.png?v=d3860185") center / contain no-repeat;
  mix-blend-mode: difference;
}

/* debug overlay (F3) */
.debug-panel {
  position: absolute;
  left: 4px;
  top: 4px;
  display: none;
  flex-direction: column;
  font-size: 0.72rem;
  line-height: 1.5;
  color: #fff;
  white-space: pre;
  pointer-events: none;
}

.debug-panel div {
  background: rgba(16, 16, 16, 0.35);
  padding: 1px 4px;
  width: fit-content;
}

.debug-panel.is-open {
  display: flex;
}

.hud-tr {
  position: absolute;
  right: 6px;
  top: 4px;
  font-size: 0.72rem;
  color: #fff;
  background: rgba(16, 16, 16, 0.35);
  padding: 1px 6px;
}

/* bottom stack */
.hud-bottom {
  position: absolute;
  left: 50%;
  bottom: 6px;
  translate: -50% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: min(100%, 460px);
  padding: 0 4px;
}

.vitals {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: calc(9 * 40px + 8px);
  gap: 0.5rem;
  min-height: 18px;
}

.hearts {
  display: flex;
  gap: 1px;
  image-rendering: pixelated;
  filter: drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.7));
  transition: opacity 0.25s linear;
}

.heart {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  background: url("../img/mc-heart-empty.png?v=182c3283") center / contain no-repeat;
}

.heart[data-state="full"] {
  background-image: url("../img/mc-heart-full.png?v=4d0e4fe4");
}

.heart[data-state="half"] {
  background-image: url("../img/mc-heart-half.png?v=93602f49");
}

.air {
  display: flex;
  flex-direction: row-reverse;
  gap: 1px;
  opacity: 0;
  transition: opacity 0.3s linear;
}

.air i {
  width: 18px;
  height: 18px;
  image-rendering: pixelated;
  background: url("../img/mc-bubble-full.png?v=4a0dc527") center / contain no-repeat;
}

.air i:not(.is-on) {
  background-image: url("../img/mc-bubble-empty.png?v=e4145aa8");
  opacity: 0.6;
}

/* hotbar — vanilla widgets.png sprite */
.hotbar {
  position: relative;
  display: flex;
  width: 364px;
  height: 44px;
  background: url("../img/mc-hotbar.png?v=be09129f") 0 0 / 100% 100% no-repeat;
  image-rendering: pixelated;
  pointer-events: auto;
}

.hb-slot {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 2px 0 0 2px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hb-slot.is-active::after {
  content: "";
  position: absolute;
  left: -4px;
  top: -5px;
  width: 48px;
  height: 48px;
  background: url("../img/mc-hotbar-sel.png?v=743f5b35") center / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}

.hb-icon {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
  pointer-events: none;
}

.hb-count {
  position: absolute;
  right: 2px;
  bottom: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  pointer-events: none;
}

.hb-key {
  display: none;
}

.hb-dur {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 3px;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  overflow: hidden;
  pointer-events: none;
}

.hb-dur i {
  display: block;
  height: 100%;
  background: #6fd96f;
}

/* toast — chat-style line */
.toast {
  position: absolute;
  left: 50%;
  bottom: 132px;
  translate: -50% 6px;
  padding: 3px 10px;
  background: rgba(16, 16, 16, 0.55);
  font-size: 0.78rem;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s linear, translate 0.2s linear;
  white-space: nowrap;
}

.toast.is-on {
  opacity: 1;
  translate: -50% 0;
}

/* item tooltip (vanilla purple-bordered box) */
.item-tooltip {
  position: fixed;
  z-index: 300;
  display: none;
  padding: 5px 8px 6px;
  border: 2px solid #2b0a4f;
  border-radius: 2px;
  background: rgba(16, 0, 24, 0.94);
  box-shadow: inset 0 0 0 2px #4b1c7a;
  font-size: 0.72rem;
  line-height: 1.6;
  color: #d8d8d8;
  pointer-events: none;
  max-width: 220px;
}

.item-tooltip.is-on {
  display: block;
}

/* hurt / underwater overlays */
.hurt-vignette,
.water-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s linear;
}

.hurt-vignette {
  background: radial-gradient(ellipse at center, transparent 35%, rgba(190, 20, 30, 0.55) 100%);
}

.water-vignette {
  background: radial-gradient(ellipse at center, rgba(30, 110, 200, 0.18), rgba(10, 45, 95, 0.6));
  z-index: 5;
}

.mc.is-hurt .hurt-vignette {
  opacity: 1;
}

.mc.is-underwater .water-vignette {
  opacity: 1;
}

/* ------------------------------------------------------------
   Screens — vanilla dirt backdrop (applied from ui.js)
   ------------------------------------------------------------ */
.screen {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s linear, visibility 0.2s linear;
  overflow: auto;
}

.screen.is-open {
  opacity: 1;
  visibility: visible;
}

.panel {
  width: min(100%, 380px);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.mc-logo {
  display: flex;
  justify-content: center;
}

.mc-logo img {
  width: min(100%, 320px);
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.6));
}

.panel__tag {
  text-align: center;
  font-size: 0.72rem;
  color: #ffff55;
  margin-bottom: 0.4rem;
}

.panel__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 0.4rem;
}

.panel__sub {
  font-size: 0.74rem;
  line-height: 1.7;
  color: #c8c8c8;
  text-align: center;
  margin-bottom: 0.4rem;
}

.panel__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.field label {
  font-size: 0.72rem;
  color: #d8d8d8;
}

.field input[type="text"],
.field input[type="number"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 2px solid #a0a0a0;
  background: #000;
  color: #e8e8e8;
  font: inherit;
  font-size: 0.86rem;
  outline: none;
}

.field input[type="text"]:focus,
.field input[type="number"]:focus {
  border-color: #fff;
}

.field input[type="range"] {
  width: 100%;
  accent-color: #8b8b8b;
}

.row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* mode buttons: two vanilla slabs */
.mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mode-btn {
  padding: 0.55rem 0.6rem 0.62rem;
  border: 2px solid #000;
  background-image: url("../img/mc-btn.png?v=703046da");
  background-size: 100% 100%;
  image-rendering: pixelated;
  color: #e8e8e8;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
}

.mode-btn:hover {
  color: #ffffa0;
}

.mode-btn.is-active {
  background-image: url("../img/mc-btn-hover.png?v=96db1c13");
  color: #ffff55;
}

.panel__actions {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.panel__hint {
  font-size: 0.66rem;
  line-height: 1.8;
  color: #9a9a9a;
  text-align: center;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 0.3rem;
  margin: 0 1px;
  border: 1px solid #555;
  background: #1c1c1c;
  font-family: inherit;
  font-size: 0.62rem;
  color: #fff;
}

/* loading */
.load-mark {
  display: flex;
  gap: 4px;
  margin-bottom: 0.9rem;
  justify-content: center;
}

.load-mark i {
  width: 16px;
  height: 16px;
  background: url("../img/mc-dirt-dark.png?v=75ca5e16") 0 0 / 16px 16px;
  image-rendering: pixelated;
  animation: loadpulse 0.9s infinite ease-in-out;
}

.load-mark i:nth-child(2) { animation-delay: 0.15s; }
.load-mark i:nth-child(3) { animation-delay: 0.3s; }

@keyframes loadpulse {
  0%, 100% { transform: translateY(0); filter: brightness(1); }
  50% { transform: translateY(-4px); filter: brightness(1.6); }
}

.load-track {
  height: 12px;
  border: 2px solid #000;
  background: #101010;
  overflow: hidden;
}

.load-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #6aa84b, #9fd77e);
  transition: width 0.2s linear;
}

.load-text {
  margin-top: 0.55rem;
  font-size: 0.72rem;
  color: #b8b8b8;
  text-align: center;
}

/* pause settings */
.settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.setting {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.74rem;
  color: #d0d0d0;
}

/* death */
.death-title {
  color: #ff5c5c;
}

/* ------------------------------------------------------------
   Container GUI — classic gray panel drawn in CSS (no image),
   vanilla colors: #c6c6c6 face, dark/light bevel borders.
   ------------------------------------------------------------ */
.gui {
  position: relative;
  background: #c6c6c6;
  border: 3px solid;
  border-color: #ffffff #555555 #555555 #ffffff;
  box-shadow: 0 0 0 3px #000, 0 14px 40px rgba(0, 0, 0, 0.6);
  color: #3f3f3f;
  padding: 14px;
}

.gui__label {
  font-size: 0.78rem;
  color: #3f3f3f;
  text-shadow: none;
  margin-bottom: 10px;
}

.gui__close {
  position: absolute;
  right: 10px;
  top: 10px;
}

.gui__hint {
  margin-top: 10px;
  font-size: 0.62rem;
  color: #6b6b6b;
  line-height: 1.6;
  text-shadow: none;
}

.gui__arrow {
  position: relative;
  width: 44px;
  height: 16px;
  background: #8b8b8b;
  clip-path: polygon(0 30%, 60% 30%, 60% 0, 100% 50%, 60% 100%, 60% 70%, 0 70%);
}

/* vanilla slot: dark inset cell */
.slot {
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid;
  border-color: #373737 #fff #fff #373737;
  background: #8b8b8b;
  cursor: pointer;
}

.slot:hover {
  background: #a5a5a5;
}

.slot-icon {
  width: 30px;
  height: 30px;
  image-rendering: pixelated;
  pointer-events: none;
}

.slot-count {
  position: absolute;
  right: 2px;
  bottom: 0;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 1px 1px 0 #3f3f3f;
  pointer-events: none;
}

.slot-dur {
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 3px;
  height: 3px;
  background: rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: none;
  pointer-events: none;
}

.slot-dur i {
  display: block;
  height: 100%;
  background: #6fd96f;
}

.slot-grid {
  display: grid;
  gap: 0;
}

/* crafting rows: grid + arrow + output */
.gui__craft2,
.gui__craft3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.craft-out .slot {
  width: 44px;
  height: 44px;
}

/* 27-slot backpack rows + 9-slot hotbar row */
.inv-grid {
  display: grid;
  grid-template-columns: repeat(9, 36px);
  gap: 0;
}

.inv-grid--hotbar {
  margin-top: 10px;
}

#craft-grid-3 {
  grid-template-columns: repeat(3, 36px);
}

/* recipe book */
.recipes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  gap: 0.4rem;
  max-height: 150px;
  overflow: auto;
  margin-bottom: 12px;
}

.recipe {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.45rem;
  background: #8b8b8b;
  border: 2px solid;
  border-color: #373737 #fff #fff #373737;
}

.recipe-grid {
  display: grid;
  gap: 1px;
}

.recipe-cell {
  width: 20px;
  height: 20px;
  background: #6f6f6f;
  image-rendering: pixelated;
}

.recipe-arrow {
  color: #4f4f4f;
  font-size: 0.8rem;
  text-shadow: none;
}

.recipe-out {
  position: relative;
  display: grid;
  place-items: center;
}

.recipe-out canvas {
  image-rendering: pixelated;
}

.recipe-out b {
  position: absolute;
  right: -2px;
  bottom: -2px;
  font-size: 0.6rem;
  color: #fff;
  text-shadow: 1px 1px 0 #3f3f3f;
}

/* furnace area: input/fuel/output + flame/progress bars */
.gui__furnace {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 10px 0;
}

.furnace-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.furnace-label {
  font-size: 0.6rem;
  color: #4f4f4f;
  text-shadow: none;
}

.furnace-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fbar {
  width: 60px;
  height: 10px;
  background: #6f6f6f;
  border: 2px solid;
  border-color: #373737 #fff #fff #373737;
  overflow: hidden;
}

.fbar i {
  display: block;
  height: 100%;
  width: 0;
}

.fbar.burn i {
  background: linear-gradient(90deg, #ff9d4d, #ff5d3d);
}

.fbar.prog i {
  background: #e8e8e8;
}

.cursor-ghost {
  position: fixed;
  z-index: 200;
  width: 32px;
  height: 32px;
  translate: -50% -50%;
  pointer-events: none;
  opacity: 0.92;
}

.cursor-ghost canvas {
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.cursor-ghost span {
  position: absolute;
  right: 0;
  bottom: 0;
  font-size: 0.66rem;
  font-weight: 700;
}

/* ------------------------------------------------------------
   Touch controls — left stick, right thumb arc, slim utility rail
   ------------------------------------------------------------ */
.touch {
  position: absolute;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  display: none;
}

.touch.is-on {
  display: block;
}

/* ---- movement stick, bottom left thumb zone ---- */
.joystick {
  position: absolute;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(22px, env(safe-area-inset-bottom));
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 20, 20, 0.34) 0%, rgba(20, 20, 20, 0.12) 58%, transparent 72%);
  border: 2px solid rgba(255, 255, 255, 0.16);
  pointer-events: auto;
  touch-action: none;
}

.joystick__ring {
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.18);
}

.knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.75);
  background: linear-gradient(#e8e8e8, #b0b0b0 60%, #8b8b8b);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.7), inset -2px -3px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.05s linear;
}

/* ---- action fan: buttons placed on an arc around the thumb hub ---- */
.action-wheel {
  position: absolute;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 190px;
  height: 190px;
  pointer-events: none;
}

.action-wheel::before {
  /* faint hub so the arc reads as one control cluster */
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(20, 20, 20, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.act {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.8);
  background: radial-gradient(circle at 35% 30%, #f0f0f0, #b8b8b8 58%, #8b8b8b);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.65), inset -2px -3px 0 rgba(0, 0, 0, 0.32),
    0 3px 8px rgba(0, 0, 0, 0.45);
  color: #1d1d1d;
  font: inherit;
  pointer-events: auto;
  touch-action: none;
  text-shadow: none;
  transition: transform 0.06s linear, filter 0.06s linear;
}

.act__glyph {
  font-size: 1.05rem;
  line-height: 1;
}

.act__label {
  font-size: 0.5rem;
  line-height: 1;
  opacity: 0.75;
}

/* arc radii: primary dig button lowest-right, others fanned up-left */
.act--break {
  right: 4px;
  bottom: 4px;
  width: 78px;
  height: 78px;
}

.act--break .act__glyph {
  font-size: 1.35rem;
}

.act--place {
  right: 80px;
  bottom: 24px;
  width: 64px;
  height: 64px;
}

.act--jump {
  right: 22px;
  bottom: 84px;
  width: 64px;
  height: 64px;
}

.act--sneak {
  right: 92px;
  bottom: 96px;
  width: 56px;
  height: 56px;
}

.act.is-primary {
  background: radial-gradient(circle at 35% 30%, #d8f0c8, #8fc472 58%, #5f9448);
}

.act:active,
.act.is-pressed {
  transform: scale(0.94);
  filter: brightness(1.15);
}

.act.is-active {
  background: radial-gradient(circle at 35% 30%, #fff6b0, #d8c85a 58%, #a89838);
}

/* ---- utility rail: quiet, icon-only, right edge above the arc ---- */
.touch-utility {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 200px);
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.touch-utility button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 2px solid rgba(0, 0, 0, 0.7);
  background: rgba(60, 60, 60, 0.62);
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.3), inset -1px -2px 0 rgba(0, 0, 0, 0.35);
  color: #f0f0f0;
  font: inherit;
  pointer-events: auto;
  touch-action: none;
}

.touch-utility .u-glyph {
  font-size: 0.95rem;
  line-height: 1;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.6);
}

.touch-utility button:active,
.touch-utility button.is-active {
  background: rgba(255, 246, 176, 0.75);
  color: #2a2a2a;
}

.is-touch .desktop-only {
  display: none;
}

/* keep the HUD clear of the thumb clusters: the hotbar sits
   above the action wheel instead of behind it */
.is-touch .hud-bottom {
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 196px);
  width: calc(9 * 40px + 8px);
  gap: 3px;
}

.is-touch .vitals {
  width: calc(9 * 40px + 8px);
}

/* touch hotbar shrinks so it stays compact above the controls */
.is-touch .hotbar {
  transform: scale(0.72);
  transform-origin: bottom center;
}

/* landscape phones: shrink clusters a touch */
@media (max-height: 460px) {
  .joystick {
    width: 108px;
    height: 108px;
  }

  .knob {
    width: 46px;
    height: 46px;
    margin: -23px 0 0 -23px;
  }

  .action-wheel {
    width: 158px;
    height: 158px;
  }

  .act--break { width: 66px; height: 66px; }
  .act--place { right: 68px; bottom: 20px; width: 54px; height: 54px; }
  .act--jump { right: 18px; bottom: 70px; width: 54px; height: 54px; }
  .act--sneak { right: 78px; bottom: 80px; width: 48px; height: 48px; }

  .touch-utility {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + 168px);
  }

  .touch-utility button {
    width: 38px;
    height: 38px;
  }

  .is-touch .hotbar {
    transform: scale(0.78);
    transform-origin: bottom center;
  }
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 620px) {
  .gui {
    transform: scale(0.8);
    transform-origin: center;
  }

  .inv-grid {
    grid-template-columns: repeat(9, 30px);
  }

  .slot {
    width: 30px;
    height: 30px;
  }

  .slot-icon {
    width: 24px;
    height: 24px;
  }

  #craft-grid-3 {
    grid-template-columns: repeat(3, 30px);
  }

  .hotbar {
    transform: scale(0.85);
    transform-origin: bottom center;
  }

  .vitals {
    width: calc(9 * 34px + 8px);
  }

  .heart,
  .air i {
    width: 15px;
    height: 15px;
  }

  .hud-bottom {
    width: 100%;
    padding: 0 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hud,
  .screen,
  .toast,
  .load-mark i {
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}
