html.miner-mode {
  --miner-grass: #67ad43;
  --miner-dark: #1c2018;
  color-scheme: dark;
  overflow: hidden;
}

html.miner-mode body {
  min-height: 100vh;
  overflow: hidden;
  background: #6eacde;
  color: #f8fff2;
  font-family: "Courier New", ui-monospace, monospace;
  image-rendering: pixelated;
}

.miner-world {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: #77b5e5;
  user-select: none;
  touch-action: none;
}

.miner-world::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  background: #142354;
  opacity: 0;
  mix-blend-mode: multiply;
  pointer-events: none;
  animation: miner-day-cycle 48s ease-in-out infinite;
}

.miner-map {
  --camera-x: 0px;
  --camera-y: 0px;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  transform: translate3d(calc(-1 * var(--camera-x)), calc(-1 * var(--camera-y)), 0);
  will-change: transform;
  background-color: #6caf47;
  background-image:
    linear-gradient(90deg, rgb(255 255 255 / .05) 1px, transparent 1px),
    linear-gradient(rgb(255 255 255 / .05) 1px, transparent 1px),
    radial-gradient(circle at 14% 18%, #8ac45e 0 9%, transparent 9.2%),
    radial-gradient(circle at 72% 65%, #559737 0 12%, transparent 12.2%),
    linear-gradient(135deg, transparent 48%, rgb(45 102 46 / .12) 48% 52%, transparent 52%);
  background-size: 44px 44px, 44px 44px, 900px 720px, 1100px 820px, 88px 88px;
  box-shadow: inset 0 0 160px rgb(28 58 32 / .35);
}

.miner-map-water {
  position: absolute;
  left: 132px;
  top: 1078px;
  width: 1050px;
  height: 720px;
  border: 18px solid #d3bd74;
  background-color: #3c94ce;
  background-image: repeating-linear-gradient(0deg, rgb(255 255 255 / .12) 0 3px, transparent 3px 22px);
  clip-path: polygon(4% 8%, 36% 0, 55% 7%, 86% 2%, 100% 24%, 94% 58%, 100% 88%, 71% 100%, 41% 93%, 16% 100%, 0 72%, 7% 41%);
}

.miner-map-sand {
  position: absolute;
  left: 2110px;
  top: 180px;
  width: 760px;
  height: 580px;
  background: #d6bd6c;
  clip-path: polygon(7% 20%, 32% 1%, 72% 9%, 98% 37%, 87% 79%, 58% 100%, 20% 91%, 0 55%);
  opacity: .92;
}

.miner-map-forest,
.miner-map-rocks {
  position: absolute;
  width: 820px;
  height: 620px;
  background-size: 88px 88px;
  filter: drop-shadow(8px 9px 0 rgb(31 63 31 / .18));
}

.miner-map-forest {
  left: 1040px;
  top: 220px;
  background-image:
    radial-gradient(circle at 50% 35%, #2e7139 0 20px, transparent 21px),
    linear-gradient(90deg, transparent 43%, #725034 43% 57%, transparent 57%);
}

.miner-map-rocks {
  left: 2110px;
  top: 1210px;
  transform: rotate(-6deg);
  background-image: linear-gradient(135deg, transparent 33%, #878b83 33% 66%, transparent 66%);
  opacity: .82;
}

.miner-path {
  position: absolute;
  z-index: 1;
  background-color: #aa8955;
  background-image: repeating-linear-gradient(135deg, rgb(255 255 255 / .09) 0 12px, transparent 12px 28px);
  border: 6px solid #947448;
  box-shadow: inset 0 0 0 3px rgb(255 220 145 / .16);
}
.miner-path-main { left: 690px; top: 0; width: 150px; height: 1450px; transform: rotate(-3deg); }
.miner-path-branch { left: 720px; top: 710px; width: 1080px; height: 118px; transform: rotate(2deg); }

.miner-raised-ground {
  position: absolute;
  z-index: 2;
  border: 12px solid #70482c;
  border-top-color: #8bd05c;
  background-color: #5e9e3d;
  background-image: linear-gradient(90deg, rgb(255 255 255 / .08) 1px, transparent 1px), linear-gradient(rgb(255 255 255 / .08) 1px, transparent 1px);
  background-size: 44px 44px;
  box-shadow: 14px 18px 0 rgb(57 49 31 / .32), inset 0 -16px rgb(67 115 45 / .35);
}
.miner-raised-one { left: 1180px; top: 840px; width: 570px; height: 390px; }
.miner-raised-two { left: 1880px; top: 1520px; width: 430px; height: 300px; }

.miner-spawn-house {
  position: absolute;
  z-index: 3;
  left: 890px;
  top: 600px;
  width: 220px;
  height: 176px;
  border: 10px solid #53341f;
  background: repeating-linear-gradient(90deg, #aa6a35 0 34px, #7f4b29 34px 42px);
  box-shadow: 16px 18px 0 rgb(41 34 27 / .3), inset 0 0 0 6px rgb(255 255 255 / .12);
}
.miner-spawn-house::before { content: "SPAWN"; position: absolute; left: 50%; top: -34px; padding: 5px 8px; border: 3px solid #342113; background: #6e472b; color: #fff; font: 900 12px/1 monospace; transform: translateX(-50%); }
.miner-spawn-house span { position: absolute; left: 77px; bottom: -10px; width: 66px; height: 88px; border: 7px solid #3b291d; background: #4b2d1a; }
.miner-spawn-house i, .miner-spawn-house b { position: absolute; top: 38px; width: 44px; height: 44px; border: 6px solid #4a3021; background: #84d9ed; box-shadow: inset 7px 7px rgb(255 255 255 / .3); }
.miner-spawn-house i { left: 20px; }.miner-spawn-house b { right: 20px; }

.miner-cave {
  position: absolute;
  z-index: 3;
  left: 1360px;
  top: 980px;
  width: 160px;
  height: 120px;
  border: 18px solid #777b75;
  border-bottom-width: 8px;
  background: radial-gradient(ellipse at 50% 100%, #050606 0 58%, #282b29 59% 100%);
  box-shadow: 12px 14px rgb(0 0 0 / .26), inset 0 0 28px #000;
}
.miner-cave span { position: absolute; left: 50%; top: -38px; padding: 5px 7px; background: #343832; color: #eee; font: 900 11px/1 monospace; transform: translateX(-50%); }

.miner-flowers {
  position: absolute;
  z-index: 2;
  left: 360px;
  top: 510px;
  width: 520px;
  height: 370px;
  background-image: radial-gradient(circle, #ffe356 0 5px, #fff 6px 10px, transparent 11px), radial-gradient(circle, #ff5680 0 5px, #fff 6px 10px, transparent 11px);
  background-position: 18px 22px, 70px 68px;
  background-size: 104px 92px;
  opacity: .9;
}

.minecraft-build-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.minecraft-placed-block {
  position: absolute;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 2px solid rgb(20 20 20 / .72);
  border-radius: 0;
  pointer-events: auto;
  cursor: url("images/cursor-hand-light.svg") 8 2, crosshair;
  image-rendering: pixelated;
  box-shadow: inset 5px 5px 0 rgb(255 255 255 / .18), inset -5px -5px 0 rgb(0 0 0 / .24), 6px 8px 0 rgb(0 0 0 / .2);
  animation: minecraft-block-place 120ms steps(2);
}

.minecraft-placed-block:hover { filter: brightness(1.22); outline: 3px solid rgb(255 255 255 / .75); }
.minecraft-placed-block.is-mined { opacity: 0; transform: scale(.3) rotate(8deg); transition: 130ms steps(2); }

.miner-block-particle {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  background: inherit;
  box-shadow: 1px 1px rgb(0 0 0 / .3);
  pointer-events: none;
  animation: miner-particle-burst 280ms steps(4) forwards;
}

.minecraft-placed-block[data-block="grass"], .miner-block-icon[data-block="grass"] { background: linear-gradient(#61bc38 0 30%, #3f8d2c 30% 38%, #855b36 38%); }
.minecraft-placed-block[data-block="stone"], .miner-block-icon[data-block="stone"] { background-color: #8d9291; background-image: linear-gradient(135deg, transparent 58%, rgb(63 66 66 / .35) 58% 72%, transparent 72%); background-size: 18px 18px; }
.minecraft-placed-block[data-block="diamond"], .miner-block-icon[data-block="diamond"] { background-color: #48e1df; background-image: linear-gradient(45deg, transparent 35%, rgb(255 255 255 / .5) 35% 50%, transparent 50% 75%, rgb(12 124 139 / .36) 75%); background-size: 22px 22px; }
.minecraft-placed-block[data-block="wood"], .miner-block-icon[data-block="wood"] { background: repeating-linear-gradient(90deg, #a76c39 0 8px, #704626 8px 13px); }
.minecraft-placed-block[data-block="torch"], .miner-block-icon[data-block="torch"] { background: linear-gradient(#ffe45b 0 28%, #ff922e 28% 38%, #9c652c 38%); box-shadow: 0 0 18px 5px rgb(255 214 72 / .65), inset 3px 0 rgb(255 255 255 / .2); }
.minecraft-placed-block[data-block="torch"] { width: 14px; margin-left: 15px; }
.minecraft-placed-block[data-block="obsidian"], .miner-block-icon[data-block="obsidian"] { background-color: #25163c; background-image: linear-gradient(135deg, #654389 0 10%, transparent 10% 42%, #442660 42% 53%, transparent 53% 80%, #8653a6 80%); background-size: 24px 24px; }

.miner-player {
  position: fixed;
  z-index: 8;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 44px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: drop-shadow(5px 7px 0 rgb(0 0 0 / .24));
}

.miner-player::before,
.miner-player::after,
.miner-player span { content: ""; position: absolute; left: 7px; width: 20px; border: 3px solid #211b16; }
.miner-player::before { top: 0; height: 17px; background: #e4ad82; box-shadow: inset 0 5px #6d432e; }
.miner-player span { top: 19px; height: 17px; background: #45b8bf; }
.miner-player::after { top: 37px; height: 7px; background: linear-gradient(90deg, #383f8c 0 42%, transparent 42% 58%, #383f8c 58%); border-top: 0; }

.miner-crosshair {
  position: fixed;
  z-index: 9;
  left: 50%;
  top: 50%;
  color: rgb(255 255 255 / .74);
  font: 900 23px/1 Arial, sans-serif;
  transform: translate(-50%, -50%);
  text-shadow: 1px 1px #111;
  pointer-events: none;
}

.miner-hud {
  position: fixed;
  z-index: 10030;
  inset: 0;
  color: #fff;
  font-family: "Courier New", ui-monospace, monospace;
  text-shadow: 2px 2px 0 #111;
  pointer-events: none;
}

.miner-topbar { position: absolute; inset: max(12px, env(safe-area-inset-top)) 14px auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.miner-title { font-size: clamp(1.1rem, 3vw, 1.65rem); font-weight: 900; line-height: .82; letter-spacing: -.08em; transform: rotate(-1deg); }
.miner-title span, .miner-title strong { display: block; }
.miner-title strong { color: #7bd34c; }
.miner-coordinates { padding: .45rem .6rem; background: rgb(18 24 15 / .68); font: 700 .65rem/1 monospace; letter-spacing: .08em; }
.miner-dvd-loot {
  display: grid;
  gap: .1rem;
  min-width: 145px;
  padding: .4rem .55rem;
  border: 2px solid #3d2854;
  background: rgb(36 20 53 / .88);
  box-shadow: inset 2px 2px rgb(181 113 235 / .22);
  text-align: left;
}
.miner-dvd-loot span { color: #c899f2; font: 800 .52rem/1 monospace; letter-spacing: .12em; }
.miner-dvd-loot strong { color: #fff; font: 800 .58rem/1.2 monospace; }

.miner-minimap {
  position: relative;
  width: 108px;
  height: 66px;
  overflow: hidden;
  border: 3px solid #29231c;
  background: #68aa48;
  box-shadow: inset 0 0 0 2px rgb(255 255 255 / .18), 4px 4px rgb(0 0 0 / .24);
}
.miner-minimap::before { content: ""; position: absolute; left: 4px; bottom: -12px; width: 42px; height: 43px; border: 4px solid #d2bd74; background: #3b94ce; transform: rotate(8deg); }
.miner-minimap i { position: absolute; right: 12px; top: 8px; width: 28px; height: 21px; background: #2e7139; box-shadow: -30px 6px #2e7139, 0 28px #2e7139; }
.miner-minimap b { position: absolute; left: 51%; top: 0; width: 6px; height: 100%; background: #a98955; transform: rotate(-3deg); }
.miner-minimap-player { position: absolute; z-index: 2; width: 7px; height: 7px; border: 2px solid #fff; background: #ff4545; box-shadow: 0 0 0 2px #111; transform: translate(-50%, -50%); transition: left 80ms linear, top 80ms linear; }
.miner-actions { display: flex; gap: .45rem; pointer-events: auto; }
.miner-actions button {
  display: flex;
  align-items: center;
  gap: .42rem;
  min-height: 38px;
  padding: .45rem .58rem;
  border: 3px solid #201b16;
  border-radius: 0;
  background: #777067;
  color: #fff;
  box-shadow: inset 0 0 0 2px #a9a196, 4px 4px 0 rgb(0 0 0 / .3);
  font: 800 .66rem/1 "Courier New", monospace;
  cursor: pointer;
}
.miner-actions button:hover { filter: brightness(1.18); }
.miner-actions button[aria-pressed="false"] { background: #4a4640; color: #b9b8b3; box-shadow: inset 0 0 0 2px #6f6b65, 4px 4px 0 rgb(0 0 0 / .3); }
.miner-actions span { color: #8ce35c; font-size: 1rem; }
kbd { padding: .12rem .25rem; border: 1px solid #171717; background: #292929; color: #ffe45c; font: 700 .57rem/1 monospace; box-shadow: inset 1px 1px rgb(255 255 255 / .16); }

.miner-build-help { position: absolute; left: 50%; bottom: 6.8rem; width: max-content; margin: 0; font-size: .66rem; font-weight: 800; transform: translateX(-50%); }
.miner-health { position: absolute; left: 50%; bottom: 5.5rem; display: flex; gap: .14rem; color: #f04747; font-size: .76rem; transform: translateX(-50%); }
.miner-level { position: absolute; left: 50%; bottom: 4.55rem; width: min(24rem, calc(100vw - 2rem)); height: .42rem; border: 2px solid #181818; background: #36b834; transform: translateX(-50%); }
.miner-level span { position: absolute; left: 50%; bottom: .24rem; color: #91f06e; font-size: .8rem; font-weight: 900; transform: translateX(-50%); }

.miner-hotbar { position: absolute; left: 50%; bottom: max(.7rem, env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(6, 3.25rem); transform: translateX(-50%); pointer-events: auto; }
.miner-hotbar button { position: relative; display: grid; place-items: center; width: 3.25rem; height: 3.25rem; padding: 0; border: 3px solid #1c1c1c; border-right-width: 1px; border-radius: 0; background: rgb(77 77 77 / .9); cursor: pointer; }
.miner-hotbar button:last-child { border-right-width: 3px; }
.miner-hotbar button.is-selected { z-index: 1; outline: 3px solid #fff; outline-offset: -5px; }
.miner-hotbar button.is-locked { filter: grayscale(1) brightness(.55); cursor: not-allowed; }
.miner-block-icon { display: block; width: 1.9rem; height: 1.9rem; box-shadow: inset 3px 3px 0 rgb(255 255 255 / .18), inset -3px -3px 0 rgb(0 0 0 / .22); }
.miner-block-icon[data-block="torch"] { width: .48rem; }
.miner-hotbar small { position: absolute; right: .18rem; bottom: .04rem; color: #fff; font: 700 .65rem/1 monospace; text-shadow: 1px 1px #000; }
.miner-hotbar kbd { position: absolute; left: 2px; top: 2px; padding: 0; border: 0; background: transparent; color: rgb(255 255 255 / .68); box-shadow: none; }

.miner-move-pad { position: absolute; left: 16px; bottom: 18px; display: none; grid-template: repeat(2, 42px) / repeat(3, 42px); gap: 3px; pointer-events: auto; }
.miner-move-pad button { border: 2px solid #1a1917; border-radius: 0; background: rgb(54 53 49 / .82); color: #fff; box-shadow: inset 2px 2px rgb(255 255 255 / .15); touch-action: none; }
.miner-move-pad button:nth-child(1) { grid-area: 1 / 2; }
.miner-move-pad button:nth-child(2) { grid-area: 2 / 1; }
.miner-move-pad button:nth-child(3) { grid-area: 2 / 2; }
.miner-move-pad button:nth-child(4) { grid-area: 2 / 3; }

.miner-status {
  position: fixed;
  z-index: 10050;
  left: 50%;
  top: 5rem;
  width: max-content;
  max-width: calc(100vw - 2rem);
  padding: .72rem .9rem;
  border: 3px solid #221c16;
  background: rgb(31 28 24 / .95);
  color: #fff;
  font: 700 .75rem/1.35 "Courier New", monospace;
  text-align: center;
  text-shadow: 2px 2px #111;
  opacity: 0;
  transform: translate(-50%, -.5rem);
  transition: opacity 140ms linear, transform 140ms steps(2);
  pointer-events: none;
}
.miner-status.is-visible { opacity: 1; transform: translate(-50%, 0); }

.miner-inventory-panel {
  position: fixed;
  z-index: 10045;
  left: 50%;
  top: 50%;
  width: min(610px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  padding: 1.1rem;
  border: 5px solid #27221d;
  outline: 3px solid rgb(255 255 255 / .35);
  background: #847b6e;
  color: #fff;
  box-shadow: inset 0 0 0 3px #aca396, 12px 14px 0 rgb(0 0 0 / .32);
  font: 700 .78rem/1.35 "Courier New", monospace;
  opacity: 0;
  transform: translate(-50%, -47%) scale(.96);
  pointer-events: none;
  transition: none;
}
.miner-inventory-panel.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.miner-inventory-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.miner-inventory-head small, .miner-inventory-head strong { display: block; }
.miner-inventory-head small { color: #d9d4ca; font-size: .62rem; }
.miner-inventory-head strong { color: #fff; font-size: 1.35rem; text-shadow: 3px 3px #34302b; }
.miner-inventory-head button { width: 34px; height: 34px; border: 3px solid #241f1a; border-radius: 0; background: #655e55; color: #fff; font: 900 1.1rem/1 monospace; cursor: pointer; }
.miner-inventory-panel > p { margin: .45rem 0 1rem; color: #f0eee8; font-size: .7rem; }
.miner-inventory-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.miner-inventory-grid > button { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: .7rem; min-width: 0; padding: .65rem; border: 3px solid #302a24; border-radius: 0; background: #625b52; color: #fff; text-align: left; box-shadow: inset 2px 2px #8f877c; cursor: pointer; }
.miner-inventory-grid > button:hover, .miner-inventory-grid > button.is-selected { background: #777066; outline: 2px solid #fff; }
.miner-inventory-grid > button.is-locked { filter: grayscale(.8); opacity: .58; cursor: not-allowed; }
.miner-inventory-grid span b, .miner-inventory-grid span small { display: block; }
.miner-inventory-grid span small { margin-top: .14rem; color: #d8d5ce; font-size: .58rem; }
.miner-inventory-tip { margin-top: 1rem; padding: .7rem; border: 2px solid #382a19; background: #493b27; color: #ffe181; font-size: .67rem; }

.miner-menu-backdrop {
  position: fixed;
  z-index: 10042;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgb(8 12 7 / .64);
  opacity: 0;
  pointer-events: none;
  transition: none;
  backdrop-filter: blur(2px);
}
.miner-menu-backdrop.is-open { opacity: 1; pointer-events: auto; }

.miner-pause-panel {
  position: fixed;
  z-index: 10046;
  left: 50%;
  top: 50%;
  display: grid;
  width: min(420px, calc(100vw - 2rem));
  padding: 1.25rem;
  border: 5px solid #241f1a;
  outline: 3px solid rgb(255 255 255 / .34);
  background: #81786c;
  color: #fff;
  box-shadow: inset 0 0 0 3px #aaa194, 12px 14px rgb(0 0 0 / .35);
  font-family: "Courier New", monospace;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, -47%) scale(.96);
  pointer-events: none;
}
.miner-pause-panel.is-open { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.miner-pause-panel > small { color: #e3dfd7; font: 800 .62rem/1 monospace; letter-spacing: .18em; }
.miner-pause-panel h2 { margin: .3rem 0 1rem; color: #fff; font: 900 1.7rem/1 "Courier New", monospace; letter-spacing: -.05em; text-shadow: 4px 4px #302b25; }
.miner-pause-panel h2::before { content: none !important; }
.miner-pause-panel > button { margin-top: .48rem; padding: .72rem 1rem; border: 3px solid #2c2721; border-radius: 0; background: #686159; color: #fff; box-shadow: inset 2px 2px #969087, 4px 4px rgb(0 0 0 / .24); font: 900 .75rem/1 "Courier New", monospace; cursor: pointer; }
.miner-pause-panel > button:hover, .miner-pause-panel > button:focus-visible { outline: 3px solid #fff; background: #7b746b; }
.miner-pause-panel > button.is-danger { color: #ffd1d1; background: #6d3c37; }
.miner-pause-panel > p { margin: 1rem 0 0; color: #e2ded6; font: 700 .58rem/1.5 monospace; }

html.miner-mode .page-shell,
html.miner-mode .site-footer {
  position: relative;
  z-index: 10;
  transition: opacity 260ms steps(4), transform 360ms cubic-bezier(.7, 0, .3, 1);
}

html.miner-mode .page-shell { max-width: 44rem; margin-top: 6rem; margin-bottom: 10rem; padding: 1.6rem; border: 5px solid #34281e; border-radius: 0; outline: 3px solid rgb(255 255 255 / .35); background: rgb(36 41 35 / .91); box-shadow: 10px 12px 0 rgb(20 30 25 / .35), inset 0 0 0 3px #6e665a; backdrop-filter: blur(3px); }
html.miner-mode .page-shell > section + section { margin-top: 2.2rem; padding-top: 1.4rem; border-top: 4px solid #736c5f; }
html.miner-mode h1, html.miner-mode h2, html.miner-mode h3, html.miner-mode .intro, html.miner-mode .project-copy p, html.miner-mode .activity-account { color: #fff; font-family: "Courier New", ui-monospace, monospace; text-shadow: 3px 3px #262626; }
html.miner-mode h1, html.miner-mode h2 { letter-spacing: .04em; text-transform: uppercase; }
html.miner-mode h1::after { content: "  LV. 27"; color: #74d13d; font-size: .55em; white-space: nowrap; }
html.miner-mode h2::before { content: "◆ "; color: #ffd84d; }
html.miner-mode .avatar { border: 4px solid #201a14; border-radius: 0; box-shadow: inset 0 0 0 2px #fff, 6px 6px rgb(0 0 0 / .32); image-rendering: pixelated; }
html.miner-mode .project-card, html.miner-mode .contribution-panel, html.miner-mode .social-links a { border-radius: 0; border: 4px solid #221c16; background: #71685b; box-shadow: inset 0 0 0 2px #9a9080, 6px 6px rgb(0 0 0 / .32); }
html.miner-mode .site-footer { border-top: 7px solid #2d241b; background: rgb(35 30 25 / .96); }
html.miner-mode .site-footer * { color: #fff; }
html.miner-content-hidden .page-shell { opacity: 0; transform: translateX(-120vw) rotate(-3deg); pointer-events: none; }
html.miner-content-hidden .site-footer { opacity: 0; transform: translateX(120vw); pointer-events: none; }

@keyframes minecraft-block-place { from { opacity: 0; transform: scale(.35); } }
@keyframes miner-particle-burst { to { opacity: 0; transform: translate(var(--particle-x), var(--particle-y)) rotate(90deg); } }
@keyframes miner-day-cycle { 0%, 38%, 100% { opacity: 0; } 58%, 76% { opacity: .34; } }

@media (max-width: 760px), (hover: none) {
  .miner-topbar { inset-inline: 8px; }
  .miner-title, .miner-coordinates, .miner-dvd-loot, .miner-minimap { display: none; }
  .miner-actions { width: 100%; justify-content: flex-end; }
  .miner-actions button { min-height: 34px; padding: .38rem .45rem; }
  .miner-actions button > span { display: none; }
  .miner-build-help { bottom: 6.3rem; font-size: .55rem; }
  .miner-health { bottom: 5.25rem; }
  .miner-level { bottom: 4.35rem; width: min(20rem, calc(100vw - 7rem)); }
  .miner-hotbar { right: 8px; left: auto; bottom: 8px; grid-template-columns: repeat(3, 2.9rem); transform: none; }
  .miner-hotbar button { width: 2.9rem; height: 2.9rem; }
  .miner-block-icon { width: 1.55rem; height: 1.55rem; }
  .miner-move-pad { display: grid; }
  .miner-inventory-grid { grid-template-columns: 1fr; }
  .miner-status { top: 4.2rem; }
  html.miner-mode .page-shell { width: calc(100% - 1.5rem); margin-top: 5rem; padding: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .miner-world::after { animation: none; opacity: 0; }
  .miner-status, .miner-inventory-panel, html.miner-mode .page-shell, html.miner-mode .site-footer { transition: none; }
  .minecraft-placed-block { animation: none; }
}
