:root {
  color-scheme: dark;
  --bg-1: #08111f;
  --bg-2: #13253c;
  --panel: rgba(7, 17, 29, 0.74);
  --panel-strong: rgba(9, 23, 38, 0.92);
  --screen: linear-gradient(180deg, #d9fffa 0%, #87f5dd 46%, #41c4b6 100%);
  --ink: #10222a;
  --accent: #ffd166;
  --accent-2: #ff7b72;
  --line: rgba(255, 255, 255, 0.1);
  --text: #edf7ff;
  --muted: #9db7ca;
  --glow: 0 0 40px rgba(94, 226, 209, 0.25);
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
  --ground-line: 66%;
  font-family: "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background: linear-gradient(180deg, #7fd6ff 0%, #b8ecff var(--ground-line), #87d65b var(--ground-line), #64b03f 100%);
  color: var(--text);
  overflow-x: hidden;
  transition: background 500ms ease;
}

body.night-mode {
  background: linear-gradient(180deg, #071326 0%, #18253d var(--ground-line), #355b2a var(--ground-line), #274420 100%);
}

body.weather-cloudy:not(.night-mode) {
  background: linear-gradient(180deg, #95cde8 0%, #c9e1ec var(--ground-line), #87d65b var(--ground-line), #64b03f 100%);
}

body.weather-rain:not(.night-mode) {
  background: linear-gradient(180deg, #6f94aa 0%, #aabcc8 var(--ground-line), #78bd50 var(--ground-line), #58943a 100%);
}

body.weather-snow:not(.night-mode) {
  background: linear-gradient(180deg, #bddfff 0%, #edf8ff var(--ground-line), #b7df90 var(--ground-line), #91c86a 100%);
}

body.night-mode.weather-cloudy {
  background: linear-gradient(180deg, #0a1424 0%, #253147 var(--ground-line), #355b2a var(--ground-line), #274420 100%);
}

body.night-mode.weather-rain {
  background: linear-gradient(180deg, #07101d 0%, #202b38 var(--ground-line), #2e4a28 var(--ground-line), #20391d 100%);
}

body.night-mode.weather-snow {
  background: linear-gradient(180deg, #10223b 0%, #35445c var(--ground-line), #3f6536 var(--ground-line), #294c25 100%);
}

body.night-mode .grass {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 18%, #416b2f 18%, #1f3d18 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 248, 172, 0.34) 0 110px, rgba(255, 239, 142, 0.15) 111px 260px, transparent 360px);
  mix-blend-mode: screen;
  transition: opacity 220ms ease;
}

body.light-on::before {
  opacity: 1;
}

body.home-mode {
  background:
    linear-gradient(180deg, #ffdca8 0%, #ffe8c8 58%, #b87948 58%, #8d5633 100%);
}

body.home-mode::after {
  content: "";
  position: fixed;
  left: 0;
  right: 0;
  top: 58%;
  height: 3px;
  background: rgba(93, 55, 31, 0.36);
  pointer-events: none;
}

.stage {
  position: relative;
  width: min(760px, calc(100vw - 28px));
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 1px 0 44px;
}

.sky-scene {
  position: fixed;
  inset: 0 0 auto 0;
  height: 62vh;
  pointer-events: none;
  overflow: hidden;
  transition: filter 400ms ease, opacity 400ms ease;
}

body.home-mode .sky-scene,
body.home-mode .grass,
body.home-mode .trees,
body.home-mode .cables {
  opacity: 0;
  visibility: hidden;
}

body.home-mode .desk-wrap {
  opacity: 1;
  visibility: visible;
  position: relative;
  z-index: 3;
}

body.home-mode .stage::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 82px;
  width: min(520px, calc(100vw - 40px));
  height: 260px;
  transform: translateX(-50%);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 22%, transparent 22% 78%, rgba(255, 255, 255, 0.18) 78% 100%),
    linear-gradient(180deg, #ffe9c7 0%, #ffd39d 100%);
  box-shadow:
    inset 0 0 0 6px rgba(175, 101, 53, 0.28),
    0 18px 44px rgba(89, 48, 20, 0.22);
  pointer-events: none;
  z-index: 0;
}

body.home-mode .stage::after {
  content: "";
  position: fixed;
  left: 50%;
  bottom: 8vh;
  width: min(620px, calc(100vw - 20px));
  height: 34vh;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 20% 20% 0 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 18px, transparent 18px 36px),
    linear-gradient(180deg, #b87948 0%, #7b4528 100%);
  pointer-events: none;
  z-index: 0;
}

.home-window-view {
  position: fixed;
  left: calc(50% - 260px);
  top: 112px;
  width: 130px;
  height: 92px;
  border: 8px solid #8b552f;
  border-radius: 10px;
  background: linear-gradient(180deg, #7fd6ff 0%, #b8ecff 68%, #7ad14a 68%, #5aa432 100%);
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.4),
    0 12px 20px rgba(92, 55, 28, 0.2);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  z-index: 1;
  overflow: hidden;
}

body.home-mode .home-window-view {
  opacity: 1;
  visibility: visible;
}

.home-window-view::before,
.home-window-view::after {
  content: "";
  position: absolute;
  background: #8b552f;
  z-index: 2;
}

.home-window-view::before {
  left: 50%;
  top: 0;
  width: 6px;
  height: 100%;
  transform: translateX(-50%);
}

.home-window-view::after {
  left: 0;
  top: 50%;
  width: 100%;
  height: 6px;
  transform: translateY(-50%);
}

.home-window-sun {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffd83d;
  box-shadow:
    0 0 12px rgba(255, 216, 61, 0.7),
    0 -13px 0 -10px #ff9800,
    9px -9px 0 -10px #ff9800,
    13px 0 0 -10px #ff9800,
    9px 9px 0 -10px #ff9800,
    0 13px 0 -10px #ff9800,
    -9px 9px 0 -10px #ff9800,
    -13px 0 0 -10px #ff9800,
    -9px -9px 0 -10px #ff9800;
}

.home-window-moon {
  position: absolute;
  right: 18px;
  top: 14px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f4f0d8;
  box-shadow: inset -8px 0 0 #b9c6e6, 0 0 10px rgba(244, 240, 216, 0.58);
  opacity: 0;
}

.window-sun-eye,
.window-moon-eye {
  position: absolute;
  top: 10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #2e2400;
}

.window-sun-eye.eye-left,
.window-moon-eye.eye-left {
  left: 9px;
}

.window-sun-eye.eye-right,
.window-moon-eye.eye-right {
  right: 9px;
}

.window-sun-mouth,
.window-moon-mouth {
  position: absolute;
  left: 50%;
  bottom: 7px;
  width: 10px;
  height: 5px;
  margin-left: -5px;
  border-bottom: 2px solid #2e2400;
  border-radius: 0 0 10px 10px;
}

body.home-mode.night-mode .home-window-sun {
  opacity: 0;
}

body.home-mode.night-mode .home-window-moon {
  opacity: 1;
}

.home-window-cloud {
  position: absolute;
  left: 18px;
  top: 26px;
  width: 50px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  opacity: 0.9;
  box-shadow:
    16px -8px 0 2px #ffffff,
    32px 0 0 -2px #ffffff;
}

.home-window-rain,
.home-window-snow {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.home-window-rain {
  background-image: repeating-linear-gradient(110deg, rgba(43, 116, 181, 0.72) 0 2px, transparent 2px 14px);
  background-size: 44px 44px;
  animation: rain-fall 0.48s linear infinite;
}

.home-window-snow {
  background-image: radial-gradient(circle, #ffffff 0 2px, transparent 3px);
  background-size: 22px 22px;
  animation: snow-fall 5.5s linear infinite;
}

body.home-mode.weather-rain .home-window-view {
  background: linear-gradient(180deg, #7d9fb8 0%, #b1c5d2 68%, #6aa6d8 68%, #3f7fb2 100%);
}

body.home-mode.weather-rain .home-window-rain,
body.home-mode.weather-snow .home-window-snow {
  opacity: 1;
}

body.home-mode.weather-snow .home-window-view {
  background: linear-gradient(180deg, #bddfff 0%, #edf8ff 68%, #f7fbff 68%, #dcecf7 100%);
}

body.home-mode.weather-rain .home-window-sun,
body.home-mode.weather-snow .home-window-sun {
  opacity: 0.35;
}

body.home-mode.night-mode.weather-rain .home-window-moon,
body.home-mode.night-mode.weather-snow .home-window-moon {
  opacity: 0.45;
}

body.home-mode.weather-snow .home-window-cloud {
  filter: brightness(0.92);
}

.home-outlet {
  position: fixed;
  left: calc(50% + 230px);
  top: 258px;
  z-index: 2;
  display: flex;
  gap: 6px;
  width: 48px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #e8edf1;
  border: 4px solid #8f969b;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
}

body.home-mode .home-outlet {
  opacity: 1;
  visibility: visible;
}

.home-outlet.charging {
  box-shadow:
    inset 0 -4px 0 rgba(0, 0, 0, 0.08),
    0 0 16px rgba(255, 224, 102, 0.86);
}

body.weather-cloudy .sky-scene {
  filter: saturate(0.78) brightness(0.92);
}

body.weather-rain .sky-scene {
  filter: saturate(0.62) brightness(0.78);
}

body.weather-snow .sky-scene {
  filter: saturate(0.72) brightness(1.04);
}

.sky-scene.terror-mode {
  filter: contrast(1.08) brightness(0.72);
}

body.terror-night {
  background: linear-gradient(180deg, #2b0000 0%, #4f0808 38%, #5f1212 var(--ground-line), #341010 100%);
}

body.terror-night .grass {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 18%, #355126 18%, #13240f 100%);
}

.sky-sun,
.sky-moon {
  position: absolute;
  left: 0;
  top: 0;
  width: 108px;
  height: 108px;
  margin-left: 0;
  animation: celestial-cross 60s linear forwards;
  animation-play-state: paused;
  transition: opacity 800ms ease, filter 600ms ease;
  pointer-events: auto;
  cursor: grab;
}

.sky-sun:active,
.sky-moon:active {
  cursor: grabbing;
}

.sky-sun {
  opacity: 1;
}

.sky-moon {
  opacity: 0;
}

.sky-sun.sky-dragging-source,
.sky-moon.sky-dragging-source,
.sky-sun.sky-away,
.sky-moon.sky-away {
  opacity: 0;
  pointer-events: none;
}

.sky-bubble {
  position: absolute;
  left: 86px;
  top: 12px;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 14px 14px 14px 4px;
  background: #4aa3ff;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  opacity: 0;
  transform: translateY(4px) scale(0.96);
  transition: opacity 180ms ease, transform 180ms ease;
  box-shadow: 0 8px 16px rgba(20, 80, 150, 0.24);
  pointer-events: none;
  z-index: 5;
}

.sky-bubble::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 22px;
  border: 7px solid transparent;
  border-right-color: #4aa3ff;
}

.sky-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

body.night-mode .sky-sun {
  opacity: 0;
  pointer-events: none;
}

body.night-mode .sky-moon {
  opacity: 1;
  pointer-events: auto;
}

body:not(.night-mode) .sky-sun {
  pointer-events: auto;
}

body:not(.night-mode) .sky-moon {
  pointer-events: none;
}

body.sky-sun-away .sky-sun,
body.sky-moon-away .sky-moon {
  opacity: 0;
  pointer-events: none;
}

.sun-core,
.moon-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.sun-core {
  background:
    radial-gradient(circle at 40% 32%, rgba(255, 255, 255, 0.72) 0 10%, transparent 11%),
    radial-gradient(circle, #fff675 0%, #ffd73d 58%, #ffb200 100%);
  box-shadow:
    0 0 0 10px rgba(255, 199, 61, 0.28),
    0 0 42px rgba(255, 211, 77, 0.5);
  animation: sun-bob 4.4s ease-in-out infinite, sun-glow-pulse 2.6s ease-in-out infinite;
}

.sun-eye,
.moon-eye {
  position: absolute;
  top: 35px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #2e2400;
  transform: translate(var(--sky-eye-look-x, 0px), var(--sky-eye-look-y, 0px));
  transition: transform 90ms linear;
}

.sun-eye-left,
.moon-eye-left {
  left: 31px;
}

.sun-eye-right,
.moon-eye-right {
  right: 31px;
}

.sun-eye {
  top: 38px;
  animation: sun-blink 5.2s ease-in-out infinite;
}

.sun-eye-left {
  left: 40px;
}

.sun-eye-right {
  right: 40px;
}

.sun-mouth,
.moon-mouth {
  position: absolute;
  left: 50%;
  bottom: 24px;
  width: 24px;
  height: 11px;
  margin-left: -12px;
  border: 4px solid #2e2400;
  border-top: 0;
  border-radius: 0 0 24px 24px;
  transition: transform 240ms ease;
}

.sun-ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 44px;
  margin-left: -12px;
  margin-top: -62px;
  background: linear-gradient(180deg, #ff7f00, #ff9f00);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform-origin: center 72px;
  animation: sun-ray-pulse 1.8s ease-in-out infinite alternate;
}

/* Pyramixed keeps the source artwork as one computer: the original face stays on
   its own screen, only the mouth moves, and text temporarily fills that screen. */
body[data-computer-version="pyramixed"] .pyramixed-host-art,
body[data-computer-version="pyramixed"] .screen-bezel {
  animation: none !important;
}

body[data-computer-version="pyramixed"] .mood-panel.face-mode,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) {
  background: transparent !important;
}

body[data-computer-version="pyramixed"] .mood-panel.face-mode .face-display,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .face-display {
  display: none !important;
  animation: none !important;
}

body[data-computer-version="pyramixed"] .mood-panel.text-mode {
  background: #050505 !important;
}

body[data-computer-version="pyramixed"] .computer-shell:has(.mood-panel.face-mode) .screen-bezel::after,
body[data-computer-version="pyramixed"] .computer-shell:has(.mood-panel.desktop-mode:not(.app-open)):not(:has(.computer-desktop.pyramixed-apps-open)) .screen-bezel::after {
  content: "⌄";
  position: absolute;
  left: 50%;
  top: 62px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 34px;
  height: 24px;
  border: 0;
  border-radius: 0;
  background: #050505;
  color: #fff;
  font: 900 28px/1 Arial,sans-serif;
  transform: translateX(-50%);
  clip-path: none;
  animation: pyramixed-only-mouth 1.25s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pyramixed-only-mouth {
  from { transform: translateX(-50%) translateY(0) scaleX(.92); }
  to { transform: translateX(-50%) translateY(2px) scaleX(1.08); }
}

/* Beginner flow: pick one of all twenty front-facing role icons, then enter the
   separate ordered stage page. */
.dance-tutorial-step[hidden]{display:none!important}
.dance-tutorial-step h3{margin:6px 0;font-size:16px}.dance-tutorial-step p{margin:3px 0 9px;font-size:11px}
.dance-tutorial-characters{display:grid!important;grid-template-columns:repeat(5,minmax(88px,1fr));gap:7px!important}
.dance-tutorial-character{grid-template-columns:42px minmax(0,1fr)!important;min-height:56px;text-align:left;box-shadow:inset 0 -4px #0002;transform:perspective(120px) rotateX(2deg)}
.dance-tutorial-character .dance-character-icon{width:40px!important;height:44px!important;filter:drop-shadow(0 3px 0 #0004)}
.dance-tutorial-next,.dance-tutorial-back{margin-top:9px;padding:9px 14px;border:2px solid #fff;border-radius:10px;background:#ffe466;color:#273142;font-weight:900}
.dance-tutorial-next{display:block;margin-left:auto}.dance-tutorial-selected{display:flex;align-items:center;justify-content:center;gap:9px;margin:8px 0;padding:7px;border-radius:10px;background:#ffffff18}.dance-tutorial-selected .dance-character-icon{width:44px;height:50px}
@media(max-width:700px){.dance-tutorial-characters{grid-template-columns:repeat(4,minmax(70px,1fr))}.dance-tutorial-character{grid-template-columns:30px minmax(0,1fr)!important;padding:3px;font-size:9px}.dance-tutorial-character .dance-character-icon{width:28px!important;height:34px!important}}

/* Pyramixed changes the monitor itself, not only the outside frame. */
.pyramixed-host-art {
  display: none;
}

body[data-computer-version="pyramixed"] .pyramixed-host-art {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  display: block;
  width: 250px;
  height: 542px;
  overflow: visible;
  transform: translateX(-50%);
  pointer-events: none;
  animation: pyramixed-host-idle 2.8s ease-in-out infinite alternate;
}

body[data-computer-version="pyramixed"] .pyramixed-host-art img {
  display: block;
  width: 250px;
  height: auto;
}

body[data-computer-version="pyramixed"] .hat-assembly {
  visibility: hidden;
}

body[data-computer-version="pyramixed"] .screen-bezel {
  position: absolute;
  top: 101px;
  left: 50%;
  z-index: 3;
  width: 160px;
  margin: 0;
  padding: 0;
  box-shadow: none;
  transform: translateX(-50%);
  animation: pyramixed-screen-idle 2.8s ease-in-out infinite alternate;
}

body[data-computer-version="pyramixed"] .screen-bezel::before,
body[data-computer-version="pyramixed"] .screen-bezel::after {
  display: none;
}

body[data-computer-version="pyramixed"] .mood-panel {
  box-sizing: border-box;
  width: 160px;
  min-height: 142px;
  height: 142px;
  padding: 12px 8px 8px;
  border: 0;
  border-radius: 0;
  clip-path: polygon(1% 0, 99% 0, 94% 100%, 6% 100%);
}

body[data-computer-version="pyramixed"] .mood-panel.desktop-mode {
  background: #050505;
  box-shadow: none;
}

body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .face-display {
  position: absolute;
  inset: 24px 0 auto;
  z-index: 1;
  display: grid;
  pointer-events: none;
  animation: pyramixed-face-life 1.4s ease-in-out infinite alternate;
}

body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .computer-desktop {
  min-height: 134px;
}

body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .desktop-titlebar {
  display: none;
}

body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .desktop-apps,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .desktop-installed-apps {
  display: none;
}

body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .computer-desktop.pyramixed-apps-open .desktop-apps,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .computer-desktop.pyramixed-apps-open .desktop-installed-apps {
  display: flex;
}

body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open):has(.pyramixed-apps-open) .face-display {
  display: none;
}

.pyramixed-apps-toggle {
  display: none;
}

body[data-computer-version="pyramixed"] .computer-shell:has(.mood-panel.desktop-mode:not(.app-open)) > .pyramixed-apps-toggle {
  position: absolute;
  right: -12px;
  top: 230px;
  z-index: 8;
  display: block;
  min-width: 52px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #fff;
  border-radius: 999px;
  background: #050505;
  color: #fff;
  font: 900 12px/1 sans-serif;
  box-shadow: 0 0 0 3px #70e45d, 0 0 18px rgba(112,228,93,.7);
  cursor: pointer;
  animation: pyramixed-software-pulse 1.5s ease-in-out infinite alternate;
}

body[data-computer-version="pyramixed"] .face-cheeks {
  display: none;
}

body[data-computer-version="pyramixed"] .face-eyes {
  gap: 38px;
  animation: pyramixed-eye-float 1.8s ease-in-out infinite alternate;
}

body[data-computer-version="pyramixed"] .eye {
  width: 24px;
  height: 18px;
  border-radius: 58% 52% 54% 48%;
  box-shadow: none;
}

body[data-computer-version="pyramixed"] .battery-widget {
  display: none;
}

body[data-computer-version="pyramixed"] .mouth-triangle {
  position: relative;
  width: 31px;
  height: 16px;
  border: 0;
  border-radius: 0;
  clip-path: polygon(0 0, 50% 70%, 100% 0, 100% 18%, 50% 88%, 0 18%);
  background: #fff;
  animation: pyramixed-mouth-idle 1.8s ease-in-out infinite alternate;
}

body[data-computer-version="pyramixed"] .mouth-triangle::before,
body[data-computer-version="pyramixed"] .mouth-triangle::after {
  display: none;
}

body[data-computer-version="pyramixed"] .mouth-open {
  width: 29px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  clip-path: none;
  background: transparent;
}

body[data-computer-version="pyramixed"] .computer-shell.computer-speaking .mouth {
  animation: pyramixed-mouth-idle 1.8s ease-in-out infinite alternate;
}

body[data-computer-version="pyramixed"] .screen-subtitle {
  max-width: 134px;
  font-size: 14px;
  line-height: 1.34;
  font-weight: 1000;
  letter-spacing: .04em;
  background: linear-gradient(90deg,#ff3b30,#ff9500,#ffe600,#34c759,#25e6da,#168cff,#b94cff,#ff3b30);
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 3px rgba(255,255,255,.95)) drop-shadow(0 0 8px rgba(95,235,255,.85));
  animation: pyramixed-glow-text 1.1s linear infinite, pyramixed-text-float .48s ease-in-out infinite alternate;
}

body[data-computer-version="pyramixed"] .screen-subtitle.pyramixed-speech-writing {
  animation: pyramixed-type-in .7s steps(8,end) both, pyramixed-glow-text 1.1s linear infinite .7s, pyramixed-text-float .48s ease-in-out infinite alternate .7s;
}

@keyframes pyramixed-host-idle {
  from { transform: translateX(-50%) translateY(0) rotate(-.35deg); }
  to { transform: translateX(-50%) translateY(-4px) rotate(.35deg); }
}

@keyframes pyramixed-screen-idle {
  from { transform: translateX(-50%) translateY(0) rotate(-.35deg); }
  to { transform: translateX(-50%) translateY(-4px) rotate(.35deg); }
}

@keyframes pyramixed-software-pulse {
  to { transform: translateY(-2px) scale(1.05); filter: brightness(1.25); }
}

@keyframes pyramixed-type-in {
  from { clip-path: inset(0 100% 0 0); opacity: .2; transform: scale(.92); }
  to { clip-path: inset(0); opacity: 1; transform: scale(1); }
}

@keyframes pyramixed-glow-text { to { background-position: -240% 0; } }
@keyframes pyramixed-text-float { to { translate: 0 -2px; } }
@keyframes pyramixed-face-life {
  0% { transform: translate(-2px,1px) rotate(-1deg) scale(.98); }
  45% { transform: translate(1px,-2px) rotate(.7deg) scale(1.02); }
  100% { transform: translate(2px,1px) rotate(1deg) scale(1); }
}

body[data-computer-version="pyramixed"] .computer-shell {
  width: min(260px, 92vw);
  min-height: 542px;
  margin-top: clamp(160px, 22svh, 200px);
  padding-top: 0;
}

body[data-computer-version="pyramixed"] .desk-wrap {
  display: none;
}

body[data-computer-version="pyramixed"] .keyboard-dock {
  margin-top: -160px;
  z-index: 7;
}

body[data-computer-version="pyramixed"] .speaker,
body[data-computer-version="pyramixed"] .back-plug {
  display: none;
}

body[data-computer-version="pyramixed"] .mood-panel,
body[data-computer-version="pyramixed"].light-on .mood-panel,
body[data-computer-version="pyramixed"] .screen-bezel {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

@keyframes pyramixed-eye-float {
  to { transform: translateY(-2px) rotate(-1deg); }
}

@keyframes pyramixed-mouth-idle {
  to { transform: translateY(2px) scaleX(1.08); }
}

@keyframes pyramixed-talking-mouth {
  from { transform: translateY(1px) scale(.82, .72); }
  to { transform: translateY(-2px) scale(1.12, 1.2); }
}

.sun-ray:nth-of-type(even) { animation-delay: -0.9s; }

.sun-ray-1 { transform: rotate(0deg); }
.sun-ray-2 { transform: rotate(45deg); }
.sun-ray-3 { transform: rotate(90deg); }
.sun-ray-4 { transform: rotate(135deg); }
.sun-ray-5 { transform: rotate(180deg); }
.sun-ray-6 { transform: rotate(225deg); }
.sun-ray-7 { transform: rotate(270deg); }
.sun-ray-8 { transform: rotate(315deg); }

.sky-sun.sun-looking-computer .sun-eye-left,
.sky-sun.sun-looking-computer .sun-eye-right {
  transform: translate(var(--sky-eye-look-x, 0px), var(--sky-eye-look-y, 0px));
}

.sky-sun.sun-looking-computer .sun-mouth {
  transform: translateX(4px) rotate(4deg);
}

.sky-sun.sun-swaying .sun-core {
  animation: sun-sway 2.8s ease-in-out;
}

.computer-shell.computer-speaking .screen-bezel {
  animation: computer-talk-screen 360ms ease-in-out infinite alternate;
}

.computer-shell.computer-speaking .face-display {
  animation: computer-talk-face 180ms ease-in-out infinite alternate;
}

.computer-shell.computer-speaking .head-hat,
.computer-shell.computer-speaking .bamboo-copter {
  animation: computer-talk-hat 720ms ease-in-out infinite;
}

.computer-shell.computer-speaking + .desk-wrap .desk {
  animation: computer-talk-desk 360ms ease-in-out infinite alternate;
}

@keyframes computer-talk-screen {
  from { transform: translate(-2px, 1px) rotate(-1deg); }
  to { transform: translate(3px, -3px) rotate(1.2deg); }
}

@keyframes computer-talk-face {
  from { transform: translateY(2px) scaleY(.98); }
  to { transform: translateY(-3px) scaleY(1.02); }
}

@keyframes computer-talk-hat {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-3px) rotate(2deg); }
}

@keyframes computer-talk-desk {
  from { transform: translateY(0); }
  to { transform: translateY(2px); }
}

@keyframes sun-glow-pulse {
  50% { box-shadow: 0 0 0 15px rgba(255,199,61,.18), 0 0 58px rgba(255,211,77,.7); }
}

@keyframes sun-blink {
  0%, 91%, 96%, 100% { height: 10px; top: 38px; }
  93%, 94% { height: 2px; top: 42px; }
}

@keyframes sun-ray-pulse {
  from { opacity: .72; filter: brightness(.94); }
  to { opacity: 1; filter: brightness(1.18); }
}

@media (prefers-reduced-motion: reduce) {
  .sun-core,.sun-eye,.sun-ray,
  .computer-shell.computer-speaking .screen-bezel,
  .computer-shell.computer-speaking .face-display,
  .computer-shell.computer-speaking .head-hat,
  .computer-shell.computer-speaking .bamboo-copter,
  .computer-shell.computer-speaking + .desk-wrap .desk { animation:none!important; }
}

.moon-face {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #dfe8ff 62%, #9caecc 100%);
  box-shadow: 0 0 28px rgba(180, 198, 255, 0.28);
}

.sky-moon.moon-crescent .moon-face::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #18253d;
}

body:not(.night-mode) .sky-moon.moon-crescent .moon-face::after {
  background: #b8ecff;
}

.cloud {
  --cloud-scale: 1;
  position: absolute;
  display: block;
  width: 110px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  animation: drift-east-west 28s linear infinite;
}

body.weather-cloudy .cloud,
body.weather-rain .cloud,
body.weather-snow .cloud {
  opacity: 1;
  filter: grayscale(0.35) brightness(0.92);
}

body.weather-cloudy .cloud::before,
body.weather-cloudy .cloud::after,
body.weather-rain .cloud::before,
body.weather-rain .cloud::after,
body.weather-snow .cloud::before,
body.weather-snow .cloud::after {
  filter: grayscale(0.35) brightness(0.92);
}

body.weather-cloudy .cloud-one,
body.weather-rain .cloud-one,
body.weather-snow .cloud-one {
  --cloud-scale: 1.2;
}

body.weather-cloudy .cloud-two,
body.weather-rain .cloud-two,
body.weather-snow .cloud-two {
  --cloud-scale: 1.08;
}

body.weather-cloudy .cloud-three,
body.weather-rain .cloud-three,
body.weather-snow .cloud-three {
  --cloud-scale: 1.32;
}

body.weather-cloudy .cloud-four,
body.weather-rain .cloud-four,
body.weather-snow .cloud-four {
  --cloud-scale: 0.92;
}

.rain-field {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(110deg, rgba(255, 255, 255, 0.55) 0 2px, transparent 2px 18px);
  background-size: 90px 90px;
  animation: rain-fall 0.42s linear infinite;
  transition: opacity 300ms ease;
}

body.weather-rain .rain-field {
  opacity: 0.62;
}

.snow-field {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px),
    radial-gradient(circle, rgba(255, 255, 255, 0.8) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 2px, transparent 3px);
  background-size: 92px 92px, 136px 136px, 188px 188px;
  background-position: 0 -92px, 42px -136px, 90px -188px;
  animation: snow-fall 7s linear infinite;
  transition: opacity 300ms ease;
}

body.weather-snow .snow-field {
  opacity: 0.82;
}

.cloud-eye {
  position: absolute;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0f1626;
  opacity: 0;
  transition: opacity 220ms ease;
}

.left-eye {
  left: 38px;
}

.right-eye {
  right: 38px;
}

.sky-scene.terror-mode .cloud-eye {
  opacity: 1;
}

body.terror-night .cloud-eye {
  top: 7px;
  width: 34px;
  height: 16px;
  border-radius: 999px;
  background: #f6f2ea;
  box-shadow: 0 0 0 2px rgba(38, 0, 0, 0.35);
}

body.terror-night .cloud-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  margin-top: -5px;
  border-radius: 50%;
  background: #120000;
  animation: cloud-look 1.5s ease-in-out infinite;
}

body.terror-night .left-eye {
  left: 38px;
}

body.terror-night .right-eye {
  display: none;
}

body.terror-night .cloud,
body.terror-night .cloud::before,
body.terror-night .cloud::after {
  background: rgba(176, 32, 32, 0.96);
}

body.terror-night .sun-core {
  background: radial-gradient(circle, #f8f1c7 0%, #d7ccb2 40%, #6a0000 100%);
  box-shadow: 0 0 52px rgba(255, 70, 70, 0.72);
}

body.terror-night .sun-eye,
body.terror-night .moon-eye {
  background: #3a0000;
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.45);
}

body.terror-night .sun-mouth {
  opacity: 0;
}

body.terror-night .sun-ray {
  opacity: 0;
}

body.terror-night .sun-eye-left {
  left: 50%;
  top: 25px;
  width: 50px;
  height: 50px;
  margin-left: -25px;
  border-radius: 50%;
  background: #fbfbfb;
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.35);
  animation: none;
}

body.terror-night .sun-eye-left::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border-radius: 50%;
  background: #280000;
  animation: cloud-look 1.4s ease-in-out infinite;
}

body.terror-night .sun-eye-right {
  opacity: 0;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.cloud::before {
  width: 34px;
  height: 34px;
  left: 16px;
  top: -14px;
}

.cloud::after {
  width: 50px;
  height: 50px;
  right: 18px;
  top: -22px;
}

.cloud-one {
  top: 72px;
  left: -150px;
  animation-delay: -6s;
}

.cloud-two {
  top: 140px;
  left: -210px;
  --cloud-scale: 0.8;
  animation-duration: 34s;
  animation-delay: -16s;
}

.cloud-three {
  top: 46px;
  left: -260px;
  --cloud-scale: 1.15;
  animation-duration: 40s;
  animation-delay: -24s;
}

.cloud-four {
  top: 200px;
  left: -170px;
  --cloud-scale: 0.72;
  animation-duration: 30s;
  animation-delay: -12s;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}

.intro h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 54px);
  line-height: 0.96;
}

.subtitle {
  width: min(520px, 100%);
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.computer-shell {
  --shell-offset-x: 0px;
  --shell-offset-y: 0px;
  --shell-state-y: 0px;
  --shell-rotate: 0deg;
  position: relative;
  z-index: 5;
  max-width: 300px;
  width: min(300px, 86vw);
  margin: clamp(168px, 25svh, 230px) auto 0;
  padding: 34px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  transform: translate(var(--shell-offset-x), calc(var(--shell-offset-y) + var(--shell-state-y))) rotate(var(--shell-rotate));
  transition: transform 360ms ease, margin-top 280ms ease;
  touch-action: none;
  user-select: none;
}

.computer-shell::before,
.computer-shell::after {
  content: "";
  position: absolute;
  left: 42px;
  top: 54px;
  width: 216px;
  height: 190px;
  border-radius: 28px;
  pointer-events: none;
  opacity: 0;
  z-index: 9;
}

.computer-shell::before {
  background:
    radial-gradient(circle at 24px 18px, #ffffff 0 5px, transparent 6px),
    radial-gradient(circle at 74px 8px, #eef8ff 0 4px, transparent 5px),
    radial-gradient(circle at 132px 22px, #ffffff 0 6px, transparent 7px),
    radial-gradient(circle at 180px 12px, #eef8ff 0 4px, transparent 5px),
    radial-gradient(circle at 44px 74px, rgba(255, 255, 255, 0.92) 0 4px, transparent 5px),
    radial-gradient(circle at 166px 92px, rgba(255, 255, 255, 0.9) 0 5px, transparent 6px);
}

.computer-shell.snow-covered::before {
  opacity: 1;
}

.computer-shell::after {
  background:
    radial-gradient(ellipse at 42px 42px, rgba(98, 198, 255, 0.86) 0 5px, transparent 6px),
    radial-gradient(ellipse at 92px 18px, rgba(178, 231, 255, 0.9) 0 4px, transparent 5px),
    radial-gradient(ellipse at 152px 58px, rgba(98, 198, 255, 0.78) 0 6px, transparent 7px),
    radial-gradient(ellipse at 188px 112px, rgba(178, 231, 255, 0.86) 0 4px, transparent 5px),
    linear-gradient(180deg, transparent 0 12px, rgba(105, 205, 255, 0.34) 13px 56px, transparent 57px 100%);
  background-size: auto, auto, auto, auto, 8px 70px;
  background-position: 0 0, 0 0, 0 0, 0 0, 34px 22px;
}

.computer-shell.wet::after {
  opacity: 1;
}

.computer-shell.sun-drying::after {
  animation: sun-dry 1.9s ease-out forwards;
}

.back-plug {
  --plug-x: 0px;
  --plug-y: 0px;
  --plug-cable-length: 38px;
  --plug-cable-angle: 0deg;
  position: absolute;
  right: -34px;
  top: 122px;
  width: 42px;
  height: 26px;
  z-index: 2;
  cursor: grab;
  touch-action: none;
}

.back-plug::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 11px;
  width: var(--plug-cable-length);
  height: 4px;
  border-radius: 999px;
  background: #2a2a2a;
  transform-origin: 0 50%;
  transform: rotate(var(--plug-cable-angle));
}

.back-plug.detached,
.back-plug.plugged-in {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(var(--plug-x), var(--plug-y));
  z-index: 18;
}

.back-plug.detached::before,
.back-plug.plugged-in::before {
  left: 0;
  top: 10px;
}

.back-plug.plugged-in {
  cursor: default;
}

.back-plug.charging .plug-head {
  box-shadow: 0 0 14px rgba(255, 237, 119, 0.72);
}

.plug-head {
  position: absolute;
  right: 0;
  top: 3px;
  width: 26px;
  height: 20px;
  border-radius: 8px 8px 6px 6px;
  background: #d8dce0;
  border: 2px solid #8a9097;
}

.plug-prong {
  position: absolute;
  right: -4px;
  width: 4px;
  height: 7px;
  border-radius: 2px;
  background: #d9b55f;
}

.prong-left {
  top: 6px;
}

.prong-right {
  top: 14px;
}

.computer-shell.grounded {
  --shell-state-y: 0px;
  --shell-rotate: 0deg;
}

.computer-shell.hat-spinning {
  --shell-state-y: -52px;
}

.computer-shell.fly-away {
  --shell-state-y: -430px;
  --shell-rotate: -8deg;
}

.computer-shell.hat-bump .bamboo-copter,
.computer-shell.hat-bump .head-hat {
  animation: hat-bump 0.7s ease-out;
}

.computer-shell.terror-flicker {
  animation: terror-flicker 0.22s linear 4;
}

.computer-shell.powered-off {
  --shell-state-y: 118px;
  --shell-rotate: 10deg;
}

.computer-shell.dragging {
  transition: none;
}

.computer-shell.dizzy {
  --shell-state-y: 52px;
  --shell-rotate: -16deg;
}

.computer-shell.dizzy .eye {
  position: relative;
  background: transparent;
  box-shadow: none;
  width: 28px;
  height: 18px;
}

.computer-shell.dizzy .eye::before,
.computer-shell.dizzy .eye::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 8px;
  height: 8px;
  border: 2px solid #f6f6f6;
  border-radius: 50%;
  background: transparent;
}

.computer-shell.dizzy .eye::before {
  left: 1px;
  box-shadow:
    9px 2px 0 -1px rgba(246, 246, 246, 0.95),
    18px 0 0 -1px rgba(246, 246, 246, 0.95);
}

.computer-shell.dizzy .eye::after {
  left: 5px;
  top: 7px;
  width: 6px;
  height: 6px;
  box-shadow:
    9px 0 0 -1px rgba(246, 246, 246, 0.95),
    18px 1px 0 -1px rgba(246, 246, 246, 0.95);
}

.computer-shell.dizzy .mouth {
  transform: rotate(180deg) translateY(-2px);
}

.computer-shell.sleepy .eye {
  width: 20px;
  height: 4px;
  border-radius: 999px;
  background: #f4f4f4;
  box-shadow: none;
  transform: translate(0, 0);
}

.computer-shell.rhythm-loving .eye {
  width: 28px;
  height: 16px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  border-bottom: 5px solid #78fff6;
  transform: translate(var(--eye-look-x, 0px), var(--eye-look-y, 0px));
}

.computer-shell.blinking .eye {
  transform: translate(var(--eye-look-x, 0px), var(--eye-look-y, 0px)) scaleY(0.12);
}

.computer-shell.rain-squint .eye {
  width: 26px;
  height: 26px;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
  line-height: 24px;
  text-align: center;
}

.computer-shell.rain-squint .eye::before {
  display: block;
  transform: translateY(-3px);
}

.computer-shell.rain-squint .eye:first-child::before {
  content: ">";
}

.computer-shell.rain-squint .eye:last-child::before {
  content: "<";
}

.computer-shell.rain-squint.blinking .eye {
  transform: translate(var(--eye-look-x, 0px), var(--eye-look-y, 0px));
}

.computer-shell.rained-on .screen-bezel {
  animation: rain-shiver 0.34s ease-in-out infinite;
}

.computer-shell.rain-error .screen-bezel {
  animation: rain-error-shake 0.12s linear infinite;
}

.computer-shell.rain-code-mode {
  animation: rain-code-sway 3.4s ease-in-out infinite;
}

.computer-shell.rain-code-mode .screen-bezel {
  animation: none;
}

.computer-shell.rain-code-mode .mood-panel {
  animation: code-screen-color 0.72s steps(1, end) infinite;
}

.computer-shell.rain-error .screen-subtitle {
  color: #ff4d4d;
  font-size: 28px;
  font-weight: 900;
  text-shadow:
    2px 0 #ffffff,
    -2px 0 #ffffff,
    0 0 14px rgba(255, 0, 0, 0.75);
  animation: error-flash 0.24s steps(2, end) infinite;
}

.computer-shell.rain-code-mode .screen-subtitle {
  display: none;
}

.rain-error-code {
  position: absolute;
  inset: -8px;
  z-index: 4;
  display: none;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 0;
  border-radius: 18px;
  color: #93ff9d;
  font-family: "Courier New", monospace;
  font-size: 6.2px;
  line-height: 1;
  text-align: left;
  text-shadow: 0 0 8px rgba(125, 255, 143, 0.7);
  pointer-events: none;
  overflow: hidden;
}

.rain-error-code::after {
  content: "X X X X X X X X X X";
  color: #ff5252;
  font-size: 9px;
  letter-spacing: 1px;
}

.rain-error-code span {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
}

.computer-shell.rain-code-mode .rain-error-code {
  display: grid;
  animation: code-glitch 0.12s steps(2, end) infinite;
}

.computer-shell.rain-code-mode .rain-error-code::after {
  display: none;
}

.computer-shell.rain-code-mode .face-display {
  opacity: 0;
  filter: contrast(1.8) saturate(0.3);
}

.computer-shell.rain-code-mode .rain-error-code span {
  color: #ffffff;
  min-width: 0;
  opacity: 0.95;
  text-shadow:
    1px 0 rgba(0, 0, 0, 0.72),
    0 0 7px rgba(255, 255, 255, 0.86);
}

.computer-shell.rain-code-mode .rain-error-code span:nth-child(3n) {
  transform: translateX(-4px);
}

.computer-shell.rain-code-mode .rain-error-code span:nth-child(4n) {
  transform: translateX(5px);
}

.computer-shell.rain-code-mode .rain-error-code span:nth-child(5n) {
  letter-spacing: 0.5px;
}

.computer-shell.sleepy .mouth-triangle,
.computer-shell.sleepy .mouth-open {
  width: 24px;
  height: 16px;
  clip-path: polygon(50% 100%, 12% 0, 88% 0);
  transform: scaleY(0.72);
}

.hat-assembly {
  position: absolute;
  inset: 0 auto auto 50%;
  width: 126px;
  height: 116px;
  transform: translateX(-50%);
  z-index: 4;
  touch-action: none;
}

.hat-assembly.detached {
  position: fixed;
  left: 0;
  top: 0;
  transform: translate(var(--hat-x, 0px), var(--hat-y, 0px));
}

body.town-app-open .hat-assembly {
  opacity: 0;
  pointer-events: none;
}

body.town-app-open {
  overflow: hidden;
}

body.town-app-open .stage {
  visibility: hidden;
}

body.town-app-open .computer-app-window {
  visibility: visible;
}

body.town-app-open .mine-toggle,
body.town-app-open .shop-toggle,
body.town-app-open .mine-panel,
body.town-app-open .shop-panel,
body.town-app-open .minecraft-panel,
body.town-app-open .diary-room-link,
body.town-app-open .reset-save-toggle,
body.town-app-open .yard-toggle,
body.town-app-open .home-toggle,
body.town-app-open .call-back-toggle,
body.town-app-open .money-display {
  display: none !important;
}

.hat-assembly.detached .bamboo-copter,
.hat-assembly.detached .head-hat {
  cursor: grab;
}

.bamboo-copter {
  position: absolute;
  top: -18px;
  left: 50%;
  width: 94px;
  height: 44px;
  transform: translateX(-50%);
}

.computer-shell.hat-spinning .bamboo-copter {
  animation: hover-copter 0.9s linear infinite;
}

.computer-shell.hat-spinning .copter-blade {
  animation: spin-blade 0.16s linear infinite;
  transform-origin: center;
}

.computer-shell.hat-spinning .blade-left {
  left: 12px;
  transform: scaleX(-1);
}

.computer-shell.hat-spinning .blade-right {
  right: 12px;
}

.head-hat {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 126px;
  height: 72px;
  transform: translateX(-50%);
  z-index: 3;
}

body.terror-night .head-hat {
  opacity: 0;
}

.copter-stick {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 7px;
  height: 24px;
  transform: translateX(-50%);
  background: #ff2020;
}

.copter-blade {
  position: absolute;
  top: 16px;
  width: 34px;
  height: 8px;
  background: #1d27ff;
  clip-path: polygon(0 50%, 100% 0, 88% 100%);
  box-shadow: none;
}

.blade-left {
  left: 12px;
  transform: scaleX(-1);
}

.blade-right {
  right: 12px;
}

.speaker,
.screen-topbar {
  display: none;
}

.screen-bezel {
  position: relative;
  z-index: 2;
  width: 202px;
  margin: 0 auto;
  padding: 12px 12px 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  margin-top: 22px;
}

.screen-bezel::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -18px;
  width: 18px;
  height: 20px;
  transform: translateX(-50%);
  background: #bfc3c8;
}

.screen-bezel::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -36px;
  width: 74px;
  height: 20px;
  transform: translateX(-50%);
  background: #bfc3c8;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.screen-body {
  display: block;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #f7f7f7;
  box-shadow: none;
}

.mood-panel {
  background: #050505;
  border: 10px solid #c3c7cb;
  border-radius: 28px;
  display: grid;
  place-items: center;
  width: 178px;
  min-height: 178px;
  padding: 18px 8px 12px;
  text-align: center;
  align-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

body.light-on .mood-panel {
  box-shadow:
    0 0 18px rgba(255, 246, 157, 0.62),
    0 0 46px rgba(255, 225, 91, 0.36);
}

.computer-shell.powered-off .mood-panel {
  background: #000000;
}

.computer-shell.computer-bed-sleeping .mood-panel {
  background: #000000;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.computer-shell.computer-bed-sleeping .face-display,
.computer-shell.computer-bed-sleeping .screen-subtitle,
.computer-shell.computer-bed-sleeping .rain-error-code {
  display: none;
}

.computer-shell.computer-bed-sleeping .screen-bezel::after {
  content: "Z";
  position: absolute;
  right: 24px;
  top: 22px;
  z-index: 4;
  color: rgba(255, 255, 255, 0.72);
  font-size: 24px;
  font-weight: 900;
  animation: sleep-z-float 1.8s ease-in-out infinite;
}

.battery-widget {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  z-index: 2;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.battery-widget.visible {
  opacity: 1;
  transform: translateY(0);
}

.battery-label {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
}

.battery-shell {
  position: relative;
  width: 32px;
  height: 14px;
  border: 2px solid #ffffff;
  border-radius: 4px;
}

.battery-shell::after {
  content: "";
  position: absolute;
  right: -5px;
  top: 3px;
  width: 3px;
  height: 6px;
  border-radius: 0 2px 2px 0;
  background: #ffffff;
}

.battery-level {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #8dff90 0%, #d7ff70 100%);
  transition: width 240ms ease, background 240ms ease;
}

.mood-panel.text-mode .face-display {
  display: none;
}

.mood-panel.face-mode .screen-subtitle {
  display: none;
}

.mood-panel.desktop-mode {
  display: block;
  padding: 14px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(180deg, #58b7f0 0%, #2a77bd 100%);
  background-size: 18px 18px, 18px 18px, auto;
}

.mood-panel.desktop-mode .face-display,
.mood-panel.desktop-mode .screen-subtitle,
.mood-panel.desktop-mode .rain-error-code {
  display: none;
}

.computer-desktop[hidden] {
  display: none;
}

.computer-desktop {
  position: relative;
  z-index: 5;
  width: 100%;
  min-height: 150px;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.38);
}

.desktop-titlebar {
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  border: 2px solid #11345a;
  background: #174f96;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.24);
}

.desktop-apps,
.desktop-installed-apps {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: flex-start;
  padding-top: 10px;
}

.desktop-app {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 42px;
  min-height: 46px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-size: 8px;
  font-weight: 900;
  cursor: pointer;
}

.desktop-app span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border: 2px solid #11345a;
  background: #ffe76a;
  color: #17314f;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.desktop-app-chat span {
  background: #c8ff74;
}

.desktop-app-store span {
  background: #ffd174;
}

.desktop-app-minecraft span {
  background: url("./assets/minecraft-blocks/grass.png") center / cover no-repeat;
  color: #ffffff;
  text-shadow: 1px 1px 0 #183d12;
  image-rendering: pixelated;
}

.desktop-app-town span {
  background:
    linear-gradient(180deg, #65c9ff 0 45%, #f4cf69 45% 70%, #d16b6b 70% 100%);
  color: #17314f;
}

.mood-panel.app-open .desktop-apps,
.mood-panel.app-open .desktop-installed-apps,
.mood-panel.app-open .desktop-titlebar {
  visibility: hidden;
}

.computer-app-window {
  position: absolute;
  inset: 8px;
  z-index: 12;
  display: grid;
  grid-template-rows: 25px 1fr;
  border: 3px solid #11345a;
  background: #eef7ff;
  color: #17314f;
  text-shadow: none;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.28);
}

.computer-app-window.town-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 260;
  grid-template-rows: 1fr;
  border: 0;
  background: #101728;
}

.computer-app-window.town-fullscreen.town-minimized {
  inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto;
  width: min(330px, calc(100vw - 24px));
  height: min(220px, calc(100vh - 24px));
  border: 3px solid #11345a;
  background: #101728;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
}

.computer-app-window.town-fullscreen .computer-app-titlebar {
  position: fixed;
  left: max(8px, env(safe-area-inset-left));
  top: max(8px, env(safe-area-inset-top));
  z-index: 280;
  display: flex;
  gap: 5px;
  padding: 0;
  background: transparent;
  color: transparent;
}

.computer-app-window.town-fullscreen.town-minimized .computer-app-titlebar {
  position: absolute;
}

.computer-app-window.town-fullscreen .computer-app-close,
.computer-app-window.town-fullscreen .computer-app-minimize {
  width: 19px;
  height: 19px;
  border-width: 2px;
  font-size: 14px;
}

.computer-app-window.town-fullscreen .computer-app-titlebar strong {
  display: none;
}

.computer-app-window.town-fullscreen .computer-app-content {
  align-content: stretch;
  padding: 0;
  grid-row: 1;
}

.computer-app-window[hidden] {
  display: none;
}

.computer-app-titlebar {
  display: grid;
  grid-template-columns: 23px 23px 1fr;
  align-items: center;
  gap: 6px;
  padding: 2px 6px 2px 2px;
  background: #174f96;
  color: #ffffff;
  font-size: 10px;
}

.computer-app-close,
.computer-app-minimize {
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid #11345a;
  border-radius: 0;
  background: #ff5a52;
  color: #ffffff;
  padding: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  text-shadow: none;
}

.computer-app-minimize {
  background: #ffd65d;
  color: #17314f;
}

.computer-app-minimize[hidden] {
  display: none;
}

.computer-face-close {
  position: absolute;
  left: 7px;
  top: 7px;
  z-index: 18;
}

.computer-face-close[hidden] {
  display: none;
}

.computer-app-content {
  display: grid;
  align-content: center;
  gap: 7px;
  padding: 8px;
  font-size: 10px;
  font-weight: 900;
}

.computer-store-list {
  display: grid;
  gap: 6px;
}

.computer-store-list button {
  min-height: 28px;
  border: 2px solid #11345a;
  border-radius: 0;
  background: #ffffff;
  color: #17314f;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.computer-store-list button:disabled {
  opacity: 0.55;
  cursor: default;
}

.computer-app-message {
  margin: 0;
  color: #17314f;
  line-height: 1.3;
}

.computer-town-app {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  width: 100%;
  height: 100%;
  border: 0;
  background:
    linear-gradient(180deg, #8fd7ff 0 54%, #4da85b 54% 100%);
}

.computer-town-3d-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #17233a;
}

.computer-town-3d-shell canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.computer-town-3d-shell.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -50%);
  border: 4px solid rgba(255, 255, 255, 0.28);
  border-top-color: #fff36b;
  border-radius: 50%;
  animation: town-loading-spin 900ms linear infinite;
}

.computer-town-3d-shell.fallback {
  display: none;
}

.computer-town-app:has(.computer-town-3d-shell:not(.fallback)) .computer-town-fallback {
  opacity: 0;
}

.computer-town-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.computer-town-speech {
  position: absolute;
  left: 50%;
  top: 44px;
  z-index: 8;
  max-width: min(520px, calc(100vw - 36px));
  transform: translateX(-50%) translateY(-10px);
  border: 3px solid #101728;
  background: rgba(255, 255, 255, 0.92);
  color: #142033;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  text-shadow: none;
}

.computer-town-speech.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.computer-town-thought {
  position: absolute;
  left: 50%;
  top: 92px;
  z-index: 8;
  max-width: min(420px, calc(100vw - 48px));
  transform: translateX(-50%) translateY(-8px);
  border: 2px solid rgba(16, 23, 40, 0.84);
  background: rgba(255, 255, 255, 0.84);
  color: #142033;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  opacity: 0;
  pointer-events: none;
  text-shadow: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.computer-town-thought.active {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.computer-town-avatar-bar {
  position: absolute;
  left: 50%;
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  gap: 6px;
  width: min(94vw, 920px);
  padding: 7px;
  overflow-x: auto;
  transform: translateX(-50%);
  border: 3px solid #101728;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  pointer-events: auto;
}

.computer-town-avatar {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 30px auto;
  align-items: center;
  gap: 5px;
  min-width: 76px;
  min-height: 36px;
  border: 2px solid #142033;
  border-radius: 0;
  background: #fff8d8;
  color: #142033;
  padding: 3px 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  text-shadow: none;
}

.computer-town-avatar span {
  width: 26px;
  height: 26px;
  border: 2px solid #142033;
  border-radius: 50%;
  background-color: var(--avatar-color, #88c7ff);
  background-image: var(--town-avatar-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  box-shadow: inset -5px -5px 0 rgba(0, 0, 0, 0.18);
  image-rendering: pixelated;
}

.computer-town-avatar strong {
  white-space: nowrap;
}

.computer-town-shop-panel,
.computer-town-character-panel,
.computer-town-market-panel {
  position: absolute;
  left: 50%;
  bottom: max(64px, calc(env(safe-area-inset-bottom) + 64px));
  z-index: 9;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: min(720px, calc(100vw - 34px));
  padding: 9px 10px;
  border: 3px solid #101728;
  background: rgba(255, 255, 255, 0.93);
  color: #142033;
  transform: translateX(-50%);
  text-shadow: none;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.computer-town-shop-panel[hidden],
.computer-town-character-panel[hidden],
.computer-town-market-panel[hidden],
.computer-town-house-interior-panel[hidden],
.computer-town-store-page[hidden] {
  display: none;
}

.computer-town-shop-panel strong,
.computer-town-character-panel strong,
.computer-town-market-panel strong {
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 900;
}

.computer-town-shop-panel button,
.computer-town-character-panel button,
.computer-town-market-panel button {
  min-height: 30px;
  border: 2px solid #142033;
  border-radius: 0;
  background: #fff8d8;
  color: #142033;
  padding: 5px 9px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.computer-town-character-panel {
  bottom: max(116px, calc(env(safe-area-inset-bottom) + 116px));
}

.computer-town-market-panel {
  bottom: max(116px, calc(env(safe-area-inset-bottom) + 116px));
}

.computer-town-house-interior-panel,
.computer-town-store-page {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 14;
  width: min(860px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 92px));
  transform: translate(-50%, -50%);
  border: 4px solid #101728;
  background: rgba(237, 237, 228, 0.96);
  color: #142033;
  padding: 18px;
  overflow: auto;
  text-shadow: none;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34);
}

.computer-town-house-interior-panel > strong,
.computer-town-store-page > strong {
  display: block;
  margin: 0 44px 14px 0;
  font-size: 20px;
  font-weight: 900;
}

.computer-town-store-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 3px solid #101728;
  border-radius: 0;
  background: #fff8d8;
  color: #101728;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.computer-town-room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.computer-town-resident-scene {
  position: relative;
  height: 118px;
  margin: 0 0 12px;
  border: 3px solid #101728;
  background:
    linear-gradient(#0000 72%, rgba(79, 62, 45, 0.32) 73%),
    linear-gradient(135deg, #d9c49a, #f1dfbb);
  overflow: hidden;
}

.computer-town-resident-scene strong {
  position: absolute;
  left: 10px;
  bottom: 6px;
  z-index: 3;
  color: #142033;
  font-size: 12px;
  font-weight: 900;
}

.computer-town-pixel-resident {
  position: absolute;
  left: 50%;
  bottom: 30px;
  width: 34px;
  height: 42px;
  transform: translateX(-50%);
  border: 2px solid #101728;
  background: var(--resident-color, #88c7ff);
  box-shadow: inset -7px -7px 0 rgba(0, 0, 0, 0.16);
}

.computer-town-pixel-resident::before {
  content: "";
  position: absolute;
  left: 5px;
  top: -28px;
  width: 24px;
  height: 24px;
  border: 2px solid #101728;
  background: var(--resident-color, #88c7ff);
}

.computer-town-pixel-resident i {
  position: absolute;
  top: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #101728;
  border-radius: 50%;
  background: var(--resident-color, #88c7ff);
}

.computer-town-pixel-resident i:first-child {
  left: -12px;
}

.computer-town-pixel-resident i:last-child {
  right: -12px;
}

.computer-town-resident-scene.sleeping .computer-town-pixel-resident {
  bottom: 27px;
  width: 72px;
  height: 26px;
  transform: translateX(-50%) rotate(0deg);
  background: linear-gradient(90deg, #ffffff 0 28%, var(--resident-color, #88c7ff) 29%);
}

.computer-town-resident-scene.sleeping .computer-town-pixel-resident::before,
.computer-town-resident-scene.sleeping .computer-town-pixel-resident i {
  display: none;
}

.computer-town-pixel-tv {
  position: absolute;
  left: 22px;
  top: 22px;
  width: 56px;
  height: 38px;
  border: 3px solid #101728;
  background: #172033;
  box-shadow: inset 0 0 0 6px #9ff7ff;
}

.computer-town-pixel-tv::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -17px;
  width: 14px;
  height: 14px;
  background: #101728;
}

.computer-town-pixel-phone {
  position: absolute;
  right: 28px;
  top: 42px;
  width: 24px;
  height: 36px;
  border: 3px solid #101728;
  background: #20283a;
  box-shadow: inset 0 0 0 4px #d7f3ff;
}

.computer-town-room {
  min-height: 116px;
  border: 3px solid #263244;
  background: #cfd3cf;
  padding: 12px;
  box-shadow: inset 0 -12px 0 rgba(0, 0, 0, 0.12);
}

.computer-town-room b,
.computer-town-room span {
  display: block;
}

.computer-town-room b {
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 900;
}

.computer-town-room span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.computer-town-room-art {
  position: relative;
  height: 96px;
  margin: 4px 0 9px;
  border: 3px solid rgba(20, 32, 51, 0.72);
  background:
    linear-gradient(#0000 30px, rgba(0, 0, 0, 0.16) 31px 33px, #0000 34px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  overflow: hidden;
}

.computer-town-room-art i {
  position: absolute;
  display: block;
  border: 2px solid #101728;
  box-shadow: inset -6px -6px 0 rgba(0, 0, 0, 0.16);
}

.computer-town-pixel-painting {
  left: 18px;
  top: 12px;
  width: 38px;
  height: 26px;
  background: linear-gradient(135deg, #ffcf4a 0 45%, #7bc96f 46% 100%);
}

.computer-town-pixel-couch {
  left: 18px;
  bottom: 12px;
  width: 78px;
  height: 30px;
  background: #e66a5d;
}

.computer-town-pixel-couch::before,
.computer-town-pixel-couch::after {
  content: "";
  position: absolute;
  bottom: -2px;
  width: 16px;
  height: 18px;
  border: 2px solid #101728;
  background: #c94d42;
}

.computer-town-pixel-couch::before {
  left: -12px;
}

.computer-town-pixel-couch::after {
  right: -12px;
}

.computer-town-pixel-table {
  right: 22px;
  bottom: 14px;
  width: 38px;
  height: 14px;
  background: #9a6234;
}

.computer-town-pixel-table::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 8px;
  height: 20px;
  background: #6f4324;
}

.computer-town-pixel-bed {
  left: 15px;
  bottom: 12px;
  width: 96px;
  height: 36px;
  background: linear-gradient(90deg, #ffffff 0 25%, #5f8cff 26% 100%);
}

.computer-town-pixel-wardrobe {
  right: 18px;
  bottom: 10px;
  width: 36px;
  height: 62px;
  background: #9a6234;
}

.computer-town-pixel-lamp {
  right: 66px;
  top: 20px;
  width: 20px;
  height: 26px;
  background: #ffe36e;
}

.computer-town-pixel-stove {
  left: 18px;
  bottom: 12px;
  width: 44px;
  height: 44px;
  background: #d7dde4;
}

.computer-town-pixel-stove::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 7px;
  width: 24px;
  height: 8px;
  background: #101728;
  box-shadow: 0 16px 0 #101728;
}

.computer-town-pixel-fridge {
  right: 18px;
  bottom: 10px;
  width: 36px;
  height: 66px;
  background: #eff8ff;
}

.computer-town-pixel-counter {
  left: 72px;
  bottom: 12px;
  width: 72px;
  height: 30px;
  background: #c7b07a;
}

.computer-town-pixel-bath {
  left: 16px;
  bottom: 13px;
  width: 88px;
  height: 32px;
  border-radius: 0 0 18px 18px;
  background: #dff8ff;
}

.computer-town-pixel-sink {
  right: 22px;
  bottom: 16px;
  width: 32px;
  height: 26px;
  background: #f4fbff;
}

.computer-town-pixel-mirror {
  right: 20px;
  top: 12px;
  width: 36px;
  height: 28px;
  background: #a7e9ff;
}

.computer-town-room.living {
  background: linear-gradient(135deg, #f0ddae 0 50%, #d5bd84 50%);
}

.computer-town-room.bedroom {
  background: linear-gradient(135deg, #93b7ff 0 50%, #627dd9 50%);
}

.computer-town-room.kitchen {
  background: linear-gradient(135deg, #f2f2ec 0 50%, #c6cbc6 50%);
}

.computer-town-room.bathroom {
  background: linear-gradient(135deg, #c8f5ff 0 50%, #88c7ff 50%);
}

.computer-town-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 10px;
}

.computer-town-product-card {
  display: grid;
  grid-template-rows: 54px auto auto;
  align-items: center;
  gap: 5px;
  min-height: 126px;
  border: 3px solid #263244;
  border-radius: 0;
  background: #fff8d8;
  color: #142033;
  padding: 8px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  text-align: center;
}

.computer-town-product-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto;
  border: 2px solid #142033;
  background: var(--product-color, #ffd35a);
  color: #111827;
  font-size: 24px;
  line-height: 1;
  box-shadow: inset -8px -8px 0 rgba(0, 0, 0, 0.16);
}

.computer-town-product-card strong {
  min-height: 30px;
  font-size: 12px;
  line-height: 1.2;
}

.computer-town-product-card small {
  font-size: 11px;
  font-weight: 900;
}

.computer-app-window.town-fullscreen.town-minimized .computer-town-avatar-bar {
  width: calc(100% - 16px);
  bottom: 8px;
  padding: 4px;
}

.computer-app-window.town-fullscreen.town-minimized .computer-town-avatar {
  min-width: 42px;
  grid-template-columns: 24px;
  justify-items: center;
  padding: 2px;
}

.computer-app-window.town-fullscreen.town-minimized .computer-town-avatar strong {
  display: none;
}

.computer-app-window.town-fullscreen.town-minimized .computer-town-speech,
.computer-app-window.town-fullscreen.town-minimized .computer-town-thought,
.computer-app-window.town-fullscreen.town-minimized .computer-town-shop-panel,
.computer-app-window.town-fullscreen.town-minimized .computer-town-character-panel,
.computer-app-window.town-fullscreen.town-minimized .computer-town-market-panel,
.computer-app-window.town-fullscreen.town-minimized .computer-town-house-interior-panel,
.computer-app-window.town-fullscreen.town-minimized .computer-town-store-page {
  display: none;
}

@media (max-width: 640px) {
  .computer-town-house-interior-panel,
  .computer-town-store-page {
    top: 46%;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 96px);
    padding: 14px;
  }

  .computer-town-room-grid {
    grid-template-columns: 1fr;
  }

  .computer-town-store-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.computer-town-sky span {
  position: absolute;
  top: 14px;
  width: 26px;
  height: 10px;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 12px 0 0 #ffffff, 6px -6px 0 #ffffff;
  animation: town-cloud-slide 16s linear infinite;
}

.computer-town-sky span:first-child {
  left: -40px;
}

.computer-town-sky span:last-child {
  left: 35px;
  animation-duration: 22s;
}

.computer-town-street {
  position: absolute;
  inset: 0;
}

.computer-town-building {
  position: absolute;
  bottom: 28px;
  width: 34px;
  height: 34px;
  border: 2px solid #11345a;
  border-radius: 17px 17px 4px 4px;
  background: #ffd66b;
  box-shadow: inset 0 9px 0 rgba(255, 255, 255, 0.28);
}

.computer-town-building.shop {
  left: 12px;
  background: #f1c75b;
}

.computer-town-building.home {
  right: 14px;
  background: #e77964;
}

.computer-town-building::before {
  content: "";
  position: absolute;
  left: -4px;
  right: -4px;
  top: -13px;
  height: 13px;
  border-radius: 50% 50% 0 0;
  background: #8b4a2c;
}

.computer-town-building::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 0;
  width: 9px;
  height: 16px;
  background: #56331f;
}

.computer-town-stage {
  position: absolute;
  left: 50%;
  bottom: 25px;
  width: 82px;
  height: 34px;
  transform: translateX(-50%);
  border: 2px solid #11345a;
  border-radius: 50%;
  background: #34314a;
}

.computer-town-stage-light {
  position: absolute;
  left: 50%;
  bottom: 58px;
  width: 118px;
  height: 64px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(255, 240, 165, 0.42), transparent 68%);
  pointer-events: none;
}

.town-member {
  position: absolute;
  bottom: 24px;
  width: 15px;
  height: 27px;
  border: 2px solid #11345a;
  border-radius: 999px;
  animation: town-member-walk 4.5s linear infinite;
}

.town-member::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 3px;
  height: 3px;
  background: #111;
  box-shadow: 7px 0 0 #111;
}

.town-member.oren {
  left: 52px;
  background: #ff9d4d;
}

.town-member.raddy {
  left: 84px;
  background: #f26060;
  animation-delay: -1s;
}

.town-member.clukr {
  left: 122px;
  background: #b8bdc8;
  animation-delay: -2s;
}

.town-member.pinki {
  left: 158px;
  background: #ff9cd3;
  animation-delay: -3s;
}

.computer-town-concert {
  position: absolute;
  left: 50%;
  bottom: 52px;
  display: flex;
  gap: 3px;
  height: 24px;
  transform: translateX(-50%);
}

.computer-town-concert i {
  width: 5px;
  height: 10px;
  align-self: flex-end;
  background: #fff36b;
  animation: town-concert-bars 580ms ease-in-out infinite;
}

.computer-town-concert i:nth-child(2) {
  animation-delay: -120ms;
}

.computer-town-concert i:nth-child(3) {
  animation-delay: -240ms;
}

.computer-town-concert i:nth-child(4) {
  animation-delay: -360ms;
}

.computer-town-concert i:nth-child(5) {
  animation-delay: -480ms;
}

.desktop-store {
  position: absolute;
  right: 0;
  top: 36px;
  z-index: 7;
  display: grid;
  gap: 5px;
  width: 92px;
  padding: 6px;
  border: 3px solid #11345a;
  background: #eef7ff;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.25);
}

.desktop-store[hidden] {
  display: none;
}

.desktop-store button {
  min-height: 24px;
  border: 2px solid #11345a;
  background: #ffffff;
  color: #17314f;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
}

.hat-ball {
  position: absolute;
  left: 50%;
  top: 0;
  width: 10px;
  height: 12px;
  transform: translateX(-50%);
  background: #ff2020;
}

.hat-top {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 108px;
  height: 46px;
  transform: translateX(-50%);
  border-radius: 54px 54px 0 0;
  background: linear-gradient(90deg, #ff1c16 0 33%, #ffd919 33% 66%, #2637ff 66% 100%);
}

.hat-brim {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 122px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 0 0 18px 18px;
  background: #11ff18;
  clip-path: polygon(0 60%, 100% 0, 86% 100%, 12% 100%);
}

.face-display {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  margin-top: 6px;
  animation: float-face 2.6s ease-in-out infinite;
  transform: translate(var(--face-peek-x, 0px), var(--face-peek-y, 0px));
}

.terror-mask {
  position: absolute;
  left: 50%;
  top: 26px;
  width: 112px;
  height: 112px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #eeeeee;
  border: 4px solid #2f3337;
  display: none;
  box-shadow:
    inset 0 -10px 0 rgba(0, 0, 0, 0.08),
    0 0 18px rgba(255, 255, 255, 0.18);
}

.terror-mask-eye,
.terror-mask-mouth {
  position: absolute;
  background: #161616;
}

.terror-mask-eye {
  top: 32px;
  width: 26px;
  height: 28px;
  border-radius: 50% 50% 46% 46%;
}

.terror-mask-eye-left {
  left: 22px;
}

.terror-mask-eye-right {
  right: 22px;
}

.terror-mask-mouth {
  left: 50%;
  bottom: 22px;
  width: 48px;
  height: 20px;
  margin-left: -24px;
  border-radius: 0 0 18px 18px;
  background:
    linear-gradient(90deg, transparent 0 14%, #eeeeee 14% 20%, transparent 20% 36%, #eeeeee 36% 42%, transparent 42% 58%, #eeeeee 58% 64%, transparent 64% 80%, #eeeeee 80% 86%, transparent 86% 100%),
    #161616;
}

.face-eyes {
  display: flex;
  gap: 42px;
  align-items: center;
  justify-content: center;
  animation: eye-sway 3.2s ease-in-out infinite;
}

.eye {
  position: relative;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.22);
  animation: none;
  transform: translate(var(--eye-look-x, 0px), var(--eye-look-y, 0px));
  transition: transform 90ms linear;
}

.face-cheeks {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 112px;
  animation: cheek-bounce 2.6s ease-in-out infinite;
  transform: translate(var(--face-look-x, 0px), var(--face-look-y, 0px));
  transition: transform 90ms linear;
}

.cheek {
  position: relative;
  width: 22px;
  height: 14px;
  color: #ffffff;
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: 900;
  line-height: 14px;
  text-align: center;
}

.cheek::before {
  content: "M";
  position: absolute;
  inset: 0;
}

.cheek-left {
  transform: none;
}

.mouth {
  transition: transform 120ms ease, clip-path 120ms ease, width 120ms ease, height 120ms ease;
  background: #ffffff;
  transform: translate(var(--face-look-x, 0px), var(--face-look-y, 0px));
  border-radius: 0 0 18px 18px;
}

.mouth-triangle {
  width: 46px;
  height: 50px;
  clip-path: polygon(0 0, 100% 0, 58% 82%, 50% 94%, 42% 82%);
  animation: idle-mouth 2.8s ease-in-out infinite;
}

.mouth-open {
  width: 38px;
  height: 42px;
  clip-path: polygon(10% 0, 90% 0, 58% 80%, 50% 92%, 42% 80%);
  transform: translate(var(--face-look-x, 0px), var(--face-look-y, 0px)) scaleY(0.82);
}

.rainbow-vomit {
  position: absolute;
  left: 50%;
  top: 118px;
  width: 18px;
  height: 0;
  margin-left: -9px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #ff3b30 0%, #ff9500 18%, #ffd60a 36%, #34c759 58%, #0a84ff 78%, #bf5af2 100%);
  opacity: 0;
  transform-origin: top center;
  transition: opacity 120ms ease, height 180ms ease;
}

.computer-shell.rainbow-puke .rainbow-vomit {
  height: 54px;
  opacity: 0.95;
  animation: rainbow-drip 0.45s ease-in-out infinite alternate;
}

body.terror-night .face-display {
  animation: float-face 1.2s ease-in-out infinite;
}

body.terror-night .mood-panel.text-mode .face-display {
  display: grid;
}

body.terror-night .face-cheeks {
  opacity: 0;
}

body.terror-night .face-eyes,
body.terror-night #mouth {
  opacity: 0;
}

body.terror-night .eye,
body.terror-night .mouth {
  background: #ff4f4f;
  box-shadow: 0 0 12px rgba(255, 66, 66, 0.6);
}

body.terror-night .terror-mask {
  display: block;
  z-index: 3;
}

body.terror-night .screen-subtitle {
  position: relative;
  z-index: 2;
  max-width: 92px;
  font-size: 13px;
}

.screen-subtitle {
  display: none;
  margin: 0;
  max-width: 142px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
  color: #ffffff;
  animation: subtitle-pop 1.8s ease-in-out infinite;
}

.mood-panel.text-mode .screen-subtitle {
  display: block;
}

.mood-panel.colorful .screen-subtitle,
.mood-panel.colorful .hat-top,
.mood-panel.colorful .hat-brim {
  background: linear-gradient(90deg, #60efff, #6aff91, #ffd166, #ff7b72);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.voice-box,
.mic-button,
.send-button {
  border-radius: 20px;
  border: 1px solid var(--line);
}

.keyboard-dock {
  width: 220px;
  margin: -76px auto 0;
  position: relative;
  z-index: 4;
}

.keyboard-shell {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.keyboard-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.voice-box {
  display: block;
  padding: 6px 8px;
  background: #aeb2b7;
  clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%);
}

.voice-title {
  display: block;
  font-weight: 700;
  font-size: 12px;
  color: #101010;
}

.voice-hint {
  display: block;
  margin-top: 2px;
  color: rgba(0, 0, 0, 0.68);
  font-size: 10px;
  text-align: center;
}

.voice-box input {
  width: 100%;
  margin-top: 6px;
  border: 0;
  outline: none;
  background: transparent;
  color: #111111;
  font-size: 12px;
  text-align: center;
}

.desk {
  position: relative;
  width: 314px;
  height: 42px;
  margin: 0 auto;
  border-radius: 0;
  background: #9a5b06;
  box-shadow: none;
}

.desk-wrap {
  position: relative;
  z-index: 4;
  width: 314px;
  margin: 48px auto 0;
  padding-bottom: 72px;
}

.desk-leg {
  position: absolute;
  top: 42px;
  width: 18px;
  height: 176px;
  border-radius: 0;
  background: #9a5b06;
}

.leg-left {
  left: 24px;
}

.leg-right {
  right: 24px;
}

.outlet {
  display: none;
}

.floor-outlet {
  position: absolute;
  top: 52px;
  right: 34px;
  width: 50px;
  height: 34px;
  margin-left: 0;
  border-radius: 12px;
  background: #d6d9dd;
  border: 3px solid #8f959b;
  z-index: 7;
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.16);
}

.floor-outlet.charging {
  box-shadow:
    0 0 0 4px rgba(255, 233, 131, 0.22),
    0 8px 14px rgba(0, 0, 0, 0.2);
}

.cables {
  position: relative;
  width: 220px;
  height: 54px;
  margin: -2px auto 0;
  z-index: 3;
}

.cable {
  position: absolute;
  top: 0;
  width: 4px;
  height: 56px;
  background: #2a2a2a;
  border-radius: 999px;
}

.cable-left {
  left: 36px;
  transform: rotate(28deg);
}

.cable-center {
  left: 108px;
}

.cable-right {
  right: 36px;
  transform: rotate(-28deg);
}

.outlet-hole {
  position: absolute;
  top: 16px;
  width: 6px;
  height: 18px;
  border-radius: 999px;
  background: #3c3c3c;
}

.outlet-hole:first-child {
  left: 11px;
}

.outlet-hole:last-child {
  right: 11px;
}

.voice-box input::placeholder {
  color: rgba(0, 0, 0, 0.46);
}

.key-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  margin-top: 4px;
  padding: 0 10px;
}

.key {
  height: 10px;
  border-radius: 2px;
  background: #eef0f2;
  box-shadow: none;
}

.key.wide {
  grid-column: span 2;
}

.key.extra-wide {
  grid-column: span 3;
}

.keyboard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
}

.mic-button,
.send-button {
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  padding: 8px 0;
}

.mic-button {
  background: #c3c7cb;
  color: #111111;
}

.mic-button.recording {
  background: #ff7b72;
  color: white;
  box-shadow: none;
}

.send-button {
  background: #c3c7cb;
  color: #111111;
}

.mic-button:hover,
.send-button:hover {
  transform: translateY(-1px);
}

.mic-button:active,
.send-button:active {
  transform: translateY(1px) scale(0.99);
}

.grass {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 18%, #7ad14a 18%, #5aa432 100%);
  pointer-events: none;
  z-index: 0;
}

.grass::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: 46px;
  opacity: 0;
  background:
    radial-gradient(ellipse at 8% 16px, #ffffff 0 26px, transparent 27px),
    radial-gradient(ellipse at 28% 12px, #eef8ff 0 30px, transparent 31px),
    radial-gradient(ellipse at 52% 18px, #ffffff 0 34px, transparent 35px),
    radial-gradient(ellipse at 78% 13px, #eef8ff 0 28px, transparent 29px),
    radial-gradient(ellipse at 96% 20px, #ffffff 0 32px, transparent 33px);
  transition: opacity 300ms ease;
}

body.weather-rain .grass {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 18%, #6aa6d8 18%, #3f7fb2 100%);
}

body.weather-snow .grass {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, 0) 18%, #f7fbff 18%, #dcecf7 100%);
}

body.weather-snow .grass::before {
  opacity: 1;
}

.food-zone {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 130px;
  z-index: 8;
}

.sales-basket {
  position: fixed;
  right: 172px;
  bottom: 22px;
  width: 126px;
  z-index: 8;
  text-align: center;
  transition: transform 180ms ease, filter 180ms ease;
}

.sales-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.basket-bowl {
  position: relative;
  height: 76px;
  border-radius: 18px 18px 30px 30px;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(255, 255, 255, 0.24) 12% 18%, transparent 18% 30%, rgba(255, 255, 255, 0.24) 30% 36%, transparent 36% 48%, rgba(255, 255, 255, 0.24) 48% 54%, transparent 54% 66%, rgba(255, 255, 255, 0.24) 66% 72%, transparent 72% 100%),
    linear-gradient(180deg, #d9913f 0%, #9a5a23 100%);
  border: 4px solid #7a4118;
  box-shadow:
    inset 0 -10px 0 rgba(0, 0, 0, 0.14),
    0 10px 22px rgba(0, 0, 0, 0.2);
}

.basket-bowl::before {
  content: "$50-100";
  position: absolute;
  left: 50%;
  top: 16px;
  transform: translateX(-50%);
  min-width: 72px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 241, 156, 0.9);
  color: #5b320d;
  font-size: 12px;
  font-weight: 900;
}

.sales-basket.ready {
  transform: translateY(-5px) scale(1.04);
  filter: drop-shadow(0 0 12px rgba(255, 234, 113, 0.8));
}

.sales-basket.selling .basket-bowl {
  animation: basket-sell-pop 0.52s ease-out;
}

.rhythm-box {
  position: fixed;
  left: 22px;
  bottom: 22px;
  width: min(372px, calc(100vw - 338px));
  min-width: 286px;
  z-index: 9;
  padding: 12px;
  border-radius: 8px;
  border: 2px solid rgba(13, 39, 50, 0.28);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
}

.rhythm-box.computer-drop-ready {
  border-color: rgba(19, 220, 232, 0.88);
  box-shadow:
    0 0 0 4px rgba(19, 220, 232, 0.22),
    0 12px 26px rgba(0, 0, 0, 0.22);
}

.rhythm-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: #11323a;
  font-size: 13px;
  font-weight: 900;
}

.rhythm-header span {
  color: #2b6a72;
  font-size: 12px;
  font-weight: 800;
}

.rhythm-volume {
  display: grid;
  grid-template-columns: auto 58px;
  align-items: center;
  gap: 5px;
  color: #173238;
  font-size: 11px;
  font-weight: 900;
}

.rhythm-volume input {
  width: 58px;
  accent-color: #13dce8;
}

.character-tray {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  justify-content: start;
  gap: 3px;
  width: max-content;
  max-width: 100%;
  padding: 5px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 217, 84, 0.72), rgba(83, 224, 238, 0.54)),
    #ffffff;
  box-shadow: inset 0 0 0 2px rgba(17, 36, 42, 0.08);
}

.sun-picker,
.moon-picker {
  display: none;
}

.happy-robot-picker {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  width: 100%;
  height: 52px;
  min-height: 52px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.32);
  color: #11242a;
  cursor: grab;
  box-shadow: none;
  touch-action: none;
}

.happy-robot-picker:active {
  cursor: grabbing;
}

.character-tray .sun-picker,
.character-tray .moon-picker {
  display: none;
}

.happy-robot-name,
.placed-robot-name {
  font-size: 14px;
  font-weight: 900;
}

.happy-robot-picker .happy-robot-name,
.rhythm-slot .placed-robot-name {
  display: none;
}

.rhythm-stage {
  display: grid;
  grid-template-columns: repeat(5, minmax(44px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.rhythm-slot {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: 104px;
  padding: 6px 4px 4px;
  border: 2px dashed rgba(18, 64, 70, 0.38);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 209, 222, 0.16), rgba(24, 197, 68, 0.18)),
    rgba(255, 255, 255, 0.55);
  cursor: pointer;
  overflow: hidden;
}

.rhythm-slot::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 38px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(17, 35, 42, 0.16);
}

.rhythm-slot.drop-ready {
  border-style: solid;
  border-color: #13dce8;
  box-shadow: 0 0 0 3px rgba(19, 220, 232, 0.25);
}

.rhythm-slot.occupied {
  border-style: solid;
  border-color: rgba(255, 190, 55, 0.9);
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 233, 113, 0.5), transparent 42%),
    linear-gradient(180deg, rgba(19, 209, 222, 0.2), rgba(24, 197, 68, 0.24)),
    rgba(255, 255, 255, 0.68);
}

.rhythm-slot.beat-pulse {
  animation: rhythm-slot-pulse 180ms ease-out;
}

.rhythm-slot:not(.occupied)::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 52px;
  height: 76px;
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at calc(38% + var(--empty-look-x, 0px)) calc(22% + var(--empty-look-y, 0px)), #344249 0 3px, transparent 4px),
    radial-gradient(circle at calc(62% + var(--empty-look-x, 0px)) calc(22% + var(--empty-look-y, 0px)), #344249 0 3px, transparent 4px),
    radial-gradient(circle at 38% 22%, transparent 0 6px, #6d7a7f 7px, #6d7a7f 8px, transparent 9px),
    radial-gradient(circle at 62% 22%, transparent 0 6px, #6d7a7f 7px, #6d7a7f 8px, transparent 9px),
    linear-gradient(90deg, transparent 0 25%, #344249 25% 75%, transparent 75% 100%),
    radial-gradient(circle at 50% 23%, #cfd6d9 0 20px, #7c898e 21px, transparent 22px),
    linear-gradient(90deg, #7c898e 0 2px, transparent 2px 5px, #7c898e 5px 7px, transparent 7px 11px, #7c898e 11px 13px, transparent 13px 17px, #7c898e 17px 19px),
    linear-gradient(180deg, #aab4b8, #87939a),
    linear-gradient(180deg, #7c898e, #6d7a7f),
    linear-gradient(180deg, #b7c0c4, #99a5aa);
  background-repeat: no-repeat;
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    20px 4px,
    100% 100%,
    19px 9px,
    14px 15px,
    30px 36px,
    24px 31px;
  background-position:
    center,
    center,
    center,
    center,
    center 29px,
    center,
    center 42px,
    center 38px,
    center bottom,
    center calc(100% - 3px);
  opacity: 0.72;
  animation: empty-slot-look var(--empty-look-speed, 3.2s) ease-in-out infinite;
  animation-delay: var(--empty-look-delay, 0s);
}

.rhythm-slot:nth-child(1) {
  --empty-idle-look-x: -4px;
  --empty-idle-look-y: 1px;
  --empty-look-delay: -0.2s;
  --empty-look-speed: 3.1s;
}

.rhythm-slot:nth-child(2) {
  --empty-idle-look-x: 4px;
  --empty-idle-look-y: -1px;
  --empty-look-delay: -1.4s;
  --empty-look-speed: 3.8s;
}

.rhythm-slot:nth-child(3) {
  --empty-idle-look-x: 0px;
  --empty-idle-look-y: 3px;
  --empty-look-delay: -2.5s;
  --empty-look-speed: 2.9s;
}

.rhythm-slot:nth-child(4) {
  --empty-idle-look-x: 5px;
  --empty-idle-look-y: 2px;
  --empty-look-delay: -0.9s;
  --empty-look-speed: 4.1s;
}

.rhythm-slot:nth-child(5) {
  --empty-idle-look-x: -3px;
  --empty-idle-look-y: -2px;
  --empty-look-delay: -3s;
  --empty-look-speed: 3.4s;
}

.rhythm-slot.mouse-looking:not(.occupied)::after {
  --empty-look-x: var(--empty-mouse-look-x, 0px);
  --empty-look-y: var(--empty-mouse-look-y, 0px);
  animation: none;
}

.rhythm-slot.front-looking:not(.occupied)::after {
  --empty-look-x: 0px;
  --empty-look-y: 0px;
}

.happy-robot-icon {
  --robot-scale: 1;
  position: relative;
  display: block;
  width: 68px;
  height: 86px;
  transform: scale(var(--robot-scale));
  transform-origin: 50% 92%;
}

.happy-robot-picker .happy-robot-icon {
  --robot-scale: 0.38;
  justify-self: center;
  width: 68px;
  height: 86px;
}

.gallod-icon {
  height: 92px;
}

.gallod-dome {
  position: absolute;
  left: 50%;
  top: 2px;
  width: 68px;
  height: 44px;
  transform: translateX(-50%);
  border: 3px solid #10191d;
  border-bottom: 0;
  border-radius: 38px 38px 7px 7px;
  background: #ffc946;
  z-index: 1;
}

.gallod-head {
  top: 24px;
  width: 64px;
  height: 40px;
  border-radius: 8px;
  background: #ffc946;
  box-shadow: none;
}

.gallod-head::before {
  display: none;
}

.gallod-screen {
  position: absolute;
  inset: 6px 8px 8px;
  border: 2px solid #142228;
  border-radius: 4px;
  background:
    radial-gradient(circle at calc(50% + var(--gallod-look-x, 0px)) calc(50% + var(--gallod-look-y, 0px)), rgba(255, 255, 255, 0.72) 0 7px, transparent 8px),
    #34edf1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.gallod-mouth {
  position: absolute;
  left: 50%;
  top: 68px;
  z-index: 3;
  width: 31px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #080b0e;
}

.gallod-neck {
  bottom: 0;
  width: 38px;
  height: 31px;
  border-radius: 18px 18px 4px 4px;
  background: linear-gradient(180deg, #ffd35b 0%, #ffc946 52%, #eda82f 100%);
}

.gallod-neck::after {
  display: none;
}

.simon-icon {
  height: 94px;
}

.simon-head {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 2;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
  border: 3px solid #10191d;
  border-radius: 50%;
  background: #ffe022;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.25);
}

.simon-eye {
  position: absolute;
  top: 22px;
  width: 22px;
  height: 22px;
  transform: translate(var(--robot-look-x, 0px), var(--robot-look-y, 0px));
  border: 4px solid #ffffff;
  border-radius: 50%;
  background: #080b0e;
  box-shadow: 0 0 0 2px #10191d;
}

.simon-eye.eye-left {
  left: 13px;
}

.simon-eye.eye-right {
  right: 13px;
}

.simon-mouth {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 22px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 2px 2px 12px 12px;
  background: #080b0e;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.simon-neck {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 28px;
  height: 34px;
  transform: translateX(-50%);
  border: 3px solid #10191d;
  border-top: 0;
  border-radius: 3px 3px 8px 8px;
  background: linear-gradient(180deg, #ffe022 0%, #f3c800 100%);
}

.simon-antenna {
  position: absolute;
  top: -1px;
  z-index: 1;
  width: 4px;
  height: 34px;
  transform-origin: 50% 100%;
  background: #10191d;
}

.simon-antenna::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 24px;
  height: 24px;
  transform: translateX(-50%);
  border: 3px solid #10191d;
  border-radius: 50%;
  background: #ffe022;
}

.simon-antenna.antenna-left {
  left: 4px;
  transform: rotate(-10deg);
}

.simon-antenna.antenna-right {
  right: 4px;
  transform: rotate(10deg);
}

.simon-hair {
  position: absolute;
  top: 6px;
  left: 50%;
  z-index: 4;
  width: 23px;
  height: 18px;
  transform-origin: 50% 100%;
  background: #ffe022;
  clip-path: polygon(0 100%, 100% 100%, 62% 0);
  filter: drop-shadow(0 2px 0 #10191d);
}

.simon-hair.hair-one {
  transform: translateX(-86%) rotate(-22deg);
}

.simon-hair.hair-two {
  top: 2px;
  transform: translateX(-42%) rotate(5deg);
}

.simon-hair.hair-three {
  transform: translateX(0%) rotate(23deg);
}

.music-box-icon {
  height: 94px;
}

.music-box-head {
  position: absolute;
  left: 50%;
  top: 9px;
  z-index: 2;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
  border: 3px solid #10191d;
  border-radius: 50%;
  background: #22d5dc;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.24);
}

.music-box-ear {
  position: absolute;
  top: 15px;
  z-index: 1;
  width: 26px;
  height: 26px;
  border: 3px solid #10191d;
  border-radius: 50%;
  background: #22d5dc;
}

.music-box-ear::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: #8cf8f7;
}

.music-box-ear.ear-left {
  left: 0;
}

.music-box-ear.ear-right {
  right: 0;
}

.music-box-hair {
  position: absolute;
  left: 50%;
  top: 2px;
  z-index: 4;
  width: 20px;
  height: 28px;
  transform: translateX(-50%) rotate(18deg);
  border-left: 3px solid #10191d;
  border-radius: 50%;
}

.music-box-eye {
  position: absolute;
  top: 25px;
  width: 23px;
  height: 23px;
  transform: translate(var(--robot-look-x, 0px), var(--robot-look-y, 0px));
  border: 3px solid #10191d;
  border-radius: 50%;
  background: #f7ffff;
  overflow: hidden;
}

.music-box-eye::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  top: 8px;
  height: 3px;
  background: #10191d;
}

.music-box-eye span {
  position: absolute;
  left: 6px;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10191d;
}

.music-box-eye.eye-left {
  left: 12px;
}

.music-box-eye.eye-right {
  right: 12px;
}

.music-box-mouth {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 25px;
  height: 12px;
  transform: translateX(-50%);
  background: #10191d;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.music-box-neck {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 1;
  width: 30px;
  height: 34px;
  transform: translateX(-50%);
  border: 3px solid #10191d;
  border-top: 0;
  border-radius: 3px 3px 8px 8px;
  background: linear-gradient(180deg, #27e7e8 0%, #20cdd8 100%);
}

.sun-icon,
.moon-icon {
  width: 108px;
  height: 108px;
  transform-origin: 50% 50%;
}

.sky-sun-copy,
.sky-moon-copy {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 108px;
  height: 108px;
  transform: translate(-50%, -50%) scale(0.66);
}

.sky-sun-copy .sun-core,
.sky-moon-copy .moon-face {
  inset: 0;
}

.sky-sun-copy .sun-core {
  animation: none;
}

.sky-moon-copy .moon-face {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #dfe8ff 62%, #9caecc 100%);
  box-shadow: 0 0 28px rgba(180, 198, 255, 0.28);
}

.sky-sun-copy .sun-eye,
.sky-moon-copy .moon-eye {
  transform: translate(var(--robot-look-x, 0px), var(--robot-look-y, 0px));
}

.sky-moon-copy .moon-face::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 4px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8, 17, 31, 0.36);
}

.happy-robot-antenna {
  position: absolute;
  top: 0;
  width: 22px;
  height: 22px;
  border: 2px solid #142228;
  border-radius: 50%;
  background: #ffc946;
  z-index: 1;
}

.happy-robot-antenna::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  width: 3px;
  height: 28px;
  transform: translateX(-50%);
  background: #142228;
}

.happy-robot-antenna.antenna-left {
  left: 1px;
}

.happy-robot-antenna.antenna-right {
  right: 1px;
}

.happy-robot-speaker {
  display: none;
}

.happy-robot-speaker.speaker-left {
  left: -5px;
}

.happy-robot-speaker.speaker-right {
  right: -5px;
}

.happy-robot-head {
  position: absolute;
  left: 50%;
  top: 23px;
  width: 54px;
  height: 38px;
  transform: translateX(-50%);
  border: 3px solid #10191d;
  border-radius: 7px;
  background: #080b0e;
  box-shadow: 0 0 0 3px #ffc93f;
  z-index: 2;
}

.happy-robot-head::before {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -15px;
  height: 12px;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  border: 2px solid #142228;
  background: #8af4ff;
  transform-origin: 50% 0;
}

.happy-robot-eye {
  position: absolute;
  top: 9px;
  width: 7px;
  height: 20px;
  border-radius: 999px;
  background: #25f4ff;
  box-shadow: 0 0 8px rgba(37, 244, 255, 0.72);
  transform: translate(var(--robot-look-x, 0px), var(--robot-look-y, 0px));
}

.happy-robot-eye.eye-left {
  left: 14px;
}

.happy-robot-eye.eye-right {
  right: 14px;
}

.happy-robot-companion.robot-looking-at-computer.robot-right-side .happy-robot-eye {
  transform: translate(calc(var(--robot-look-x, 0px) - 3px), var(--robot-look-y, 0px));
}

.happy-robot-companion.robot-looking-at-computer.robot-left-side .happy-robot-eye {
  transform: translate(calc(var(--robot-look-x, 0px) + 3px), var(--robot-look-y, 0px));
}

.happy-robot-mouth {
  display: none;
}

.happy-robot-hand {
  position: absolute;
  z-index: 8;
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid #142228;
  border-radius: 50%;
  background: #ffc946;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.12);
}

.happy-robot-neck {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 30px;
  height: 22px;
  transform: translateX(-50%);
  border: 2px solid #142228;
  border-radius: 8px 8px 5px 5px;
  background: repeating-linear-gradient(180deg, #ffd35b 0 8px, #ffbb37 8px 14px);
  z-index: 1;
}

.happy-robot-neck::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -12px;
  width: 20px;
  height: 10px;
  transform: translateX(-50%);
  border: 2px solid #142228;
  border-top: 0;
  border-radius: 0 0 4px 4px;
  background: #7d8587;
}

.placed-happy-robot {
  --robot-scale: 0.78;
  width: 68px;
  height: 86px;
  align-self: start;
  margin-top: -4px;
}

.computer-rhythm-icon {
  width: 74px;
  height: 82px;
}

.computer-rhythm-body {
  position: absolute;
  left: 50%;
  top: 5px;
  width: 70px;
  height: 70px;
  transform: translateX(-50%);
}

.computer-rhythm-screen {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 62px;
  height: 50px;
  transform: translateX(-50%);
  border: 6px solid #c3c7cb;
  border-radius: 10px;
  background: #050505;
  box-shadow: inset 0 0 0 2px #2d3338;
}

.computer-rhythm-eye {
  position: absolute;
  top: 15px;
  width: 9px;
  height: 15px;
  border-radius: 999px;
  background: #ffffff;
  transform: translate(var(--robot-look-x, 0px), var(--robot-look-y, 0px));
}

.computer-rhythm-eye.eye-left {
  left: 16px;
}

.computer-rhythm-eye.eye-right {
  right: 16px;
}

.computer-rhythm-mouth {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 18px;
  height: 7px;
  transform: translateX(-50%);
  border-bottom: 3px solid #ffffff;
  border-radius: 0 0 16px 16px;
  animation: computer-rhythm-mouth-talk 190ms steps(2, end) infinite;
}

.computer-rhythm-icon:not(.computer-singing) .computer-rhythm-mouth {
  animation-play-state: paused;
}

.computer-rhythm-icon.computer-singing .computer-rhythm-screen {
  box-shadow:
    inset 0 0 0 2px #2d3338,
    0 0 12px rgba(96, 239, 255, 0.42);
}

.computer-rhythm-lyric {
  position: absolute;
  left: 50%;
  bottom: 76px;
  width: 148px;
  min-height: 22px;
  padding: 5px 7px;
  transform: translateX(-50%) scale(0.96);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.9);
  color: #60efff;
  font-size: 10px;
  line-height: 1.25;
  font-weight: 900;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.24);
}

.computer-rhythm-icon.computer-singing .computer-rhythm-lyric {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.computer-rhythm-stand {
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 20px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 5px 5px 7px 7px;
  background: linear-gradient(180deg, #c3c7cb, #858b91);
}

.happy-robot-ghost {
  position: fixed;
  z-index: 30;
  width: 92px;
  height: 100px;
  pointer-events: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.3));
}

.happy-robot-companion {
  --robot-scale: 0.92;
  position: fixed;
  z-index: 7;
  width: 68px;
  height: 86px;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.22));
  transition: left 180ms ease, top 180ms ease;
}

.happy-robot-companion.dragging {
  z-index: 31;
  cursor: grabbing;
  transition: none;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.3));
}

.happy-robot-companion.robot-playing {
  animation: happy-robot-play 920ms ease-in-out infinite;
}

.happy-robot-companion.robot-talking .happy-robot-eye {
  height: 17px;
  transform: translate(var(--robot-look-x, 0px), calc(var(--robot-look-y, 0px) + 2px));
}

.happy-robot-companion.robot-talking.robot-looking-at-computer.robot-right-side .happy-robot-eye {
  transform: translate(calc(var(--robot-look-x, 0px) - 3px), calc(var(--robot-look-y, 0px) + 2px));
}

.happy-robot-companion.robot-talking.robot-looking-at-computer.robot-left-side .happy-robot-eye {
  transform: translate(calc(var(--robot-look-x, 0px) + 3px), calc(var(--robot-look-y, 0px) + 2px));
}

.happy-robot-companion.robot-talking .happy-robot-head::before {
  animation: happy-robot-mouth-talk 170ms steps(2, end) infinite;
}

.happy-robot-companion.robot-talking .gallod-mouth {
  animation: gallod-mouth-talk 170ms steps(2, end) infinite;
}

.happy-robot-icon.robot-writing .happy-robot-eye,
.happy-robot-icon.robot-writing .happy-robot-mouth {
  opacity: 0;
}

.gallod-icon.robot-writing .gallod-screen {
  background: #080b0e;
}

.happy-robot-icon.robot-sleeping {
  animation: robot-sleep-breathe 2.4s ease-in-out infinite;
}

.happy-robot-companion.robot-sleeping {
  transform: rotate(82deg) scale(var(--robot-scale, 1));
  transform-origin: 50% 78%;
}

.happy-robot-icon.robot-sleeping .happy-robot-antenna,
.happy-robot-icon.robot-sleeping .happy-robot-head,
.happy-robot-icon.robot-sleeping .happy-robot-head::before,
.happy-robot-icon.robot-sleeping .happy-robot-neck,
.happy-robot-icon.robot-sleeping .happy-robot-neck::after,
.happy-robot-icon.robot-sleeping .gallod-dome,
.happy-robot-icon.robot-sleeping .gallod-head,
.happy-robot-icon.robot-sleeping .gallod-neck,
.happy-robot-icon.robot-sleeping .simon-antenna,
.happy-robot-icon.robot-sleeping .simon-antenna::after,
.happy-robot-icon.robot-sleeping .simon-hair,
.happy-robot-icon.robot-sleeping .simon-head,
.happy-robot-icon.robot-sleeping .simon-neck,
.happy-robot-icon.robot-sleeping .music-box-ear,
.happy-robot-icon.robot-sleeping .music-box-ear::after,
.happy-robot-icon.robot-sleeping .music-box-head,
.happy-robot-icon.robot-sleeping .music-box-neck {
  background: #0b0d10;
  box-shadow: none;
}

.happy-robot-icon.robot-sleeping .gallod-mouth,
.happy-robot-icon.robot-sleeping .simon-mouth,
.happy-robot-icon.robot-sleeping .music-box-mouth {
  background: #0b0d10;
}

.happy-robot-icon.robot-sleeping .happy-robot-eye,
.happy-robot-icon.robot-sleeping .gallod-screen,
.happy-robot-icon.robot-sleeping .simon-eye,
.happy-robot-icon.robot-sleeping .music-box-eye {
  opacity: 0.18;
  filter: grayscale(1);
}

.happy-robot-companion.robot-cleaning {
  animation: happy-robot-clean 620ms ease-in-out infinite;
}

.happy-robot-companion.robot-umbrella::before {
  content: "";
  position: absolute;
  left: -225px;
  top: -72px;
  z-index: 7;
  width: 290px;
  height: 110px;
  border: 4px solid #12313a;
  border-bottom: 0;
  border-radius: 160px 160px 18px 18px / 92px 92px 18px 18px;
  background:
    radial-gradient(circle at 24% 52%, rgba(255, 255, 255, 0.5) 0 18px, transparent 19px),
    linear-gradient(90deg, #26eaff 0 24%, #ffe66f 24% 50%, #ff6f9d 50% 75%, #26eaff 75% 100%);
  box-shadow: 0 18px 0 -14px rgba(18, 49, 58, 0.55), 0 0 18px rgba(38, 234, 255, 0.34);
  pointer-events: none;
}

.happy-robot-companion.robot-umbrella.robot-left-side::before {
  left: 6px;
}

.happy-robot-companion.robot-umbrella::after {
  content: "";
  position: absolute;
  left: -88px;
  top: 22px;
  z-index: 6;
  width: 5px;
  height: 92px;
  border-radius: 999px;
  background: #12313a;
  transform: rotate(-18deg);
  pointer-events: none;
}

.happy-robot-companion.robot-umbrella.robot-left-side::after {
  left: 124px;
  transform: rotate(18deg);
}

.happy-robot-companion.robot-umbrella .happy-robot-hand {
  display: block;
}

.happy-robot-companion.robot-umbrella .happy-robot-hand.hand-left {
  left: -8px;
  top: 44px;
  animation: happy-robot-hold-umbrella-left 620ms ease-in-out infinite;
}

.happy-robot-companion.robot-umbrella .happy-robot-hand.hand-right {
  left: 8px;
  top: 54px;
  animation: happy-robot-hold-umbrella-right 620ms ease-in-out infinite;
}

.happy-robot-companion.robot-umbrella.gallod-icon .happy-robot-hand.hand-left {
  left: -4px;
  top: 50px;
}

.happy-robot-companion.robot-umbrella.gallod-icon .happy-robot-hand.hand-right {
  left: 12px;
  top: 60px;
}

.happy-robot-companion.robot-umbrella.robot-left-side .happy-robot-hand.hand-left {
  left: 58px;
}

.happy-robot-companion.robot-umbrella.robot-left-side .happy-robot-hand.hand-right {
  left: 44px;
}

.happy-robot-companion.robot-crying .happy-robot-head::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 27px;
  width: 5px;
  height: 12px;
  border-radius: 999px;
  background: #26eaff;
  box-shadow: 23px 0 0 #26eaff;
  animation: happy-robot-tears 480ms ease-in-out infinite;
}

.happy-robot-companion.robot-kissing::after,
.computer-shell.air-kissing::before {
  content: "♥";
  position: absolute;
  z-index: 9;
  color: #ff6f9d;
  font-size: 22px;
  font-weight: 900;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.9);
  pointer-events: none;
  animation: air-kiss-heart 1.4s ease-out forwards;
}

.happy-robot-companion.robot-kissing::after {
  left: -36px;
  top: 24px;
}

.computer-shell.air-kissing::before {
  right: -22px;
  top: 80px;
}

.happy-robot-message {
  position: absolute;
  left: 50%;
  top: 28px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 42px;
  height: 18px;
  transform: translateX(-50%);
  color: #26eaff;
  font-size: 8px;
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 0 6px rgba(38, 234, 255, 0.9);
  pointer-events: none;
  overflow: hidden;
}

.beat-bounce {
  animation: happy-robot-bounce 180ms ease-out;
}

.rhythm-slot .placed-robot-name {
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 4px;
  color: #173238;
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
}

.food-title {
  margin: 0 0 6px;
  color: #ffffff;
  font-size: 12px;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.food-tray {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  min-height: 118px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 2px solid rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(4px);
  overflow: hidden;
}

.food-option {
  position: relative;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border: 0;
  background: transparent;
  cursor: grab;
}

.food-option:active {
  cursor: grabbing;
}

.food-option::before,
.food-option::after {
  content: "";
  position: absolute;
}

.food-apple::before {
  left: 8px;
  top: 10px;
  width: 28px;
  height: 26px;
  border-radius: 48% 48% 52% 52%;
  background: radial-gradient(circle at 35% 35%, #ffb2b2 0%, #ff534d 42%, #cf1818 100%);
}

.food-apple::after {
  left: 19px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 0 100% 0 100%;
  background: #38a93c;
  transform: rotate(-24deg);
}

.food-banana::before {
  left: 7px;
  top: 14px;
  width: 30px;
  height: 14px;
  border-radius: 18px 18px 12px 12px;
  border: 5px solid #ffd54a;
  border-top-color: transparent;
  border-left-color: #ffea8c;
  transform: rotate(-18deg);
}

.food-banana::after {
  left: 29px;
  top: 15px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b5a00;
}

.food-orange::before {
  left: 9px;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd89f 0%, #ffa327 46%, #ef6c00 100%);
}

.food-orange::after {
  left: 18px;
  top: 5px;
  width: 10px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: #3ea64e;
  transform: rotate(10deg);
}

.food-cookie::before {
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5d7a0 0%, #d8ab62 100%);
  box-shadow:
    7px 6px 0 -4px #8b5a2b,
    16px 9px 0 -4px #8b5a2b,
    10px 17px 0 -4px #8b5a2b,
    18px 19px 0 -4px #8b5a2b;
}

.food-piece {
  position: fixed;
  width: 32px;
  height: 32px;
  z-index: 20;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
}

.food-piece::before,
.food-piece::after {
  content: "";
  position: absolute;
}

.food-piece.food-apple::before {
  inset: 3px 2px 2px 2px;
  border-radius: 48% 48% 52% 52%;
  background: radial-gradient(circle at 35% 35%, #ffb2b2 0%, #ff534d 42%, #cf1818 100%);
}

.food-piece.food-apple::after {
  left: 12px;
  top: -1px;
  width: 10px;
  height: 10px;
  border-radius: 0 100% 0 100%;
  background: #38a93c;
  transform: rotate(-20deg);
}

.food-piece.food-banana::before {
  left: 4px;
  top: 10px;
  width: 26px;
  height: 12px;
  border-radius: 18px 18px 12px 12px;
  border: 5px solid #ffd54a;
  border-top-color: transparent;
  border-left-color: #ffea8c;
  transform: rotate(-18deg);
}

.food-piece.food-banana::after {
  left: 24px;
  top: 11px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8b5a00;
}

.food-piece.food-orange::before {
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd89f 0%, #ffa327 46%, #ef6c00 100%);
}

.food-piece.food-orange::after {
  left: 11px;
  top: -1px;
  width: 10px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: #3ea64e;
}

.food-piece.food-cookie::before {
  inset: 2px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f5d7a0 0%, #d8ab62 100%);
  box-shadow:
    7px 6px 0 -4px #8b5a2b,
    16px 9px 0 -4px #8b5a2b,
    10px 17px 0 -4px #8b5a2b,
    18px 19px 0 -4px #8b5a2b;
}

.food-piece.eating {
  transition: transform 320ms ease, opacity 320ms ease;
  opacity: 0;
  transform: scale(0.2);
}

.sprout-tree {
  position: fixed;
  width: 46px;
  height: 88px;
  z-index: 12;
  touch-action: none;
  cursor: grab;
}

.sprout-tree.dragging {
  z-index: 22;
  cursor: grabbing;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.28));
}

.sprout-tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 10px;
  height: 42px;
  transform: translateX(-50%);
  background: #7b4a16;
  border-radius: 4px;
}

.sprout-tree::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10px;
  width: 42px;
  height: 42px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #2fa643;
  box-shadow:
    -12px 14px 0 #39b44c,
    12px 14px 0 #259036,
    0 24px 0 #2d9d3f;
}

.sprout-tree .tree-fruit {
  position: absolute;
  z-index: 1;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sprout-tree .tree-fruit.fruit-left {
  left: 7px;
  top: 32px;
}

.sprout-tree .tree-fruit.fruit-mid {
  left: 18px;
  top: 22px;
}

.sprout-tree .tree-fruit.fruit-right {
  right: 7px;
  top: 34px;
}

.sprout-tree.tree-apple .tree-fruit,
.sprout-tree.tree-apple .tree-fruit::after {
  background: #e33939;
}

.sprout-tree.tree-orange .tree-fruit,
.sprout-tree.tree-orange .tree-fruit::after {
  background: #ff9822;
}

.sprout-tree .tree-fruit::after {
  content: "";
  position: absolute;
  left: 3px;
  top: -3px;
  width: 4px;
  height: 4px;
  border-radius: 0 100% 0 100%;
  background: #39a03e;
}

.day-night-toggle {
  position: fixed;
  right: 22px;
  bottom: 118px;
  z-index: 8;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #111111;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.weather-toggle {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: auto;
  top: max(14px, env(safe-area-inset-top));
  bottom: auto;
  z-index: 100;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #111111;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.light-toggle {
  position: fixed;
  left: max(14px, env(safe-area-inset-left));
  right: auto;
  top: calc(max(14px, env(safe-area-inset-top)) + 48px);
  z-index: 100;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 244, 167, 0.92);
  color: #261c00;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

body.light-on .light-toggle {
  background: rgba(52, 52, 52, 0.92);
  color: #fff3b0;
}

.yard-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: calc(max(14px, env(safe-area-inset-top)) + 192px);
  z-index: 101;
  border: 0;
  border-radius: 999px;
  background: rgba(126, 226, 123, 0.94);
  color: #073008;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.home-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: calc(max(14px, env(safe-area-inset-top)) + 240px);
  z-index: 101;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 238, 164, 0.95);
  color: #3a2600;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.yard-toggle:disabled,
.home-toggle:disabled {
  cursor: default;
  opacity: 0.5;
  filter: grayscale(0.35);
}

.yard-toggle.active,
.home-toggle.active {
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.22),
    0 0 0 3px rgba(255, 255, 255, 0.64);
}

.call-back-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: calc(max(14px, env(safe-area-inset-top)) + 288px);
  z-index: 102;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 120, 90, 0.96);
  color: #ffffff;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

body.computer-away .call-back-toggle {
  display: block;
}

.money-display {
  position: fixed;
  left: 50%;
  top: max(14px, env(safe-area-inset-top));
  transform: translateX(-50%);
  z-index: 101;
  min-width: 72px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(25, 25, 25, 0.78);
  color: #ffe274;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.mine-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: max(14px, env(safe-area-inset-top));
  z-index: 101;
  border: 0;
  border-radius: 999px;
  background: rgba(70, 45, 30, 0.92);
  color: #fff2d2;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.mine-toggle[hidden],
.shop-toggle[hidden] {
  display: none !important;
}

.mine-toggle.active {
  background: rgba(31, 91, 63, 0.94);
}

.shop-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: calc(max(14px, env(safe-area-inset-top)) + 48px);
  z-index: 101;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 224, 118, 0.94);
  color: #2e2100;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.shop-toggle.active {
  background: rgba(84, 125, 255, 0.94);
  color: #ffffff;
}

:root {
  --minecraft-texture-grass: url("./assets/minecraft-blocks/grass.png");
  --minecraft-texture-dirt: url("./assets/minecraft-blocks/dirt.png");
  --minecraft-texture-mossy-dirt: url("./assets/minecraft-blocks/mossy-dirt.png");
  --minecraft-texture-fungus: url("./assets/minecraft-blocks/fungus.png");
  --minecraft-texture-stone-bricks: url("./assets/minecraft-blocks/stone-bricks.png");
  --minecraft-texture-cobblestone: url("./assets/minecraft-blocks/cobblestone.png");
  --minecraft-texture-sand: url("./assets/minecraft-blocks/sand.png");
  --minecraft-texture-red-sand: url("./assets/minecraft-blocks/red-sand.png");
  --minecraft-texture-gold-ore: url("./assets/minecraft-blocks/gold-ore.png");
  --minecraft-texture-snow: url("./assets/minecraft-blocks/snow.png");
  --minecraft-texture-ice: url("./assets/minecraft-blocks/ice.png");
  --minecraft-texture-packed-ice: url("./assets/minecraft-blocks/packed-ice.png");
  --minecraft-texture-blue-ice: url("./assets/minecraft-blocks/blue-ice.png");
  --minecraft-texture-obsidian: url("./assets/minecraft-blocks/obsidian.png");
  --minecraft-texture-bedrock: url("./assets/minecraft-blocks/bedrock.png");
  --minecraft-texture-deepslate: url("./assets/minecraft-blocks/deepslate.png");
  --minecraft-texture-tuff: url("./assets/minecraft-blocks/tuff.png");
  --minecraft-texture-diorite: url("./assets/minecraft-blocks/diorite.png");
  --minecraft-texture-granite: url("./assets/minecraft-blocks/granite.png");
  --minecraft-tool-wood-sword: url("./assets/minecraft-tools/wood-sword.png");
  --minecraft-tool-stone-sword: url("./assets/minecraft-tools/stone-sword.png");
  --minecraft-tool-iron-sword: url("./assets/minecraft-tools/iron-sword.png");
  --minecraft-tool-gold-sword: url("./assets/minecraft-tools/gold-sword.png");
  --minecraft-tool-diamond-sword: url("./assets/minecraft-tools/diamond-sword.png");
  --minecraft-tool-wood-pickaxe: url("./assets/minecraft-tools/wood-pickaxe.png");
  --minecraft-tool-stone-pickaxe: url("./assets/minecraft-tools/stone-pickaxe.png");
  --minecraft-tool-iron-pickaxe: url("./assets/minecraft-tools/iron-pickaxe.png");
  --minecraft-tool-gold-pickaxe: url("./assets/minecraft-tools/gold-pickaxe.png");
  --minecraft-tool-diamond-pickaxe: url("./assets/minecraft-tools/diamond-pickaxe.png");
  --minecraft-tool-wood-axe: url("./assets/minecraft-tools/wood-axe.png");
  --minecraft-tool-stone-axe: url("./assets/minecraft-tools/stone-axe.png");
  --minecraft-tool-iron-axe: url("./assets/minecraft-tools/iron-axe.png");
  --minecraft-tool-bow: url("./assets/minecraft-tools/bow.png");
  --minecraft-tool-arrow: url("./assets/minecraft-tools/arrow.png");
  --minecraft-tool-shield: url("./assets/minecraft-tools/shield.png");
  --minecraft-tool-fishing-rod: url("./assets/minecraft-tools/fishing-rod.png");
  --minecraft-tool-shears: url("./assets/minecraft-tools/shears.png");
  --minecraft-tool-flint-and-steel: url("./assets/minecraft-tools/flint-and-steel.png");
  --minecraft-tool-carrot-on-a-stick: url("./assets/minecraft-tools/carrot-on-a-stick.png");
  --minecraft-tool-torch: url("./assets/minecraft-tools/torch.png");
}

.minecraft-grass,
.minecraft-dirt,
.minecraft-stone,
.minecraft-wood,
.minecraft-leaves,
.minecraft-cube.minecraft-grass,
.minecraft-cube.minecraft-dirt,
.minecraft-cube.minecraft-stone,
.minecraft-cube.minecraft-wood,
.minecraft-cube.minecraft-leaves,
.minecraft-cube.minecraft-water,
.minecraft-cube.minecraft-lava,
.minecraft-cube.minecraft-obsidian,
.minecraft-cube.minecraft-netherrack,
.minecraft-cube.minecraft-nether_brick,
.minecraft-cube.minecraft-meteor,
.minecraft-cube.minecraft-warped_nylium,
.minecraft-cube.minecraft-warped_stem,
.minecraft-cube.minecraft-warped_leaves,
.minecraft-cube.minecraft-glowstone,
.minecraft-cube.minecraft-end_stone,
.minecraft-cube.minecraft-end_stone.minecraft-end-edge,
.minecraft-cube.minecraft-end_portal_frame,
.minecraft-cube.minecraft-end_portal_frame_eye,
.minecraft-cube.minecraft-obsidian_pillar,
.minecraft-cube.minecraft-end_chest,
.minecraft-cube.minecraft-coal_ore,
.minecraft-cube.minecraft-iron_ore,
.minecraft-cube.minecraft-gold_ore,
.minecraft-cube.minecraft-diamond_ore,
.minecraft-cube.minecraft-bedrock_ore,
.minecraft-cube.minecraft-nether_gold_ore,
.minecraft-cube.minecraft-crafting_table,
.minecraft-cube.minecraft-bed {
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
}

.minecraft-cube .cube-top,
.minecraft-cube .cube-left,
.minecraft-cube .cube-right {
  background-size: cover;
  background-position: center;
  image-rendering: pixelated;
}

.minecraft-grass,
.minecraft-cube.minecraft-grass,
.minecraft-cube.minecraft-grass .cube-top,
.minecraft-cube.minecraft-grass .cube-left,
.minecraft-cube.minecraft-grass .cube-right {
  background-image: var(--minecraft-texture-grass);
}

.minecraft-dirt,
.minecraft-cube.minecraft-dirt,
.minecraft-cube.minecraft-dirt .cube-top,
.minecraft-cube.minecraft-dirt .cube-left,
.minecraft-cube.minecraft-dirt .cube-right {
  background-image: var(--minecraft-texture-dirt);
}

.minecraft-stone,
.minecraft-cube.minecraft-stone,
.minecraft-cube.minecraft-stone .cube-top,
.minecraft-cube.minecraft-stone .cube-left,
.minecraft-cube.minecraft-stone .cube-right {
  background-image: var(--minecraft-texture-stone-bricks);
}

.minecraft-wood,
.minecraft-cube.minecraft-wood,
.minecraft-cube.minecraft-wood .cube-top,
.minecraft-cube.minecraft-wood .cube-left,
.minecraft-cube.minecraft-wood .cube-right {
  background-image: var(--minecraft-texture-tuff);
}

.minecraft-leaves,
.minecraft-cube.minecraft-leaves,
.minecraft-cube.minecraft-leaves .cube-top,
.minecraft-cube.minecraft-leaves .cube-left,
.minecraft-cube.minecraft-leaves .cube-right {
  background-image: var(--minecraft-texture-mossy-dirt);
}

.minecraft-cube.minecraft-water,
.minecraft-cube.minecraft-water .cube-top,
.minecraft-cube.minecraft-water .cube-left,
.minecraft-cube.minecraft-water .cube-right {
  background-image: var(--minecraft-texture-blue-ice);
}

.minecraft-cube.minecraft-lava,
.minecraft-cube.minecraft-lava .cube-top,
.minecraft-cube.minecraft-lava .cube-left,
.minecraft-cube.minecraft-lava .cube-right {
  background-image: var(--minecraft-texture-red-sand);
}

.minecraft-cube.minecraft-obsidian,
.minecraft-cube.minecraft-obsidian .cube-top,
.minecraft-cube.minecraft-obsidian .cube-left,
.minecraft-cube.minecraft-obsidian .cube-right,
.minecraft-cube.minecraft-obsidian_pillar,
.minecraft-cube.minecraft-obsidian_pillar .cube-top,
.minecraft-cube.minecraft-obsidian_pillar .cube-left,
.minecraft-cube.minecraft-obsidian_pillar .cube-right {
  background-image: var(--minecraft-texture-obsidian);
}

.minecraft-cube.minecraft-netherrack,
.minecraft-cube.minecraft-netherrack .cube-top,
.minecraft-cube.minecraft-netherrack .cube-left,
.minecraft-cube.minecraft-netherrack .cube-right {
  background-image: var(--minecraft-texture-granite);
}

.minecraft-cube.minecraft-nether_brick,
.minecraft-cube.minecraft-nether_brick .cube-top,
.minecraft-cube.minecraft-nether_brick .cube-left,
.minecraft-cube.minecraft-nether_brick .cube-right {
  background-image: var(--minecraft-texture-deepslate);
}

.minecraft-cube.minecraft-meteor,
.minecraft-cube.minecraft-meteor .cube-top,
.minecraft-cube.minecraft-meteor .cube-left,
.minecraft-cube.minecraft-meteor .cube-right,
.minecraft-cube.minecraft-diorite,
.minecraft-cube.minecraft-diorite .cube-top,
.minecraft-cube.minecraft-diorite .cube-left,
.minecraft-cube.minecraft-diorite .cube-right {
  background-image: var(--minecraft-texture-diorite);
}

.minecraft-cube.minecraft-warped_nylium,
.minecraft-cube.minecraft-warped_nylium .cube-top,
.minecraft-cube.minecraft-warped_nylium .cube-left,
.minecraft-cube.minecraft-warped_nylium .cube-right,
.minecraft-cube.minecraft-sky_grass,
.minecraft-cube.minecraft-sky_grass .cube-top,
.minecraft-cube.minecraft-sky_grass .cube-left,
.minecraft-cube.minecraft-sky_grass .cube-right {
  background-image: var(--minecraft-texture-mossy-dirt);
}

.minecraft-cube.minecraft-warped_stem,
.minecraft-cube.minecraft-warped_stem .cube-top,
.minecraft-cube.minecraft-warped_stem .cube-left,
.minecraft-cube.minecraft-warped_stem .cube-right,
.minecraft-cube.minecraft-warped_leaves,
.minecraft-cube.minecraft-warped_leaves .cube-top,
.minecraft-cube.minecraft-warped_leaves .cube-left,
.minecraft-cube.minecraft-warped_leaves .cube-right {
  background-image: var(--minecraft-texture-packed-ice);
}

.minecraft-cube.minecraft-glowstone,
.minecraft-cube.minecraft-glowstone .cube-top,
.minecraft-cube.minecraft-glowstone .cube-left,
.minecraft-cube.minecraft-glowstone .cube-right {
  background-image: var(--minecraft-texture-sand);
}

.minecraft-cube.minecraft-end_stone,
.minecraft-cube.minecraft-end_stone .cube-top,
.minecraft-cube.minecraft-end_stone .cube-left,
.minecraft-cube.minecraft-end_stone .cube-right {
  background-image: var(--minecraft-texture-snow);
}

.minecraft-cube.minecraft-end_stone.minecraft-end-edge,
.minecraft-cube.minecraft-end_stone.minecraft-end-edge .cube-top,
.minecraft-cube.minecraft-end_stone.minecraft-end-edge .cube-left,
.minecraft-cube.minecraft-end_stone.minecraft-end-edge .cube-right {
  background-image: var(--minecraft-texture-fungus);
}

.minecraft-cube.minecraft-end_portal_frame,
.minecraft-cube.minecraft-end_portal_frame .cube-top,
.minecraft-cube.minecraft-end_portal_frame .cube-left,
.minecraft-cube.minecraft-end_portal_frame .cube-right,
.minecraft-cube.minecraft-end_portal_frame_eye,
.minecraft-cube.minecraft-end_portal_frame_eye .cube-top,
.minecraft-cube.minecraft-end_portal_frame_eye .cube-left,
.minecraft-cube.minecraft-end_portal_frame_eye .cube-right,
.minecraft-cube.minecraft-end_chest,
.minecraft-cube.minecraft-end_chest .cube-top,
.minecraft-cube.minecraft-end_chest .cube-left,
.minecraft-cube.minecraft-end_chest .cube-right,
.minecraft-cube.minecraft-crafting_table,
.minecraft-cube.minecraft-crafting_table .cube-top,
.minecraft-cube.minecraft-crafting_table .cube-left,
.minecraft-cube.minecraft-crafting_table .cube-right {
  background-image: var(--minecraft-texture-stone-bricks);
}

.minecraft-cube.minecraft-coal_ore,
.minecraft-cube.minecraft-coal_ore .cube-top,
.minecraft-cube.minecraft-coal_ore .cube-left,
.minecraft-cube.minecraft-coal_ore .cube-right {
  background-image: var(--minecraft-texture-bedrock);
}

.minecraft-cube.minecraft-iron_ore,
.minecraft-cube.minecraft-iron_ore .cube-top,
.minecraft-cube.minecraft-iron_ore .cube-left,
.minecraft-cube.minecraft-iron_ore .cube-right {
  background-image: var(--minecraft-texture-cobblestone);
}

.minecraft-cube.minecraft-gold_ore,
.minecraft-cube.minecraft-gold_ore .cube-top,
.minecraft-cube.minecraft-gold_ore .cube-left,
.minecraft-cube.minecraft-gold_ore .cube-right,
.minecraft-cube.minecraft-nether_gold_ore,
.minecraft-cube.minecraft-nether_gold_ore .cube-top,
.minecraft-cube.minecraft-nether_gold_ore .cube-left,
.minecraft-cube.minecraft-nether_gold_ore .cube-right {
  background-image: var(--minecraft-texture-gold-ore);
}

.minecraft-cube.minecraft-diamond_ore,
.minecraft-cube.minecraft-diamond_ore .cube-top,
.minecraft-cube.minecraft-diamond_ore .cube-left,
.minecraft-cube.minecraft-diamond_ore .cube-right {
  background-image: var(--minecraft-texture-ice);
}

.minecraft-cube.minecraft-bedrock_ore,
.minecraft-cube.minecraft-bedrock_ore .cube-top,
.minecraft-cube.minecraft-bedrock_ore .cube-left,
.minecraft-cube.minecraft-bedrock_ore .cube-right {
  background-image: var(--minecraft-texture-bedrock);
}

.minecraft-cube.minecraft-bed,
.minecraft-cube.minecraft-bed .cube-top,
.minecraft-cube.minecraft-bed .cube-left,
.minecraft-cube.minecraft-bed .cube-right {
  background-image: var(--minecraft-texture-snow);
}

.diary-room-link {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: calc(max(14px, env(safe-area-inset-top)) + 96px);
  z-index: 101;
  display: inline-grid;
  place-items: center;
  min-height: 35px;
  border: 0;
  border-radius: 999px;
  background: rgba(185, 243, 223, 0.95);
  color: #174d3f;
  padding: 0 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.reset-save-toggle {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: calc(max(14px, env(safe-area-inset-top)) + 144px);
  z-index: 101;
  border: 0;
  border-radius: 999px;
  background: rgba(246, 86, 86, 0.94);
  color: #ffffff;
  padding: 10px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
}

.reset-save-toggle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

.minecraft-toggle {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 6;
  border: 3px solid #151515;
  border-radius: 0;
  background:
    linear-gradient(180deg, #75c94f 0 48%, #4f9c33 48% 100%);
  color: #ffffff;
  padding: 5px 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    3px 3px 0 rgba(0, 0, 0, 0.3);
  text-shadow: 1px 1px 0 #113c0c;
}

.minecraft-toggle.active {
  background:
    linear-gradient(180deg, #89d8ff 0 48%, #3577d3 48% 100%);
}

.minecraft-panel {
  position: fixed;
  inset: 0;
  width: auto;
  z-index: 180;
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  gap: 5px;
  padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 100%),
    linear-gradient(135deg, #6f6f6f 0 25%, #5a5a5a 25% 50%, #777777 50% 75%, #4d4d4d 75% 100%);
  background-size: 32px 32px, 32px 32px, 64px 64px;
  color: #fff7e0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  font-family: "Courier New", "Lucida Console", monospace;
  letter-spacing: 0;
  image-rendering: pixelated;
}

.minecraft-panel[hidden] {
  display: none;
}

.computer-settings-toggle{position:fixed;right:max(14px,env(safe-area-inset-right));top:calc(max(14px,env(safe-area-inset-top)) + 96px);z-index:104;border:0;border-radius:999px;background:#eef4ff;color:#1c355d;padding:10px 14px;font:inherit;font-size:12px;font-weight:900;cursor:pointer;box-shadow:0 10px 22px #0003}.computer-settings-toggle span{font-size:16px;vertical-align:-1px}.computer-settings-panel{position:fixed;right:max(14px,env(safe-area-inset-right));top:max(14px,env(safe-area-inset-top));z-index:220;width:min(390px,calc(100vw - 28px));max-height:calc(100vh - 28px);overflow:auto;box-sizing:border-box;padding:14px;border:3px solid var(--computer-version-accent,#6ec6ff);border-radius:18px;background:#101a2af2;color:#fff;box-shadow:0 18px 60px #0008;font:14px/1.4 system-ui}.computer-settings-panel[hidden]{display:none!important}.computer-settings-panel header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;font-size:19px}.computer-settings-panel header button{font-size:23px}.computer-settings-panel button,.computer-settings-panel select,.computer-settings-panel input{font:inherit}.computer-settings-panel button,.computer-settings-panel select{border:1px solid #8db4d9;border-radius:8px;background:#223b5a;color:#fff;padding:8px 10px}.computer-settings-panel>label{display:grid;gap:6px;margin:10px 0}.computer-settings-check{grid-template-columns:auto 1fr!important;align-items:center}.computer-version-name{display:block;color:#ffed9a;margin:8px 0}.computer-version-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.computer-version-preview figure{margin:0;padding:5px;background:#dff7ff;border-radius:8px;color:#14263f;text-align:center}.computer-version-preview img{display:block;width:100%;height:86px;object-fit:contain;image-rendering:auto}.computer-version-preview figcaption{font-size:11px}.computer-control-list{display:grid;gap:6px}.computer-control-list>div{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px;background:#ffffff12;border-radius:8px}.computer-control-list button{font-size:12px}.settings-hidden-control{display:none!important}body[data-computer-version="pyramixed"] .computer-shell{filter:saturate(1.12) contrast(1.04)}body[data-computer-version="pyramixed"] .screen-bezel{box-shadow:none}body[data-computer-version="pyramixed"] #screen-status::before{content:"Pyramixed · "}body[data-computer-version="pyramixed"] .propeller-hat{filter:saturate(1.3) brightness(1.04)}@media(max-width:600px){.computer-settings-panel{inset:8px;width:auto;max-height:calc(100vh - 16px)}.computer-version-preview img{height:68px}}

.minecraft-panel.minecraft-platformer-fullscreen {
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  box-sizing: border-box;
}

.minecraft-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding: 4px;
  border: 3px solid #1f1711;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 48%),
    #3a2a20;
  color: #f8f0d8;
  font-size: 11px;
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.minecraft-tools {
  display: none;
  align-items: center;
  gap: 3px;
  min-width: 0;
  padding: 5px;
  border: 3px solid #1f1711;
  background: rgba(37, 32, 24, 0.92);
  overflow-x: auto;
}

.minecraft-tool,
.minecraft-clear,
.minecraft-close {
  flex: 0 0 auto;
  border: 2px solid #1a120d;
  border-radius: 0;
  background: #7d6a54;
  color: #ffffff;
  width: 30px;
  height: 30px;
  padding: 0;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.minecraft-tool {
  display: grid;
  place-items: center;
  line-height: 1;
  color: transparent;
  font-size: 0;
  position: relative;
}

.minecraft-tool[hidden] {
  display: none;
}

.minecraft-tool::before {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  border: 2px solid #1a120d;
  background: #777777;
  box-shadow: inset 3px 3px 0 rgba(255, 255, 255, 0.2), inset -3px -3px 0 rgba(0, 0, 0, 0.25);
}

.minecraft-tool[data-minecraft-tool="torch"]::before,
.minecraft-tool[data-minecraft-tool="diamond_sword"]::before,
.minecraft-tool[data-minecraft-tool="pickaxe"]::before {
  width: 28px;
  height: 28px;
  border: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  box-shadow: none;
  image-rendering: pixelated;
}

.minecraft-tool[data-minecraft-tool="grass"]::before {
  background: linear-gradient(180deg, #35a236 0 36%, #7a4c26 36% 100%);
}

.minecraft-tool[data-minecraft-tool="dirt"]::before {
  background: #7a4c26;
}

.minecraft-tool[data-minecraft-tool="stone"]::before {
  background: #737373;
}

.minecraft-tool[data-minecraft-tool="wood"]::before {
  background: repeating-linear-gradient(90deg, #8b5425 0 5px, #6f3f1d 5px 9px);
}

.minecraft-tool[data-minecraft-tool="leaves"]::before {
  background: #2f8d38;
}

.minecraft-tool[data-minecraft-tool="water"]::before,
.minecraft-tool[data-minecraft-tool="water_bucket"]::before {
  background: #2387d8;
}

.minecraft-tool[data-minecraft-tool="bed"]::before {
  background: linear-gradient(180deg, #f8f3dc 0 36%, #db3f46 36% 100%);
}

.minecraft-tool[data-minecraft-tool="crafting_table"]::before {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 4px, transparent 4px 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 4px, transparent 4px 100%),
    #9a642f;
  background-size: 9px 9px;
}

.minecraft-tool[data-minecraft-tool="torch"]::before {
  background-image: var(--minecraft-tool-torch);
}

.minecraft-tool[data-minecraft-tool="bucket"]::before,
.minecraft-tool[data-minecraft-tool="lava_bucket"]::before {
  background: linear-gradient(180deg, #c9ced4 0 72%, #ff7b22 72% 100%);
}

.minecraft-tool[data-minecraft-tool="obsidian"]::before {
  background:
    radial-gradient(circle at 35% 35%, #242424 0 10%, transparent 11%),
    #111111;
}

.minecraft-tool[data-minecraft-tool="meteor"]::before {
  background:
    radial-gradient(circle at 50% 50%, #fff16a 0 18%, transparent 19%),
    #6a4c2b;
  box-shadow: 0 0 8px #ffe45a;
}

.minecraft-tool[data-minecraft-tool="ender_pearl"]::before,
.minecraft-tool[data-minecraft-tool="ender_eye"]::before {
  background: radial-gradient(circle at 50% 50%, #d9ffe6 0 20%, #20b55b 21% 48%, #0b2f28 49% 100%);
}

.minecraft-tool[data-minecraft-tool="diamond_sword"]::before {
  background-image: var(--minecraft-tool-diamond-sword);
}

.minecraft-tool[data-minecraft-tool="pickaxe"]::before {
  background-image: var(--minecraft-tool-iron-pickaxe);
}

.minecraft-tool span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #1a120d;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.minecraft-extra-item {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 2px solid #1a120d;
  border-radius: 0;
  background: #7d6a54;
  color: #ffffff;
  font: 900 11px "Courier New", monospace;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22);
}

.minecraft-extra-item strong {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 2px solid #1a120d;
  font-size: 10px;
}

.minecraft-extra-item > span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #1a120d;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 11px;
  line-height: 1;
}

.minecraft-extra-seeds strong {
  background: #425f22;
}

.minecraft-extra-wheat strong {
  background: #d9a53d;
  color: #1f1711;
}

.minecraft-extra-wool strong {
  background: #f2f2f2;
  color: #1f1711;
}

.minecraft-tool.active {
  background: #3c8f36;
  color: #f7ffd8;
}

.minecraft-tool:disabled {
  cursor: default;
  opacity: 0.46;
  filter: grayscale(0.45);
}

.minecraft-clear {
  background: #d69a3a;
  color: #231500;
  width: 38px;
}

.minecraft-close {
  width: 34px;
  height: 34px;
  padding: 0;
  background: #c23d32;
  font-size: 20px;
  line-height: 1;
}

.minecraft-status {
  min-height: 24px;
  padding: 4px 6px;
  border: 3px solid #1f1711;
  background: #252018;
  color: #d7ffe0;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.48);
}

.minecraft-controls {
  display: grid;
  grid-template-columns: minmax(108px, 148px) minmax(52px, 0.5fr) minmax(64px, 0.65fr) minmax(64px, 0.65fr);
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 3px solid #1f1711;
  background: rgba(37, 32, 24, 0.92);
}

.minecraft-move,
.minecraft-jump-up,
.minecraft-dig-down,
.minecraft-view {
  min-height: 28px;
  border: 2px solid #1a120d;
  border-radius: 0;
  background: #5f83d8;
  color: #ffffff;
  font: inherit;
  font-size: 9px;
  font-weight: 900;
  cursor: pointer;
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.18),
    inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.55);
}

.minecraft-joystick {
  position: relative;
  width: min(34vw, 142px);
  aspect-ratio: 1;
  border: 4px solid #1a120d;
  background:
    linear-gradient(90deg, transparent calc(50% - 2px), rgba(255, 255, 255, 0.26) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    linear-gradient(180deg, transparent calc(50% - 2px), rgba(255, 255, 255, 0.26) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)),
    #4c4338;
  touch-action: none;
  cursor: pointer;
  box-shadow:
    inset 5px 5px 0 rgba(255, 255, 255, 0.12),
    inset -6px -6px 0 rgba(0, 0, 0, 0.28);
}

.minecraft-joystick-handle {
  --joy-x: 0px;
  --joy-y: 0px;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  aspect-ratio: 1;
  border: 3px solid #130d09;
  background: #f0d35d;
  transform: translate(calc(-50% + var(--joy-x)), calc(-50% + var(--joy-y)));
  transition: transform 80ms linear;
  pointer-events: none;
  box-shadow:
    inset 4px 4px 0 rgba(255, 255, 255, 0.26),
    inset -5px -5px 0 rgba(0, 0, 0, 0.22);
}

.minecraft-dig-down {
  background: #70503a;
}

.minecraft-jump-up {
  background: #8f65d8;
}

.minecraft-side-action-jump {
  position: relative;
  width: clamp(48px, 7vw, 64px);
  min-width: clamp(48px, 7vw, 64px);
  aspect-ratio: 1;
  justify-self: center;
  border-width: 3px;
  image-rendering: pixelated;
}

.minecraft-side-action-jump::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 58%;
  height: 58%;
  translate: -50% -50%;
  background: #fff;
  clip-path: polygon(50% 0, 100% 48%, 70% 48%, 70% 100%, 30% 100%, 30% 48%, 0 48%);
  filter: drop-shadow(2px 2px 0 #3d245f);
}

.minecraft-view {
  background: #3c8f76;
}

.minecraft-world {
  position: relative;
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  grid-template-rows: repeat(9, minmax(0, 1fr));
  gap: 0;
  min-height: 0;
  height: min(68vh, calc((100vw - 28px) * 0.58));
  aspect-ratio: 14 / 9;
  border: 4px solid #1f1711;
  background:
    linear-gradient(90deg, rgba(31, 23, 17, 0.18) 1px, transparent 1px),
    linear-gradient(180deg, rgba(31, 23, 17, 0.18) 1px, transparent 1px),
    #35a236;
  background-size: calc(100% / 14) calc(100% / 9);
  overflow: hidden;
  perspective: none;
  transform-style: flat;
}

.minecraft-map {
  position: absolute;
  right: 10px;
  top: 86px;
  z-index: 80;
  display: grid;
  grid-template-columns: repeat(var(--map-size, 19), 6px);
  grid-template-rows: repeat(var(--map-size, 19), 6px);
  gap: 1px;
  padding: 5px;
  border: 3px solid #1f1711;
  background: #241d16;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.32);
}

.minecraft-map::after {
  content: attr(data-coords);
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -24px;
  display: grid;
  place-items: center;
  height: 20px;
  border: 3px solid #1f1711;
  background: #f7e28a;
  color: #1f1711;
  font: 900 10px "Courier New", monospace;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.28);
}

.minecraft-map-cell {
  width: 6px;
  height: 6px;
  background: #48a848;
}

.minecraft-map-cell.nether {
  background: #8b2e27;
}

.minecraft-map-cell.nether.warped {
  background: #14876d;
}

.minecraft-map-cell.nether.bastion {
  background: #4c1724;
}

.minecraft-map-cell.nether.lava {
  background: #ff7b22;
}

.minecraft-map-cell.end {
  background: #d8d08a;
}

.minecraft-map-cell.sky {
  background: #75d9c9;
}

.minecraft-map-cell.sky-bridge {
  background: #54b8af;
}

.minecraft-map-cell.sky-portal {
  background: #0b4cff;
  box-shadow: 0 0 7px #9de8ff;
}

.minecraft-map-cell.end-portal-map {
  background: #020202;
  border: 1px solid #80ff9f;
  box-shadow: 0 0 7px #80ff9f;
}

.minecraft-map-cell.river {
  background: #2387d8;
}

.minecraft-map-cell.village {
  background: #c89145;
}

.minecraft-map-cell.portal {
  background: #9a2bff;
  box-shadow: 0 0 5px #e8b2ff;
}

.minecraft-map-cell.return-portal {
  background: #050505;
  border: 1px solid #d6a8ff;
  box-shadow: 0 0 7px #9a2bff;
}

.minecraft-map-cell.overworld-portal {
  background: #050505;
  box-shadow: 0 0 5px #9a2bff;
}

.minecraft-map-cell.player {
  background: #ff1744;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px #1f1711, 0 0 8px #ffffff;
}

.minecraft-world.guardian-depth {
  background: #152039;
}

.minecraft-world.surface-night {
  background: #17233f;
}

.minecraft-world.underground-dark {
  background: #090b12;
}

.minecraft-world.underground-dark::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.58);
  pointer-events: none;
}

.minecraft-world.underground-lit {
  background: #222018;
}

.minecraft-world.nether-world {
  background:
    linear-gradient(90deg, rgba(255, 210, 120, 0.12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 210, 120, 0.12) 1px, transparent 1px),
    #6a1f19;
}

.minecraft-world.end-world {
  background:
    linear-gradient(90deg, rgba(130, 96, 180, 0.16) 1px, transparent 1px),
    linear-gradient(180deg, rgba(130, 96, 180, 0.16) 1px, transparent 1px),
    #030208;
}

.minecraft-world.sky-world {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(180deg, rgba(80, 190, 210, 0.18) 1px, transparent 1px),
    #a9ecff;
}

.minecraft-world.minecraft-jump .minecraft-player {
  animation: minecraft-player-jump 260ms ease-out;
}

.minecraft-cube {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(31, 23, 17, 0.58);
  background: #35a236;
  transform: none;
  cursor: crosshair;
  transform-style: flat;
  image-rendering: pixelated;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.16),
    inset 0 -5px 0 rgba(0, 0, 0, 0.24);
}

.minecraft-cube.minecraft-air {
  opacity: 1;
  background: #2f5e8f;
}

.minecraft-cube.minecraft-air:hover {
  opacity: 1;
}

.minecraft-cube.minecraft-empty-block {
  opacity: 0.82;
}

.minecraft-cube.minecraft-empty-block::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 3px solid rgba(255, 255, 255, 0.5);
  z-index: 3;
  pointer-events: none;
}

.minecraft-cube.minecraft-empty-block.minecraft-sky-air {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 46%),
    #8de7ff;
}

.minecraft-cube.minecraft-empty-block.minecraft-sky-air .cube-top,
.minecraft-cube.minecraft-empty-block.minecraft-sky-air .cube-left,
.minecraft-cube.minecraft-empty-block.minecraft-sky-air .cube-right {
  background: #8de7ff;
  opacity: 0.58;
}

.minecraft-cube.minecraft-empty-block.minecraft-sky-air::after {
  border-color: rgba(255, 255, 255, 0.24);
}

.minecraft-sky-block {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 42%),
    #79cfff;
  box-shadow:
    inset 5px 5px 0 rgba(255, 255, 255, 0.22),
    inset -6px -6px 0 rgba(0, 66, 120, 0.18);
}

.surface-night .minecraft-sky-block {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 42%),
    #1b2f5c;
}

.minecraft-sun,
.minecraft-moon {
  position: absolute;
  left: 10%;
  top: 9%;
  z-index: 18;
  display: grid;
  place-items: center;
  width: min(7vw, 64px);
  height: min(7vw, 64px);
  border: 4px solid #1f1711;
  color: #1f1711;
  font-size: 18px;
  font-weight: 900;
  box-shadow:
    inset 5px 5px 0 rgba(255, 255, 255, 0.22),
    inset -6px -6px 0 rgba(0, 0, 0, 0.18);
}

.minecraft-sun {
  background: #ffd84d;
  animation: minecraft-sky-cross 120s linear infinite;
}

.minecraft-moon {
  left: 10%;
  right: auto;
  background: #dce6ff;
  animation: minecraft-sky-cross 120s linear infinite;
}

.minecraft-clouds {
  position: absolute;
  inset: 0;
  z-index: 17;
  pointer-events: none;
  overflow: hidden;
}

.minecraft-cloud {
  position: absolute;
  left: calc(-28% + var(--cloud-index) * 34%);
  top: 10%;
  width: min(24vw, 190px);
  height: min(5vw, 42px);
  background:
    linear-gradient(90deg, transparent 0 8%, #ffffff 8% 28%, transparent 28% 34%, #ffffff 34% 72%, transparent 72% 78%, #ffffff 78% 100%);
  filter: drop-shadow(4px 4px 0 rgba(0, 0, 0, 0.18));
  animation: minecraft-cloud-drift 95s linear infinite;
  animation-delay: calc(var(--cloud-index) * -18s);
}

.minecraft-cloud:nth-child(2),
.minecraft-cloud:nth-child(4) {
  top: 22%;
}

.minecraft-cloud::before,
.minecraft-cloud::after {
  content: "";
  position: absolute;
  top: -48%;
  width: 28%;
  height: 100%;
  background: #ffffff;
}

.minecraft-cloud::before {
  left: 28%;
}

.minecraft-cloud::after {
  right: 18%;
}

.minecraft-zombie {
  --zx: calc(50% + var(--zombie-x) * 8%);
  --zz: calc(51% + var(--zombie-z) * 8%);
  position: absolute;
  left: var(--zx);
  top: var(--zz);
  z-index: 24;
  display: grid;
  place-items: center;
  width: min(5vw, 44px);
  height: min(6vw, 56px);
  border: 4px solid #111111;
  background:
    linear-gradient(180deg, #5ca85d 0 42%, #2451a6 42% 100%);
  color: transparent;
  font: inherit;
  font-size: 0;
  font-weight: 900;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.minecraft-zombie::before {
  content: "";
  position: absolute;
  left: 18%;
  top: -34%;
  width: 64%;
  height: 44%;
  border: 4px solid #111111;
  background:
    radial-gradient(circle at 33% 45%, #111111 0 10%, transparent 11%),
    radial-gradient(circle at 67% 45%, #111111 0 10%, transparent 11%),
    linear-gradient(180deg, transparent 0 68%, #223116 68% 78%, transparent 78%),
    #6ac06a;
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.16);
}

.minecraft-zombie::after {
  content: "";
  position: absolute;
  left: -34%;
  top: 20%;
  z-index: -1;
  width: 168%;
  height: 18%;
  border: 4px solid #111111;
  background: #5ca85d;
  box-shadow: inset 4px 0 0 rgba(255, 255, 255, 0.14);
}

.minecraft-skeleton {
  --sx: calc(50% + var(--skeleton-x) * 7%);
  --sz: calc(51% + var(--skeleton-z) * 7%);
  position: absolute;
  left: var(--sx);
  top: var(--sz);
  z-index: 25;
  display: grid;
  place-items: center;
  width: min(5vw, 48px);
  height: min(5vw, 48px);
  border: 4px solid #111111;
  background:
    linear-gradient(90deg, transparent 0 42%, #5b3316 42% 56%, transparent 56% 100%),
    #f2f2e8;
  color: #111111;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.35);
}

.minecraft-xp-orb {
  position: absolute;
  left: calc(44% + var(--orb-index) * 22px);
  bottom: 9%;
  z-index: 26;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border: 3px solid #21420f;
  background: #8cff3e;
  color: #21420f;
  font-size: 7px;
  font-weight: 900;
  box-shadow: 0 0 14px rgba(140, 255, 62, 0.75);
}

.minecraft-xp-bar {
  position: absolute;
  left: 50%;
  bottom: 13%;
  z-index: 42;
  width: min(180px, 34%);
  height: 18px;
  transform: translateX(-50%);
  border: 3px solid #050505;
  background: #050505;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.beatbox-runners {
  position: fixed;
  inset: auto 0 18vh;
  height: 150px;
  z-index: 2;
  pointer-events: none;
}

.lawn-homes {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.lawn-home {
  position: absolute;
  left: var(--home-x);
  bottom: 3px;
  width: clamp(44px, 5vw, 64px);
  height: clamp(38px, 4.5vw, 54px);
  translate: -50% 0;
  border: 3px solid #713f21;
  border-radius: 4px 4px 2px 2px;
  background: #f0bb63;
  box-shadow: 0 5px 0 rgba(65,85,31,.28);
  transition: filter 600ms ease, background 600ms ease;
}

.lawn-home-roof {
  position: absolute;
  left: -8px;
  right: -8px;
  top: -21px;
  height: 24px;
  background: #df5b41;
  clip-path: polygon(50% 0,100% 100%,0 100%);
}

.lawn-home-window {
  position: absolute;
  left: 8px;
  top: 12px;
  width: 13px;
  height: 14px;
  border: 2px solid #724927;
  background: #aee4ef;
  transition: background 500ms ease, box-shadow 500ms ease;
}

.lawn-home-name {
  position: absolute;
  left: 50%;
  top: 100%;
  translate: -50% 4px;
  width: max-content;
  max-width: 78px;
  overflow: hidden;
  color: #2b311f;
  font: 800 8px/1 system-ui,sans-serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lawn-homes.night .lawn-home { background:#71567a; filter:brightness(.8); }
.lawn-homes.night .lawn-home-window { background:#ffe66d; box-shadow:0 0 12px #ffe66d; }

.home-song-button {
  position: fixed;
  left: 50%;
  top: 92px;
  bottom: auto;
  translate: -50% 0;
  z-index: 9;
  pointer-events: auto;
  border: 3px solid #26342d;
  border-radius: 999px;
  padding: 7px 14px;
  color: #172219;
  background: #fff7b2;
  box-shadow: 0 5px 0 #54743d;
  font: 800 12px/1 system-ui, sans-serif;
  cursor: pointer;
}

.home-song-button:active {
  translate: -50% 4px;
  box-shadow: 0 1px 0 #54743d;
}

.beat-runner {
  --runner-x: 4vw;
  --runner-delay: 0s;
  position: absolute;
  left: var(--runner-x);
  bottom: 0;
  display: block;
  width: clamp(58px, 7vw, 92px);
  height: clamp(82px, 11vw, 136px);
  background-image: var(--runner-sprite);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 8px 3px rgba(24, 63, 19, 0.28));
  transform-origin: 50% 100%;
  animation: home-runner-idle 1.15s ease-in-out infinite alternate;
  animation-delay: var(--runner-delay);
  transition: left 900ms ease, bottom 500ms ease, filter 220ms ease;
  z-index: 2;
  isolation: isolate;
}

.beat-runner > :not(.beat-runner-bubble) {
  display: none;
}

.beat-runner > .home-runner-hand {
  position: absolute;
  bottom: 20%;
  z-index: -1;
  display: block !important;
  width: clamp(12px, 1.5vw, 19px);
  aspect-ratio: 1;
  border: 2px solid #172219;
  border-radius: 50%;
  background: var(--runner-hand-color, #d7dadd);
  transform-origin: 50% 120%;
}

.home-runner-hand-left { left: -6%; }
.home-runner-hand-right { right: -6%; }

.beat-runner.home-walking .home-runner-hand-left,
.beat-runner.home-chasing-a .home-runner-hand-left,
.beat-runner.home-chasing-b .home-runner-hand-left,
.beat-runner.home-running-out .home-runner-hand-left,
.beat-runner.home-running-in .home-runner-hand-left {
  animation: home-hand-swing-left 280ms ease-in-out infinite alternate;
}

.beat-runner.home-walking .home-runner-hand-right,
.beat-runner.home-chasing-a .home-runner-hand-right,
.beat-runner.home-chasing-b .home-runner-hand-right,
.beat-runner.home-running-out .home-runner-hand-right,
.beat-runner.home-running-in .home-runner-hand-right {
  animation: home-hand-swing-right 280ms ease-in-out infinite alternate;
}

.beat-runner-bubble {
  position: absolute;
  left: 50%;
  bottom: 96%;
  min-width: max-content;
  max-width: 110px;
  translate: -50% 0;
  padding: 5px 8px;
  border: 2px solid #23332b;
  border-radius: 12px 12px 12px 3px;
  background: rgba(255, 255, 255, 0.95);
  color: #172219;
  font: 800 11px/1.2 system-ui, sans-serif;
  text-align: center;
  opacity: 0;
  transform: translateY(7px) scale(0.85);
  transition: opacity 160ms ease, transform 160ms ease;
}

.beat-runner.home-talking .beat-runner-bubble,
.beat-runner.home-help-needed .beat-runner-bubble,
.beat-runner.home-helped .beat-runner-bubble,
.beat-runner.home-sleeping .beat-runner-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.beat-runner.home-playing {
  animation: home-runner-play 420ms cubic-bezier(.2,.8,.3,1) infinite alternate;
}

.beat-runner.home-turning {
  animation: home-runner-turn 720ms ease-in-out;
}

.beat-runner.home-help-needed {
  animation: home-runner-worry 180ms ease-in-out infinite alternate;
  filter: drop-shadow(0 0 7px #ffe55c);
}

.beat-runner.home-helped {
  animation: home-runner-cheer 420ms ease-in-out 3;
}

.beat-runner.home-walking {
  animation: home-walk-bob 300ms ease-in-out infinite alternate;
}

.beat-runner.home-returning {
  animation: home-walk-bob 260ms ease-in-out infinite alternate;
}

.beat-runner.home-sleeping {
  bottom: 16px;
  opacity: .78;
  transform: scale(.58) translateY(12px);
  filter: brightness(.55) drop-shadow(0 3px 2px rgba(0,0,0,.4));
  animation: home-sleep-breathe 2.4s ease-in-out infinite;
}

.beat-runner.home-inside-house {
  opacity: 0;
  transform: scale(.18) translateY(20px);
  pointer-events: none;
  animation: none;
  transition: none;
}

.beat-runner.home-collision {
  animation: home-collision 250ms ease-in-out 4 alternate;
  filter: drop-shadow(0 0 9px #ffe76a);
}

.beat-runner.home-chasing-a {
  z-index: 3;
  animation: home-chase-a 1.36s cubic-bezier(.35,.05,.65,1) forwards;
}

.beat-runner.home-chasing-b {
  z-index: 4;
  animation: home-chase-b 1.36s cubic-bezier(.35,.05,.65,1) forwards;
}

.beat-runner.home-concert {
  z-index: 3;
  bottom: var(--concert-bottom, 0px);
  animation: home-concert 430ms cubic-bezier(.22,.72,.28,1) infinite;
}

.beat-runner.home-original-performing {
  background-image: none !important;
}

.beat-runner.home-original-performing > .home-runner-hand {
  display: none !important;
}

.beat-runner > .home-concert-pose {
  position: absolute;
  inset: 0;
  display: block !important;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  pointer-events: none;
  filter: drop-shadow(0 7px 3px rgba(24, 63, 19, .25));
}

.beat-runner.home-performer-clukr {
  left: 40vw !important;
  bottom: 408px !important;
  z-index: 7;
  animation: home-clukr-flight 1.8s ease-in-out infinite;
}

.home-clukr-disc {
  position: absolute;
  display: block !important;
  z-index: 3;
  width: 46%;
  height: 13%;
  left: 27%;
  top: 3%;
  border: 4px solid #463f35;
  border-radius: 50%;
  background: radial-gradient(ellipse, #fff9c8 0 11%, #d9b84b 13% 48%, #8c742c 52% 64%, #edd66b 67%);
  transform-origin: 50% 50%;
  animation: home-clukr-disc-spin 520ms linear infinite;
}

.beat-runner.home-performer-funbot {
  left: 72vw !important;
  bottom: 176px !important;
  z-index: 6;
  animation: home-funbot-flight 1.05s ease-in-out infinite;
}

.beat-runner.home-performer-garnold {
  left: 24vw !important;
  bottom: 170px !important;
  z-index: 6;
  animation: home-garnold-show 1.35s ease-in-out infinite alternate;
}

.beat-runner.home-performer-funbot::before {
  content: "";
  position: absolute;
  left: 34%;
  bottom: -24px;
  width: 32%;
  height: 34px;
  border-radius: 50% 50% 60% 60%;
  background: linear-gradient(#fff7a8 0 18%, #ff9d32 35%, #ff3d46 70%, transparent 72%);
  filter: drop-shadow(0 0 8px #ffcf4f);
  animation: home-rocket-fire 180ms ease-in-out infinite alternate;
}

.home-performance-hand {
  position: absolute;
  display: block !important;
  z-index: 2;
  bottom: 23%;
  width: 18px;
  height: 18px;
  border: 2px solid #172219;
  border-radius: 50%;
  background: var(--runner-hand-color, #d7dadd);
  transform-origin: 50% 120%;
}
.home-performance-hand-left { left: -5%; animation: home-show-hand-left 720ms ease-in-out infinite alternate; }
.home-performance-hand-right { right: -5%; animation: home-show-hand-right 720ms ease-in-out infinite alternate; }
.home-hand-confetti {
  position: absolute;
  display: block !important;
  left: 50%;
  top: 70%;
  width: 7px;
  height: 7px;
  color: #baffff;
  background: currentColor;
  box-shadow: 10px 13px #ff76e4, -8px 25px #fff06a, 6px 39px #72f7ff, -13px 50px #9aff86;
  animation: home-confetti-fall 1.25s linear infinite;
}
.home-hand-confetti-right { animation-delay: -.62s; }

.home-concert-stage-crew {
  --crew-y: 0px;
  position: absolute;
  z-index: 12;
  bottom: 8px;
  width: clamp(104px, 14vw, 170px);
  height: 126px;
  display: block;
  animation-delay: var(--crew-delay);
  animation-fill-mode: both;
}
.home-stage-floor { --crew-y: 0px; }
.home-stage-sky { --crew-y: 120px; bottom: 118px; }
.home-stage-star { --crew-y: 56px; bottom: 62px; }
.home-stage-prepare { animation: home-stage-carry-in 2.15s ease-in-out both; }
.home-stage-pack { animation: home-stage-carry-out 2s ease-in-out both; }
.home-stage-helper { position:absolute;left:9px;bottom:0;width:62px;height:92px;background:url('./assets/sprunki-views/front/oren.png') center bottom/contain no-repeat; }
.home-concert-stage-crew:nth-of-type(even) .home-stage-helper { background-image:url('./assets/sprunki-views/front/pinki.png'); }
.home-stage-prop { position:absolute;right:2px;bottom:14px;width:62px;height:48px;border:3px solid #26304a;border-radius:8px;background:conic-gradient(#ff5b84,#ffd85a,#65e7ff,#8d72ff,#ff5b84); }
.home-stage-sky .home-stage-prop { border-radius:50%;background:linear-gradient(#6ed8ff 0 62%,#fff 63% 69%,#8cd863 70%); }
.home-stage-star .home-stage-prop { clip-path:polygon(50% 0,61% 36%,100% 38%,69% 60%,80% 100%,50% 76%,20% 100%,31% 60%,0 38%,39% 36%);background:#fff06a;border:0; }
.home-concert-stage-crew b { position:absolute;left:0;right:0;bottom:-17px;text-align:center;color:#fff;font:800 12px/1.1 sans-serif;text-shadow:0 2px 3px #102038; }

body.home-night-concert-active .beatbox-runners::before,
body.home-concert-preparing .beatbox-runners::before,
body.home-concert-packing .beatbox-runners::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -3vw;
  right: -3vw;
  bottom: -34px;
  height: 112px;
  border: 4px solid rgba(255,255,255,.55);
  border-radius: 48% 48% 10px 10px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255,255,255,.32) 50% 52%, transparent 53%) 0 0 / 54px 54px,
    linear-gradient(0deg, transparent 49%, rgba(255,255,255,.32) 50% 52%, transparent 53%) 0 0 / 54px 54px,
    conic-gradient(from 45deg, #ff4e9c, #8b5dff, #35d9ff, #ffe34d, #ff704d, #ff4e9c);
  box-shadow: 0 0 24px #ffea6b, inset 0 0 24px rgba(255,255,255,.55);
  transform: perspective(320px) rotateX(56deg);
  transform-origin: 50% 100%;
  animation: home-night-floor 720ms steps(2,end) infinite;
}
body.home-concert-preparing .beatbox-runners::before { animation: home-floor-arrive 2.1s ease-out both; }
body.home-concert-packing .beatbox-runners::before { animation: home-floor-leave 2s ease-in both; }

body.home-night-concert-active .beatbox-runners::after {
  content: "♪  ♫  ♪  ♫  ♪";
  position: absolute;
  z-index: 1;
  inset: -60px 8vw auto;
  color: #fff7a8;
  font: 900 clamp(18px,3vw,34px)/1 monospace;
  text-align: center;
  letter-spacing: clamp(16px,4vw,56px);
  text-shadow: 0 0 10px #ff5fb7, 0 0 18px #6bdcff;
  animation: home-night-notes 1.35s ease-in-out infinite alternate;
}

body.home-night-concert-active .computer-shell { filter: none; }

.home-small-computer-singer {
  width: clamp(112px, 12vw, 164px);
  height: clamp(158px, 19vw, 224px);
  bottom: clamp(2px, 1.5vh, 14px) !important;
  z-index: 8 !important;
  filter: drop-shadow(0 0 10px rgba(120,225,255,.72)) drop-shadow(0 8px 3px rgba(24,63,19,.3));
}

.sky-sun.home-concert-singer {
  left: clamp(150px, 18vw, 260px) !important;
  top: clamp(34px, 7vh, 78px) !important;
  translate: 0 0 !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 8;
  animation: home-sun-concert 820ms ease-in-out infinite alternate !important;
  filter: drop-shadow(0 0 24px #fff7a8) brightness(1.08);
}

body.night-mode .sky-sun.home-concert-singer {
  left: 50%;
  top: 14%;
  translate: -50% 0;
  opacity: 1 !important;
  scale: .78;
  animation: home-sun-night-concert 1.2s ease-in-out infinite alternate !important;
  filter: drop-shadow(0 0 34px #ffe66d) drop-shadow(0 0 64px #ffb92f) brightness(1.18);
}

@keyframes home-sun-concert {
  from { transform: translateY(0) rotate(-4deg) scale(1); }
  to { transform: translateY(-12px) rotate(4deg) scale(1.08); }
}

@keyframes home-sun-night-concert {
  from { transform: translateY(4px) rotate(-5deg) scale(1); }
  to { transform: translateY(36px) rotate(5deg) scale(1.1); }
}

.rain-friend-umbrellas { display:none; position:fixed; inset:0; width:100vw; height:100vh; z-index:220; pointer-events:none; }
body.weather-rain:not(.home-mode) .rain-friend-umbrellas { display:block; }
.rain-friend-umbrella { position:absolute; left:calc(50% - 41px); top:clamp(82px,12vh,112px); width:82px; height:116px; animation:rain-friend-help 1.8s ease-in-out infinite alternate; }
.rain-friend-umbrella img { position:absolute; z-index:2; inset:30px 0 0; width:100%; height:86px; object-fit:contain; }
.rain-friend-canopy { position:absolute; z-index:3; left:-23px; top:-28px; width:128px; height:70px; border:5px solid #28313c; border-radius:70px 70px 12px 12px; background:repeating-conic-gradient(from 270deg at 50% 100%,#ff6b7c 0 18deg,#ffe36e 18deg 36deg,#61dbe8 36deg 54deg,#8a75e9 54deg 72deg); }
.rain-friend-canopy::after { content:""; position:absolute; left:61px; top:61px; width:5px; height:93px; border-radius:4px; background:#343a43; }
.rain-friend-hand { position:absolute; z-index:5; top:82px; width:15px; height:15px; border:3px solid #28313c; border-radius:50%; background:var(--rain-hand,#ffd84d); box-shadow:inset -2px -2px #0002; animation:rain-friend-grip 720ms ease-in-out infinite alternate; }
.rain-friend-hand-left { left:29px; transform:rotate(16deg); }
.rain-friend-hand-right { left:42px; top:91px; transform:rotate(-16deg); animation-delay:-360ms; }
.rain-friend-funbot { --rain-hand:#ffd84d; }
.rain-friend-garnold { --rain-hand:#d7a82b; }
.rain-friend-clukr { --rain-hand:#b9c0c8; }
@keyframes rain-friend-grip { to { translate:0 2px; scale:.94; } }
.rain-friend-funbot { margin-left:-118px; }
.rain-friend-garnold { margin-left:0; animation-delay:-.6s; }
.rain-friend-clukr { margin-left:118px; animation-delay:-1.2s; }

.beat-runner.home-running-out.home-running-right {
  animation: home-run-out-right 1.05s cubic-bezier(.45,.02,.8,.42) forwards;
}

.beat-runner.home-running-out.home-running-left {
  animation: home-run-out-left 1.05s cubic-bezier(.45,.02,.8,.42) forwards;
}

.beat-runner.home-running-in.home-running-in-left {
  animation: home-run-in-left 1.2s cubic-bezier(.12,.65,.35,1) forwards;
}

.beat-runner.home-running-in.home-running-in-right {
  animation: home-run-in-right 1.2s cubic-bezier(.12,.65,.35,1) forwards;
}

.runner-one { --runner-x: 2vw; --runner-delay: -.3s; }
.runner-two { --runner-x: 12vw; --runner-delay: -.7s; }
.runner-three { --runner-x: 22vw; --runner-delay: -.1s; }
.runner-four { --runner-x: 70vw; --runner-delay: -.8s; }
.runner-five { --runner-x: 80vw; --runner-delay: -.4s; }
.runner-six { --runner-x: 90vw; --runner-delay: -.95s; }

.computer-shell.home-song-performing .screen-body {
  background: #050607;
}

.computer-shell.home-song-performing .computer-desktop {
  display: none !important;
}

.computer-shell.home-song-performing .screen-subtitle {
  display: block !important;
  color: #fff;
  font-size: clamp(14px, 2.4vw, 22px);
  font-weight: 900;
  letter-spacing: .04em;
  text-shadow: 0 0 8px rgba(255,255,255,.55);
}

.home-song-original {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050607;
}

.home-song-screen-frame {
  position: absolute;
  left: -58%;
  top: -125%;
  width: 226%;
  height: auto;
  max-width: none;
}

.computer-shell.home-song-performing .screen-subtitle { display: none !important; }

.computer-shell.home-helping-left {
  animation: computer-help-left 3.1s ease-in-out;
}

.computer-shell.home-helping-right {
  animation: computer-help-right 3.1s ease-in-out;
}

@keyframes home-runner-idle {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-5px) rotate(2deg); }
}

@keyframes home-runner-play {
  from { transform: translateY(0) rotate(-7deg) scale(1, .98); }
  to { transform: translateY(-14px) rotate(7deg) scale(.98, 1.04); }
}

@keyframes home-runner-turn {
  0%, 100% { transform: rotate(0); }
  45% { transform: rotate(-10deg) translateX(-8px); }
  70% { transform: rotate(9deg) translateX(8px); }
}

@keyframes home-runner-worry {
  from { transform: translateX(-3px) rotate(-3deg); }
  to { transform: translateX(3px) rotate(3deg); }
}

@keyframes home-runner-cheer {
  50% { transform: translateY(-22px) scale(1.08); }
}

@keyframes home-walk-bob {
  from { transform: translateY(0) rotate(-4deg); }
  to { transform: translateY(-8px) rotate(4deg); }
}

@keyframes home-sleep-breathe {
  50% { transform: scale(.6,.55) translateY(14px); }
}

@keyframes home-collision {
  from { transform: translateX(-4px) rotate(-5deg); }
  to { transform: translateX(4px) rotate(5deg); }
}

@keyframes home-chase-a {
  0% { transform: translateX(0) translateY(0) rotate(-7deg); }
  30% { transform: translateX(6vw) translateY(-10px) rotate(7deg); }
  65% { transform: translateX(12vw) translateY(0) rotate(-7deg); }
  100% { transform: translateX(18vw) translateY(-5px) rotate(8deg); }
}

@keyframes home-chase-b {
  0% { transform: translateX(0) translateY(-7px) rotate(8deg); }
  30% { transform: translateX(-6vw) translateY(0) rotate(-6deg); }
  65% { transform: translateX(-12vw) translateY(-10px) rotate(7deg); }
  100% { transform: translateX(-18vw) translateY(-5px) rotate(-8deg); }
}

@keyframes home-concert {
  0% { transform: translate(0,0) rotate(-4deg) scale(1,.97); }
  18% { transform: translate(-4px,-7px) rotate(-8deg) scale(.98,1.03); }
  44% { transform: translate(2px,-21px) rotate(5deg) scale(.95,1.08); }
  68% { transform: translate(6px,-9px) rotate(8deg) scale(1.04,.96); }
  86% { transform: translate(-2px,-3px) rotate(-3deg) scale(1.02,.98); }
  100% { transform: translate(0,0) rotate(-4deg) scale(1,.97); }
}

@keyframes home-hand-swing-left {
  from { transform: rotate(32deg) translateY(-2px); }
  to { transform: rotate(-42deg) translateY(3px); }
}

@keyframes home-hand-swing-right {
  from { transform: rotate(-42deg) translateY(3px); }
  to { transform: rotate(32deg) translateY(-2px); }
}

@keyframes home-clukr-flight {
  0%,100% { transform: translate(-5px,4px); }
  50% { transform: translate(7px,-16px); }
}
@keyframes home-clukr-disc-spin { to { transform: rotate(360deg); } }

@keyframes home-funbot-flight {
  0%,100% { transform: translate(-8px,8px) rotate(-4deg); }
  50% { transform: translate(12px,-30px) rotate(5deg); }
}

@keyframes home-garnold-show {
  from { transform: translateY(0) rotate(-2deg); }
  to { transform: translateY(-12px) rotate(2deg); }
}
@keyframes home-show-hand-left { from { transform:rotate(18deg) translateY(0); } to { transform:rotate(-52deg) translateY(-5px); } }
@keyframes home-show-hand-right { from { transform:rotate(-18deg) translateY(0); } to { transform:rotate(52deg) translateY(-5px); } }

@keyframes home-rocket-fire {
  from { transform: scaleY(.72); opacity:.72; }
  to { transform: scaleY(1.18); opacity:1; }
}

@keyframes home-confetti-fall {
  from { transform: translate(-50%,0) rotate(-4deg); opacity:0; }
  24% { opacity:1; }
  to { transform: translate(-50%,64px) rotate(38deg); opacity:0; }
}
@keyframes home-stage-carry-in { 0%{left:-22vw;transform:translateY(var(--crew-y));} 68%{left:calc(50% - 80px);transform:translateY(var(--crew-y));} 100%{left:110vw;transform:translateY(var(--crew-y));} }
@keyframes home-stage-carry-out { 0%{right:-22vw;transform:translateY(var(--crew-y));} 55%{right:calc(50% - 80px);transform:translateY(var(--crew-y));} 100%{right:110vw;transform:translateY(var(--crew-y));} }
@keyframes home-floor-arrive { from{opacity:0;transform:translateX(-110vw) perspective(320px) rotateX(56deg);} to{opacity:1;transform:translateX(0) perspective(320px) rotateX(56deg);} }
@keyframes home-floor-leave { from{opacity:1;transform:translateX(0) perspective(320px) rotateX(56deg);} to{opacity:0;transform:translateX(110vw) perspective(320px) rotateX(56deg);} }
@keyframes rain-friend-help { from{transform:translateY(0);} to{transform:translateY(-5px);} }

@keyframes home-night-floor {
  0%,100% { filter: hue-rotate(0deg) brightness(1); background-position: 0 0,0 0,0 0; }
  50% { filter: hue-rotate(82deg) brightness(1.22); background-position: 27px 0,0 27px,0 0; }
}

@keyframes home-night-notes {
  from { transform: translateY(8px) rotate(-2deg); opacity:.58; }
  to { transform: translateY(-12px) rotate(2deg); opacity:1; }
}

@keyframes home-run-out-right {
  0% { transform: translateX(0) rotate(0); }
  45% { transform: translateX(34vw) translateY(-10px) rotate(7deg); }
  100% { transform: translateX(112vw) translateY(7px) rotate(12deg); opacity:.15; }
}

@keyframes home-run-out-left {
  0% { transform: translateX(0) rotate(0); }
  45% { transform: translateX(-34vw) translateY(-10px) rotate(-7deg); }
  100% { transform: translateX(-112vw) translateY(7px) rotate(-12deg); opacity:.15; }
}

@keyframes home-run-in-left {
  0% { transform: translateX(-112vw) translateY(5px) rotate(-10deg); opacity:.2; }
  65% { transform: translateX(8vw) translateY(-14px) rotate(5deg); opacity:1; }
  100% { transform: translateX(0) translateY(0) rotate(0); opacity:1; }
}

@keyframes home-run-in-right {
  0% { transform: translateX(112vw) translateY(5px) rotate(10deg); opacity:.2; }
  65% { transform: translateX(-8vw) translateY(-14px) rotate(-5deg); opacity:1; }
  100% { transform: translateX(0) translateY(0) rotate(0); opacity:1; }
}

@keyframes computer-help-left {
  0%, 100% { translate: 0 0; }
  38%, 68% { translate: min(-25vw, -180px) -14px; }
}

@keyframes computer-help-right {
  0%, 100% { translate: 0 0; }
  38%, 68% { translate: min(25vw, 180px) -14px; }
}

body.home-mode .beatbox-runners,
body.computer-app-open .beatbox-runners,
body.terror-night .beatbox-runners {
  display: none;
}

@media (max-width: 720px) {
  .beatbox-runners { bottom: 20vh; height: 105px; }
  .runner-one { --runner-x: 1vw; }
  .runner-two { --runner-x: 15vw; }
  .runner-three { --runner-x: 29vw; }
  .runner-four { --runner-x: 58vw; }
  .runner-five { --runner-x: 72vw; }
  .runner-six { --runner-x: 86vw; }
  .beat-runner { width: 54px; height: 84px; }
  .home-song-button { top: 84px; padding: 6px 10px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  .beat-runner,
  .beat-runner.home-playing,
  .beat-runner.home-turning,
  .beat-runner.home-walking,
  .beat-runner.home-returning,
  .beat-runner.home-sleeping,
  .beat-runner.home-collision,
  .beat-runner.home-chasing-a,
  .beat-runner.home-chasing-b,
  .beat-runner.home-running-out,
  .beat-runner.home-running-in,
  .beat-runner.home-concert,
  .beat-runner.home-help-needed,
  .beat-runner.home-helped,
  .computer-shell.home-helping-left,
  .computer-shell.home-helping-right { animation: none; }
}

.minecraft-xp-bar i {
  position: absolute;
  left: 3px;
  top: 3px;
  bottom: 3px;
  width: var(--xp);
  background: linear-gradient(90deg, #72ff42, #d8ff68);
  box-shadow: 0 0 10px rgba(132, 255, 70, 0.82);
}

.minecraft-xp-bar span {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  color: #a8ff55;
  font: 900 13px "Courier New", monospace;
  text-shadow: 2px 2px 0 #050505;
}

.minecraft-hud {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 40;
  display: grid;
  grid-template-columns: auto auto auto auto auto;
  align-items: center;
  gap: 6px;
  transform: translateX(-50%);
  padding: 5px;
  border: 4px solid #1f1711;
  background: rgba(22, 18, 14, 0.88);
  color: #ffffff;
  font-family: "Courier New", monospace;
  font-size: 13px;
  font-weight: 900;
}

.minecraft-crafting-panel {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  grid-template-rows: auto 1fr auto auto auto;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
  border: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 100%),
    #3b2d22;
  background-size: 30px 30px;
  color: #fff7df;
  box-shadow: none;
}

.minecraft-crafting-panel[hidden] {
  display: none;
}

.minecraft-crafting-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 900;
}

.minecraft-crafting-close {
  width: 28px;
  height: 28px;
  border: 2px solid #1f1711;
  background: #c23d32;
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.minecraft-crafting-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: min(44vw, 240px);
  align-self: start;
  justify-self: center;
}

.minecraft-crafting-slot {
  aspect-ratio: 1;
  border: 3px solid #1f1711;
  background: #8a6a46;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
}

.minecraft-crafting-body {
  display: grid;
  grid-template-columns: minmax(130px, 0.8fr) 72px minmax(150px, 1fr);
  align-items: start;
  justify-items: center;
  gap: 14px;
}

.minecraft-crafting-flow {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 8px;
}

.minecraft-crafting-arrow {
  width: 52px;
  height: 26px;
  border: 3px solid #1f1711;
  background:
    linear-gradient(90deg, transparent 0 58%, #f4d46b 58% 100%),
    linear-gradient(45deg, transparent 0 50%, #f4d46b 50% 100%);
  clip-path: polygon(0 30%, 58% 30%, 58% 0, 100% 50%, 58% 100%, 58% 70%, 0 70%);
}

.minecraft-crafting-output {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 4px solid #1f1711;
  background: #8a6a46;
  color: #ffffff;
  font: 900 16px "Courier New", monospace;
  cursor: pointer;
  box-shadow: inset 4px 4px 0 rgba(255, 255, 255, 0.14), inset -5px -5px 0 rgba(0, 0, 0, 0.22);
}

.minecraft-crafting-output:disabled {
  cursor: default;
  opacity: 0.45;
}

.minecraft-crafting-output span {
  position: absolute;
  right: 3px;
  bottom: 2px;
  min-width: 16px;
  background: rgba(0, 0, 0, 0.58);
  font-size: 10px;
}

.minecraft-crafting-recipes {
  display: grid;
  gap: 8px;
  width: min(42vw, 260px);
}

.minecraft-crafting-inventory {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: start;
  min-height: 58px;
  padding: 6px;
  border: 3px solid #1f1711;
  background: rgba(24, 18, 13, 0.72);
}

.minecraft-crafting-inventory:empty::before {
  content: "先挖材料";
  color: #ffe4a1;
  font: 900 12px "Courier New", monospace;
}

.minecraft-crafting-inventory-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #1f1711;
  background: #8a6a46;
  color: #ffffff;
  font: 900 13px "Courier New", monospace;
  cursor: pointer;
}

.minecraft-crafting-inventory-item.material-wood {
  background: repeating-linear-gradient(90deg, #8b5425 0 7px, #6f3f1d 7px 12px);
}

.minecraft-crafting-inventory-item.material-coal {
  background: #3e3e3e;
}

.minecraft-crafting-inventory-item.material-stick {
  background: #7a4c26;
}

.minecraft-crafting-inventory-item.material-iron {
  background: #d6b84d;
  color: #1f1711;
}

.minecraft-crafting-inventory-item.material-emerald {
  background: #20b55b;
  color: #ffffff;
}

.minecraft-crafting-inventory-item.view-only {
  outline: 2px solid rgba(255, 255, 255, 0.28);
}

.minecraft-crafting-inventory-item.material-grass {
  background: linear-gradient(180deg, #35a236 0 36%, #7a4c26 36% 100%);
}

.minecraft-crafting-inventory-item.material-dirt {
  background: #7a4c26;
}

.minecraft-crafting-inventory-item.material-stone {
  background: #737373;
}

.minecraft-crafting-inventory-item.material-leaves {
  background: #2f8d38;
}

.minecraft-crafting-inventory-item.material-water,
.minecraft-crafting-inventory-item.material-water_bucket {
  background: #2387d8;
}

.minecraft-crafting-inventory-item.material-lava,
.minecraft-crafting-inventory-item.material-lava_bucket {
  background: #ff7b22;
}

.minecraft-crafting-inventory-item.material-bed {
  background: linear-gradient(180deg, #f8f3dc 0 36%, #db3f46 36% 100%);
}

.minecraft-crafting-inventory-item.material-crafting_table {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 5px, transparent 5px 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 5px, transparent 5px 100%),
    #9a642f;
  background-size: 12px 12px;
}

.minecraft-crafting-inventory-item.material-torch {
  background: #2a241d url("./assets/minecraft-tools/torch.png") center / 82% 82% no-repeat;
  color: transparent;
}

.minecraft-crafting-inventory-item.material-diamond_sword {
  background: #233348 url("./assets/minecraft-tools/diamond-sword.png") center / 86% 86% no-repeat;
  color: transparent;
}

.minecraft-crafting-inventory-item.material-wood_pickaxe {
  background: #4a3528 url("./assets/minecraft-tools/wood-pickaxe.png") center / 86% 86% no-repeat;
  color: transparent;
}

.minecraft-crafting-inventory-item.material-stone_pickaxe {
  background: #3c3c3c url("./assets/minecraft-tools/stone-pickaxe.png") center / 86% 86% no-repeat;
  color: transparent;
}

.minecraft-crafting-inventory-item.material-iron_pickaxe {
  background: #3c3c3c url("./assets/minecraft-tools/iron-pickaxe.png") center / 86% 86% no-repeat;
  color: transparent;
}

.minecraft-crafting-inventory-item.material-diamond_pickaxe {
  background: #203b48 url("./assets/minecraft-tools/diamond-pickaxe.png") center / 86% 86% no-repeat;
  color: transparent;
}

.minecraft-crafting-inventory-item.material-bucket {
  background: #c9ced4;
  color: #1f1711;
}

.minecraft-crafting-inventory-item.material-meat {
  background: #b44838;
}

.minecraft-crafting-inventory-item.material-wool {
  background: #f2f2f2;
  color: #1f1711;
}

.minecraft-crafting-inventory-item.material-seeds {
  background: #425f22;
}

.minecraft-crafting-inventory-item.material-wheat {
  background: #d9a53d;
  color: #1f1711;
}

.minecraft-crafting-inventory-item.material-xp {
  background: #6fff57;
  color: #1f1711;
}

.minecraft-crafting-inventory-item span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  transform: translate(-50%, -50%);
  border: 2px solid #1f1711;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 11px;
}

.minecraft-recipe {
  display: grid;
  grid-template-columns: 82px 1fr;
  align-items: center;
  gap: 8px;
  min-height: 72px;
  border: 3px solid #1f1711;
  background: #6b5239;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  text-align: left;
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(3, 20px);
  grid-template-rows: repeat(3, 20px);
  gap: 2px;
  padding: 3px;
  background: #2b2118;
  border: 2px solid #1f1711;
}

.recipe-grid i,
.recipe-grid b {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.28);
  color: #fff7df;
  font-size: 8px;
  font-style: normal;
}

.recipe-grid b {
  background: #8a6a46;
}

.minecraft-crafting-make {
  width: 100%;
  min-height: 30px;
  border: 3px solid #1f1711;
  background: #3c8f36;
  color: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.minecraft-crafting-status {
  margin-top: 6px;
  color: #d7ffe0;
  font-size: 10px;
  line-height: 1.2;
}

.minecraft-hearts {
  color: #ff4f5f;
  text-shadow: 2px 2px 0 #3b0508;
}

.minecraft-hunger {
  color: #ffb13b;
  text-shadow: 2px 2px 0 #4a2400;
}

.minecraft-farm-counts {
  color: #cfff83;
  white-space: nowrap;
}

.minecraft-eat {
  width: 34px;
  height: 28px;
  border: 3px solid #1f1711;
  border-radius: 0;
  background: #d7a047;
  color: #211100;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.minecraft-eat:disabled {
  opacity: 0.45;
  cursor: default;
}

.minecraft-plant {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 42%;
  height: 42%;
  border: 3px solid #17340d;
  transform: translate(-50%, -50%);
  color: #17340d;
  font-size: 10px;
  font-weight: 900;
  pointer-events: none;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
}

.minecraft-plant-grass {
  background: #54c943;
}

.minecraft-plant-wheat {
  background: #8fe36d;
}

.minecraft-plant-wheat-ripe {
  background: #ffd35b;
  border-color: #5f3a04;
  color: #5f3a04;
}

.minecraft-animal {
  position: absolute;
  left: 50%;
  top: 54%;
  z-index: 8;
  display: grid;
  place-items: center;
  width: 48%;
  height: 42%;
  border: 3px solid #181818;
  transform: translate(-50%, -50%);
  color: #111111;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.32);
  animation: minecraft-animal-walk 2.4s steps(2, end) infinite;
}

.minecraft-animal-winged {
  top: 42%;
  box-shadow: 0 9px 0 rgba(0, 0, 0, 0.14), 3px 3px 0 rgba(0, 0, 0, 0.32);
  animation: minecraft-animal-fly 1.5s steps(2, end) infinite;
}

.minecraft-animal-winged::before,
.minecraft-animal-winged::after {
  content: "";
  position: absolute;
  top: 22%;
  width: 28%;
  height: 28%;
  border: 2px solid #181818;
  background: #e9fbff;
}

.minecraft-animal-winged::before {
  left: -26%;
}

.minecraft-animal-winged::after {
  right: -26%;
}

.minecraft-animal-sheep {
  background: #f4f4e8;
}

.minecraft-animal-cow {
  background:
    linear-gradient(90deg, transparent 0 28%, #2a1a14 28% 46%, transparent 46% 70%, #2a1a14 70% 86%, transparent 86%),
    #f6efe0;
}

.minecraft-animal-pig {
  background: #f39bb0;
}

.minecraft-animal-chicken {
  background: #fff7d6;
}

.minecraft-villager {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 10;
  width: 52%;
  height: 72%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #b3824f 0 38%, #6b4428 38% 100%);
  border: 3px solid #1f1711;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.minecraft-villager::before {
  content: "";
  position: absolute;
  left: 18%;
  top: -20%;
  width: 64%;
  height: 44%;
  border: 3px solid #1f1711;
  background:
    radial-gradient(circle at 35% 45%, #1f1711 0 9%, transparent 10%),
    radial-gradient(circle at 65% 45%, #1f1711 0 9%, transparent 10%),
    #c49a6d;
}

.minecraft-villager::after {
  content: "";
  position: absolute;
  left: 18%;
  top: 46%;
  width: 64%;
  height: 14%;
  border: 2px solid #1f1711;
  background: #8a5a37;
}

.minecraft-villager.sleeping {
  width: 78%;
  height: 42%;
  top: 58%;
  transform: translate(-50%, -50%) rotate(0deg);
  background: linear-gradient(90deg, #c49a6d 0 28%, #6b4428 28% 100%);
}

.minecraft-villager.sleeping::before {
  left: 3%;
  top: 12%;
  width: 28%;
  height: 72%;
}

.minecraft-villager.sleeping::after {
  content: "Z";
  left: auto;
  right: 8%;
  top: -36%;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: 900 14px "Courier New", monospace;
}

.minecraft-piglin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 12;
  width: 54%;
  height: 70%;
  transform: translate(-50%, -50%);
  border: 3px solid #1f1711;
  background: linear-gradient(180deg, #d68b79 0 38%, #7b2d38 38% 100%);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.3);
}

.minecraft-piglin::before {
  content: "";
  position: absolute;
  left: 14%;
  top: -22%;
  width: 72%;
  height: 46%;
  border: 3px solid #1f1711;
  background:
    radial-gradient(circle at 30% 45%, #1f1711 0 9%, transparent 10%),
    radial-gradient(circle at 70% 45%, #1f1711 0 9%, transparent 10%),
    linear-gradient(90deg, #e8bd4a 0 18%, transparent 18% 82%, #e8bd4a 82% 100%),
    #e29a87;
}

.minecraft-enderman {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 20;
  width: 34%;
  height: 118%;
  transform: translate(-50%, -50%);
  border: 3px solid #050505;
  background: linear-gradient(180deg, #050505 0 28%, #111111 28% 100%);
  cursor: pointer;
  box-shadow: 0 0 14px rgba(168, 73, 255, 0.7);
}

.minecraft-enderman::before {
  content: "";
  position: absolute;
  left: -18%;
  top: -20%;
  width: 136%;
  height: 28%;
  border: 3px solid #050505;
  background:
    radial-gradient(circle at 34% 45%, #d77bff 0 9%, transparent 10%),
    radial-gradient(circle at 66% 45%, #d77bff 0 9%, transparent 10%),
    #080808;
}

.minecraft-enderman::after {
  content: "";
  position: absolute;
  right: -44%;
  top: 42%;
  width: 34%;
  height: 24%;
  border: 3px solid #050505;
  background: #14876d;
}

.minecraft-dragon {
  position: absolute;
  left: 50%;
  top: 42%;
  z-index: 28;
  width: 118%;
  height: 74%;
  transform: translate(-50%, -50%);
  border: 4px solid #050505;
  background:
    linear-gradient(90deg, transparent 0 8%, #050505 8% 92%, transparent 92% 100%),
    #111111;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(154, 43, 255, 0.65);
}

.minecraft-dragon::before,
.minecraft-dragon::after {
  content: "";
  position: absolute;
  top: 28%;
  width: 34%;
  height: 18%;
  border: 3px solid #050505;
  background: #161616;
}

.minecraft-dragon::before {
  left: -34%;
}

.minecraft-dragon::after {
  right: -34%;
}

.minecraft-world > .minecraft-dragon-boss {
  left: 50%;
  top: 22%;
  z-index: 70;
  width: 22%;
  height: 13%;
  transform: translate(-50%, -50%);
}

.minecraft-end-crystal {
  position: absolute;
  left: 50%;
  top: 22%;
  z-index: 24;
  width: 38%;
  height: 38%;
  transform: translate(-50%, -50%);
  border: 3px solid #1f1711;
  background: radial-gradient(circle at 50% 50%, #ffffff 0 18%, #ff72f8 19% 55%, #6b1e8f 56% 100%);
  cursor: pointer;
  box-shadow: 0 0 16px #ff72f8;
}

.minecraft-portal {
  position: absolute;
  inset: 12%;
  z-index: 18;
  border: 3px solid #1f1711;
  background:
    radial-gradient(circle at 50% 50%, #f3a6ff 0 10%, transparent 11%),
    repeating-linear-gradient(90deg, #4b0b78 0 7px, #9a2bff 7px 14px);
  box-shadow: 0 0 18px #d66cff;
  animation: minecraft-portal-glow 1.1s steps(2, end) infinite;
}

.minecraft-sky-portal {
  position: absolute;
  inset: 8%;
  z-index: 18;
  border: 3px solid #bdefff;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.88) 0 14%, transparent 15%),
    linear-gradient(180deg, rgba(50, 220, 255, 0.8), rgba(0, 82, 255, 0.88));
  box-shadow: 0 0 18px #36dfff, inset 0 0 18px #ffffff;
  animation: minecraft-portal-glow 0.9s steps(2, end) infinite;
  pointer-events: none;
}

.minecraft-sky-rabbit {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 24;
  width: 48%;
  height: 42%;
  transform: translate(-50%, -50%);
  border: 3px solid #1f1711;
  background:
    radial-gradient(circle at 36% 42%, #1f1711 0 8%, transparent 9%),
    radial-gradient(circle at 64% 42%, #1f1711 0 8%, transparent 9%),
    #f4fbff;
  cursor: pointer;
}

.minecraft-sky-rabbit::before,
.minecraft-sky-rabbit::after {
  content: "";
  position: absolute;
  top: -48%;
  width: 20%;
  height: 54%;
  border: 3px solid #1f1711;
  background: #f4fbff;
}

.minecraft-sky-rabbit::before {
  left: 18%;
}

.minecraft-sky-rabbit::after {
  right: 18%;
}

.minecraft-wind-cloud {
  position: absolute;
  left: 50%;
  top: 38%;
  z-index: 25;
  width: 76%;
  height: 38%;
  transform: translate(-50%, -50%);
  border: 3px solid #1f1711;
  background:
    radial-gradient(circle at 32% 48%, #1f1711 0 6%, transparent 7%),
    radial-gradient(circle at 62% 48%, #1f1711 0 6%, transparent 7%),
    linear-gradient(180deg, #d4d6d2, #8c928e);
  box-shadow: 0 0 12px rgba(90, 110, 112, 0.55);
  cursor: pointer;
}

.minecraft-wind-cloud::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 16%;
  height: 3px;
  background: #1f1711;
}

.cube-shadow {
  position: absolute;
  inset: 0;
  border: 0;
  transform: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    #2f5e8f;
}

.cube-top,
.cube-left,
.cube-right {
  display: none;
}

.cube-top {
  left: 0;
  top: 0;
  filter: none;
}

.cube-left {
  left: 0;
  top: 0;
  clip-path: polygon(0 0, 18% 0, 18% 100%, 0 100%);
  background: rgba(0, 0, 0, 0.2);
  filter: none;
}

.cube-right {
  right: 0;
  left: auto;
  top: 0;
  clip-path: polygon(82% 0, 100% 0, 100% 100%, 82% 100%);
  background: rgba(0, 0, 0, 0.18);
  filter: none;
}

.minecraft-cube:hover .cube-top,
.minecraft-cube:hover .cube-left,
.minecraft-cube:hover .cube-right {
  outline: 0;
}

.minecraft-cube:hover {
  outline: 3px solid rgba(255, 255, 255, 0.78);
  outline-offset: -3px;
}

.minecraft-player {
  position: absolute;
  left: 50%;
  top: 47%;
  z-index: 20;
  display: grid;
  place-items: center;
  width: min(5vw, 46px);
  height: min(5vw, 46px);
  border: 3px solid #111111;
  background:
    linear-gradient(180deg, #49b8ff 0 45%, #2449c7 45% 100%);
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.minecraft-guardian {
  position: absolute;
  left: 50%;
  top: 62%;
  z-index: 90;
  display: grid;
  place-items: center;
  width: min(10vw, 88px);
  height: min(10vw, 88px);
  border: 5px solid #10222d;
  background:
    radial-gradient(circle at 50% 45%, #fff6b0 0 12%, #132836 13% 24%, transparent 25%),
    #39b9a8;
  color: #10222d;
  font-size: 24px;
  font-weight: 900;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 28px rgba(68, 255, 230, 0.8);
}

.minecraft-guardian::before,
.minecraft-guardian::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 10px;
  background: #39b9a8;
  border: 3px solid #10222d;
}

.minecraft-guardian::before {
  left: -24px;
  top: 31px;
}

.minecraft-guardian::after {
  right: -24px;
  top: 31px;
}

.minecraft-cell {
  position: relative;
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(31, 23, 17, 0.35);
  border-radius: 0;
  background: transparent;
  cursor: crosshair;
}

.minecraft-empty:hover {
  background: rgba(255, 255, 255, 0.24);
}

.minecraft-block {
  border-color: #211811;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.18),
    inset 0 -5px 0 rgba(0, 0, 0, 0.24);
}

.minecraft-grass {
  background: linear-gradient(180deg, #35a236 0 34%, #7a4c26 34% 100%);
}

.minecraft-dirt {
  background:
    radial-gradient(circle at 30% 38%, rgba(70, 38, 20, 0.42) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 68%, rgba(49, 28, 14, 0.36) 0 9%, transparent 10%),
    #7a4c26;
}

.minecraft-stone {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0 5px, transparent 5px 10px),
    #737373;
}

.minecraft-wood {
  background:
    repeating-linear-gradient(90deg, #8b5425 0 8px, #6f3f1d 8px 14px),
    #7c4a24;
}

.minecraft-leaves {
  background:
    radial-gradient(circle at 30% 35%, rgba(190, 255, 120, 0.34) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 62%, rgba(20, 76, 22, 0.35) 0 12%, transparent 13%),
    #2f8d38;
}

.minecraft-cube.minecraft-grass .cube-top {
  background: #35a236;
}

.minecraft-cube.minecraft-grass {
  background: linear-gradient(180deg, #35a236 0 34%, #7a4c26 34% 100%);
}

.minecraft-cube.minecraft-grass .cube-left,
.minecraft-cube.minecraft-grass .cube-right {
  background: #7a4c26;
}

.minecraft-cube.minecraft-dirt {
  background:
    radial-gradient(circle at 30% 38%, rgba(70, 38, 20, 0.42) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 68%, rgba(49, 28, 14, 0.36) 0 9%, transparent 10%),
    #7a4c26;
}

.minecraft-cube.minecraft-dirt .cube-top,
.minecraft-cube.minecraft-dirt .cube-left,
.minecraft-cube.minecraft-dirt .cube-right {
  background:
    radial-gradient(circle at 30% 38%, rgba(70, 38, 20, 0.42) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 68%, rgba(49, 28, 14, 0.36) 0 9%, transparent 10%),
    #7a4c26;
}

.minecraft-cube.minecraft-stone {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0 5px, transparent 5px 10px),
    #737373;
}

.minecraft-cube.minecraft-stone .cube-top,
.minecraft-cube.minecraft-stone .cube-left,
.minecraft-cube.minecraft-stone .cube-right {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0 5px, transparent 5px 10px),
    #737373;
}

.minecraft-cube.minecraft-sky_grass {
  background: linear-gradient(180deg, #55d8c8 0 34%, #6c5a46 34% 100%);
}

.minecraft-cube.minecraft-sky_grass .cube-top {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 18%, transparent 18% 100%),
    #55d8c8;
}

.minecraft-cube.minecraft-sky_grass .cube-left,
.minecraft-cube.minecraft-sky_grass .cube-right {
  background: #6c5a46;
}

.minecraft-cube.minecraft-sky_wood {
  background: repeating-linear-gradient(90deg, #42a69c 0 8px, #2c7e78 8px 14px);
}

.minecraft-cube.minecraft-sky_leaves {
  background:
    radial-gradient(circle at 32% 34%, rgba(220, 255, 240, 0.42) 0 12%, transparent 13%),
    radial-gradient(circle at 70% 62%, rgba(0, 114, 108, 0.35) 0 13%, transparent 14%),
    #48cfc2;
}

.minecraft-cube.minecraft-wood {
  background:
    repeating-linear-gradient(90deg, #8b5425 0 8px, #6f3f1d 8px 14px),
    #7c4a24;
}

.minecraft-cube.minecraft-wood::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 2px solid rgba(45, 24, 9, 0.72);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 5px, transparent 5px 10px);
  pointer-events: none;
}

.minecraft-cube.minecraft-wood .cube-top,
.minecraft-cube.minecraft-wood .cube-left,
.minecraft-cube.minecraft-wood .cube-right {
  background:
    repeating-linear-gradient(90deg, #8b5425 0 8px, #6f3f1d 8px 14px),
    #7c4a24;
}

.minecraft-cube.minecraft-leaves {
  background:
    radial-gradient(circle at 30% 35%, rgba(190, 255, 120, 0.34) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 62%, rgba(20, 76, 22, 0.35) 0 12%, transparent 13%),
    #2f8d38;
}

.minecraft-cube.minecraft-leaves .cube-top,
.minecraft-cube.minecraft-leaves .cube-left,
.minecraft-cube.minecraft-leaves .cube-right {
  background:
    radial-gradient(circle at 30% 35%, rgba(190, 255, 120, 0.34) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 62%, rgba(20, 76, 22, 0.35) 0 12%, transparent 13%),
    #2f8d38;
}

.minecraft-cube.minecraft-water {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0 6px, transparent 6px 18px),
    #2387d8;
  box-shadow:
    inset 5px 5px 0 rgba(180, 236, 255, 0.36),
    inset -6px -6px 0 rgba(0, 44, 102, 0.32);
}

.minecraft-cube.minecraft-water .cube-top,
.minecraft-cube.minecraft-water .cube-left,
.minecraft-cube.minecraft-water .cube-right {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0 6px, transparent 6px 18px),
    #2387d8;
}

.minecraft-cube.minecraft-water::after {
  content: "";
  position: absolute;
  inset: 18% 12%;
  z-index: 6;
  border: 3px solid rgba(220, 250, 255, 0.74);
  background: rgba(112, 205, 255, 0.32);
  pointer-events: none;
  animation: minecraft-water-shimmer 1.8s steps(2, end) infinite;
}

.minecraft-cube.minecraft-lava {
  background:
    repeating-linear-gradient(135deg, #ffea67 0 8px, #ff7b22 8px 16px, #b71917 16px 24px);
  box-shadow: inset 0 0 18px rgba(255, 217, 61, 0.75);
}

.minecraft-cube.minecraft-obsidian {
  background:
    radial-gradient(circle at 35% 35%, #242424 0 10%, transparent 11%),
    radial-gradient(circle at 72% 68%, #080808 0 12%, transparent 13%),
    #111111;
}

.minecraft-cube.minecraft-netherrack {
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 130, 88, 0.3) 0 10%, transparent 11%),
    radial-gradient(circle at 70% 62%, rgba(70, 12, 16, 0.38) 0 12%, transparent 13%),
    #8b2e27;
}

.minecraft-cube.minecraft-nether_brick {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.24) 0 4px, transparent 4px 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.24) 0 4px, transparent 4px 100%),
    #4c1724;
  background-size: 14px 14px;
}

.minecraft-cube.minecraft-meteor {
  background:
    radial-gradient(circle at 50% 45%, #fff16a 0 18%, transparent 19%),
    radial-gradient(circle at 34% 68%, #ffbe3d 0 10%, transparent 11%),
    #5f4631;
  box-shadow: 0 0 18px rgba(255, 231, 82, 0.85);
}

.minecraft-cube.minecraft-warped_nylium {
  background:
    radial-gradient(circle at 35% 35%, #5cffb1 0 12%, transparent 13%),
    radial-gradient(circle at 70% 68%, #0e6b58 0 12%, transparent 13%),
    #14876d;
}

.minecraft-cube.minecraft-warped_stem {
  background:
    repeating-linear-gradient(90deg, #07515a 0 8px, #0b7a84 8px 14px),
    #0b6870;
}

.minecraft-cube.minecraft-warped_leaves {
  background:
    radial-gradient(circle at 35% 35%, rgba(168, 255, 238, 0.42) 0 11%, transparent 12%),
    radial-gradient(circle at 68% 66%, rgba(0, 76, 84, 0.42) 0 12%, transparent 13%),
    #16a6a0;
}

.minecraft-cube.minecraft-glowstone {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 18%, transparent 18% 38%, rgba(255, 255, 255, 0.22) 38% 56%, transparent 56% 100%),
    linear-gradient(180deg, #fff18a 0 24%, #d99a25 24% 54%, #ffe56a 54% 100%);
  box-shadow: 0 0 16px rgba(255, 229, 92, 0.82);
}

.minecraft-cube.minecraft-end_stone {
  background:
    linear-gradient(90deg, rgba(120, 94, 36, 0.26) 0 5px, transparent 5px 100%),
    linear-gradient(180deg, #e6db8b 0 62%, #c9b968 62% 100%);
  box-shadow: inset 0 0 0 2px #7d7138;
}

.minecraft-cube.minecraft-end_stone.minecraft-end-edge {
  background:
    linear-gradient(90deg, rgba(80, 0, 0, 0.32) 0 5px, transparent 5px 100%),
    linear-gradient(180deg, #c23535 0 58%, #7c1212 58% 100%);
  box-shadow: inset 0 0 0 2px #3d0505, 0 0 12px rgba(255, 64, 64, 0.34);
}

.minecraft-cube.minecraft-end_portal_frame {
  background:
    linear-gradient(90deg, #1d4b39 0 22%, #d8d08a 22% 78%, #1d4b39 78% 100%);
}

.minecraft-cube.minecraft-end_portal_frame_eye {
  background:
    radial-gradient(circle at 50% 48%, #6dff8b 0 17%, #163f2b 18% 29%, transparent 30%),
    linear-gradient(90deg, #1d4b39 0 22%, #d8d08a 22% 78%, #1d4b39 78% 100%);
  box-shadow: inset 0 0 0 3px #0d2c1e, 0 0 12px rgba(109, 255, 139, 0.65);
}

.minecraft-cube.minecraft-end_portal {
  background:
    radial-gradient(circle at 50% 50%, #000000 0 46%, #16002a 47% 70%, #4d0f85 71% 100%);
  box-shadow: 0 0 22px #000000, 0 0 18px #5e15a0;
}

.minecraft-cube.minecraft-obsidian_pillar {
  background: #090909;
}

.minecraft-cube.minecraft-end_chest {
  background:
    linear-gradient(90deg, #2b1d11 0 20%, #d99a25 20% 80%, #2b1d11 80% 100%);
}

.minecraft-cube.minecraft-coal_ore,
.minecraft-cube.minecraft-iron_ore,
.minecraft-cube.minecraft-gold_ore,
.minecraft-cube.minecraft-diamond_ore,
.minecraft-cube.minecraft-bedrock_ore,
.minecraft-cube.minecraft-nether_gold_ore {
  background:
    radial-gradient(circle at 28% 32%, var(--ore-color) 0 12%, transparent 13%),
    radial-gradient(circle at 68% 64%, var(--ore-color) 0 10%, transparent 11%),
    #737373;
}

.minecraft-cube.minecraft-coal_ore {
  --ore-color: #5b5b5b;
}

.minecraft-cube.minecraft-iron_ore {
  --ore-color: #ffd846;
}

.minecraft-cube.minecraft-gold_ore {
  --ore-color: #ffd846;
}

.minecraft-cube.minecraft-nether_gold_ore {
  --ore-color: #ffd846;
  background:
    linear-gradient(90deg, transparent 0 14%, #ffd846 14% 34%, transparent 34% 64%, #ffd846 64% 82%, transparent 82% 100%),
    linear-gradient(180deg, transparent 0 18%, #ffd846 18% 36%, transparent 36% 62%, #ffd846 62% 80%, transparent 80% 100%),
    #8b2e27;
}

.minecraft-cube.minecraft-diamond_ore {
  --ore-color: #22a8ff;
}

.minecraft-cube.minecraft-bedrock_ore {
  --ore-color: #050505;
  background:
    radial-gradient(circle at 28% 32%, #1b1b1b 0 13%, transparent 14%),
    radial-gradient(circle at 68% 64%, #050505 0 12%, transparent 13%),
    repeating-linear-gradient(45deg, #202020 0 7px, #090909 7px 14px);
}

.minecraft-cube.minecraft-crafting_table {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.22) 0 4px, transparent 4px 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22) 0 4px, transparent 4px 100%),
    #9a642f;
  background-size: 14px 14px;
}

.minecraft-cube.minecraft-torch {
  background: transparent;
  box-shadow: none;
}

.minecraft-cube.minecraft-torch::before {
  content: "";
  position: absolute;
  left: 46%;
  top: 28%;
  z-index: 7;
  width: 8%;
  height: 56%;
  background: #7a4c26;
  border: 2px solid #1f1711;
}

.minecraft-cube.minecraft-torch::after {
  content: "";
  position: absolute;
  left: 39%;
  top: 10%;
  z-index: 8;
  width: 22%;
  height: 24%;
  background: #f63c20;
  border: 2px solid #8a2400;
  box-shadow: 0 0 18px #ffd64f;
}

.minecraft-cube.minecraft-bed {
  background:
    linear-gradient(180deg, #f8f3dc 0 34%, #db3f46 34% 100%);
}

.minecraft-cube.minecraft-bed .cube-top,
.minecraft-cube.minecraft-bed .cube-left,
.minecraft-cube.minecraft-bed .cube-right {
  background:
    linear-gradient(180deg, #f8f3dc 0 34%, #db3f46 34% 100%);
}

.minecraft-cube.minecraft-bed::before {
  content: "";
  position: absolute;
  left: 18%;
  top: 16%;
  z-index: 7;
  width: 64%;
  height: 28%;
  border: 3px solid #211811;
  background: #fff8db;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.16);
  pointer-events: none;
}

.minecraft-cube.minecraft-bed::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 12%;
  z-index: 7;
  height: 46%;
  border: 3px solid #211811;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0 18%, transparent 18% 100%),
    #db3f46;
  box-shadow: inset -4px -4px 0 rgba(0, 0, 0, 0.18);
  pointer-events: none;
}

.minecraft-cube.minecraft-bed[data-bed-part="foot"]::before {
  display: none;
}

.minecraft-cube.minecraft-bed[data-bed-part="foot"]::after {
  top: 12%;
  bottom: 12%;
  height: auto;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.16) 0 7px, transparent 7px 14px),
    #c92f3b;
}

.mine-panel {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: calc(max(14px, env(safe-area-inset-top)) + 288px);
  width: min(276px, calc(100vw - 28px));
  z-index: 101;
  padding: 12px;
  border: 4px solid #201915;
  border-radius: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0 2px, transparent 2px 100%),
    linear-gradient(135deg, #6d6d6d 0 25%, #5d5d5d 25% 50%, #707070 50% 75%, #545454 75% 100%);
  background-size: 32px 32px, 32px 32px, 64px 64px;
  color: #fff7e5;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.08),
    0 18px 42px rgba(0, 0, 0, 0.34);
  image-rendering: pixelated;
}

.shop-panel {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: calc(max(14px, env(safe-area-inset-top)) + 288px);
  width: min(252px, calc(100vw - 28px));
  z-index: 101;
  padding: 10px;
  border-radius: 8px;
  background: rgba(18, 34, 58, 0.94);
  color: #eef7ff;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.mine-toolbar,
.bag-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 8px;
  border: 3px solid #1f1711;
  border-radius: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 48%),
    #3a2a20;
  color: #f8f0d8;
  font-size: 12px;
  font-weight: 900;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.45);
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  font-weight: 900;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.shop-search-wrap {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: #dceaff;
  font-size: 12px;
  font-weight: 900;
}

.shop-search {
  min-width: 0;
  border: 0;
  border-radius: 999px;
  padding: 8px 11px;
  background: rgba(255, 255, 255, 0.92);
  color: #18233a;
  font: inherit;
  font-size: 12px;
  outline: none;
}

.shop-search:focus {
  box-shadow: 0 0 0 3px rgba(126, 190, 255, 0.52);
}

.shop-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  min-height: 86px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  text-align: center;
}

.shop-card.shop-house {
  grid-column: 1 / -1;
  min-height: 74px;
  background:
    linear-gradient(135deg, rgba(255, 226, 122, 0.22), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.12);
}

.shop-icon {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe184;
  font-size: 15px;
  font-weight: 900;
}

.shop-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.shop-buy,
.move-home {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.shop-buy {
  background: #ffe07a;
  color: #201600;
}

.shop-buy:disabled {
  cursor: default;
  opacity: 0.5;
}

.shop-empty {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  color: rgba(238, 247, 255, 0.78);
  font-size: 12px;
  text-align: center;
}

.move-home {
  background: #96ff9a;
  color: #073008;
}

.mine-grid,
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border: 4px solid #1f1711;
  background: #1f1711;
}

.mine-grid {
  margin-top: 8px;
}

.inventory-grid {
  margin-top: 7px;
}

.mine-cell,
.inventory-slot {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  min-width: 0;
  border-radius: 0;
  border: 2px solid #2b211a;
  font-size: 16px;
  font-weight: 900;
  overflow: hidden;
}

.mine-cell {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 42%),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.12) 0 5px, transparent 5px 10px),
    var(--block-stone, #6f6f6f);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    inset 0 4px 0 rgba(255, 255, 255, 0.16),
    inset 0 -5px 0 rgba(0, 0, 0, 0.22);
}

.mine-cell:nth-child(4n + 1) {
  --block-stone: #696969;
}

.mine-cell:nth-child(4n + 2) {
  --block-stone: #5d5d5d;
}

.mine-cell:nth-child(4n + 3) {
  --block-stone: #777777;
}

.mine-cell::before {
  content: "";
  position: absolute;
  inset: 8px;
  opacity: 0.9;
  background: transparent;
}

.mine-cell.block-coal::before {
  background:
    radial-gradient(circle at 35% 35%, #1b1b1b 0 5px, transparent 6px),
    radial-gradient(circle at 67% 62%, #101010 0 4px, transparent 5px);
}

.mine-cell.block-iron::before {
  background:
    radial-gradient(circle at 34% 38%, #d7b078 0 5px, transparent 6px),
    radial-gradient(circle at 66% 62%, #b98752 0 4px, transparent 5px);
}

.mine-cell.block-gold::before {
  background:
    radial-gradient(circle at 35% 35%, #ffe268 0 5px, transparent 6px),
    radial-gradient(circle at 66% 63%, #ffbd2f 0 4px, transparent 5px);
}

.mine-cell.block-diamond::before {
  background:
    radial-gradient(circle at 36% 35%, #7af7ff 0 5px, transparent 6px),
    radial-gradient(circle at 66% 62%, #2ad7ff 0 4px, transparent 5px);
}

.mine-cell.crack-1::after,
.mine-cell.crack-2::after,
.mine-cell.crack-3::after {
  content: "";
  position: absolute;
  inset: 8px;
  background:
    linear-gradient(42deg, transparent 0 44%, rgba(10, 10, 10, 0.74) 45% 49%, transparent 50%),
    linear-gradient(130deg, transparent 0 52%, rgba(10, 10, 10, 0.64) 53% 56%, transparent 57%);
  opacity: 0.45;
}

.mine-cell.crack-2::after {
  opacity: 0.7;
  inset: 6px;
}

.mine-cell.crack-3::after {
  opacity: 0.95;
  inset: 4px;
  background:
    linear-gradient(42deg, transparent 0 44%, rgba(10, 10, 10, 0.82) 45% 49%, transparent 50%),
    linear-gradient(130deg, transparent 0 52%, rgba(10, 10, 10, 0.74) 53% 56%, transparent 57%),
    linear-gradient(95deg, transparent 0 42%, rgba(10, 10, 10, 0.7) 43% 46%, transparent 47%);
}

.mine-cell.mining-hit {
  transform: translateY(1px) scale(0.96);
}

.mine-cell:active {
  transform: translateY(1px) scale(0.98);
}

.mine-cell.mined,
.inventory-slot {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 45%),
    #201914;
  color: #dddddd;
}

.inventory-slot {
  min-height: 36px;
  box-shadow:
    inset 0 3px 0 rgba(255, 255, 255, 0.08),
    inset 0 -4px 0 rgba(0, 0, 0, 0.24);
}

.sell-minerals,
.buy-house {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  font: inherit;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.sell-minerals {
  background: #ffd15c;
  color: #2a1a00;
}

.buy-house {
  background: #7ee27b;
  color: #092d0a;
}

.bag-toolbar {
  margin-top: 10px;
}

.mineral-stone {
  color: #b8b8b8;
}

.mineral-coal {
  color: #2b2b2b;
}

.mineral-iron {
  color: #d8c3a2;
}

.mineral-gold {
  color: #ffd43f;
}

.mineral-diamond {
  color: #5cf5ff;
  text-shadow: 0 0 10px rgba(92, 245, 255, 0.8);
}

.terror-toggle {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 8;
  border: 0;
  border-radius: 999px;
  background: rgba(124, 10, 10, 0.9);
  color: #fff4f4;
  padding: 10px 16px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
}

.terror-toggle.active {
  background: rgba(40, 40, 40, 0.92);
}

.computer-house {
  position: fixed;
  left: calc(50% + 168px);
  bottom: 20vh;
  width: 120px;
  height: 100px;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(18px) scale(0.9);
  transition: opacity 360ms ease, transform 360ms ease;
}

.computer-house.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.computer-shell.visiting-house {
  opacity: 0.72;
}

body.home-mode .computer-shell {
  margin-top: clamp(134px, 19svh, 180px);
}

body.home-mode .computer-shell.visiting-house {
  opacity: 1;
}

body.home-mode .keyboard-dock {
  margin-top: 42px;
}

body.home-mode .computer-house.visible {
  left: calc(50% + 158px);
  bottom: 13vh;
  transform: translateY(0) scale(1.08);
}

body.home-mode .computer-house.visible::before {
  content: "电脑先生的家";
  position: absolute;
  left: 50%;
  top: -24px;
  width: 120px;
  transform: translateX(-50%);
  color: #73451f;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
}

.house-roof {
  position: absolute;
  left: 4px;
  top: 0;
  width: 112px;
  height: 54px;
  background: #f04e2f;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.house-body {
  position: absolute;
  left: 14px;
  top: 46px;
  width: 92px;
  height: 54px;
  border-radius: 6px 6px 0 0;
  background: #ffe09b;
  border: 4px solid #c8873d;
}

.house-door {
  position: absolute;
  left: 48px;
  bottom: 0;
  width: 24px;
  height: 40px;
  border-radius: 10px 10px 0 0;
  background: #7b4a2a;
}

.house-window {
  position: absolute;
  right: 26px;
  top: 58px;
  width: 24px;
  height: 22px;
  border: 3px solid #ffffff;
  background: #82ddff;
  box-shadow: inset 0 0 0 2px #41a7d2;
}

.house-computer {
  position: absolute;
  left: 50px;
  bottom: 12px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #090909;
  border: 4px solid #bfc3c8;
  opacity: 0;
  z-index: 2;
}

.house-computer::before,
.house-computer::after {
  content: "";
  position: absolute;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffffff;
}

.house-computer::before {
  left: 4px;
}

.house-computer::after {
  right: 4px;
}

.computer-house.occupied .house-computer {
  opacity: 1;
}

.computer-house.occupied .house-window {
  background: #fff19a;
  box-shadow:
    inset 0 0 0 2px #e6b83f,
    0 0 18px rgba(255, 229, 103, 0.72);
}

.house-item {
  position: absolute;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

.house-bed {
  left: 20px;
  bottom: 8px;
  width: 34px;
  height: 16px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(90deg, #88b8ff 0 30%, #ffffff 30% 100%);
  border: 3px solid #5a82c7;
}

.house-lamp {
  right: 18px;
  bottom: 20px;
  width: 12px;
  height: 28px;
  border-radius: 8px 8px 2px 2px;
  background: linear-gradient(180deg, #fff07a 0 45%, #7c5333 45% 100%);
  box-shadow: 0 0 18px rgba(255, 234, 97, 0.75);
}

.house-sofa {
  left: 18px;
  bottom: 30px;
  width: 42px;
  height: 20px;
  border-radius: 12px 12px 4px 4px;
  background: #e85d75;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, 0.12);
}

.house-table {
  right: 18px;
  bottom: 8px;
  width: 28px;
  height: 18px;
  border-top: 7px solid #8b552f;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.computer-house.has-bed .house-bed,
.computer-house.has-lamp .house-lamp,
.computer-house.has-sofa .house-sofa,
.computer-house.has-table .house-table,
.house-item.owned-furniture {
  opacity: 1;
}

body.home-mode .computer-house.has-bed .house-bed,
body.home-mode .computer-house.has-lamp .house-lamp,
body.home-mode .computer-house.has-sofa .house-sofa,
body.home-mode .computer-house.has-table .house-table,
body.home-mode .house-item.owned-furniture {
  position: fixed;
  opacity: 1;
  z-index: 3;
  transform: none;
  pointer-events: auto;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

body.home-mode .house-item.dragging {
  cursor: grabbing;
  z-index: 120;
}

body:not(.home-mode) .house-item.owned-furniture {
  opacity: 0;
  pointer-events: none;
}

body:not(.home-mode) .house-item.owned-furniture.house-tv,
body:not(.home-mode) .house-item.owned-furniture.custom-kind-tv {
  position: fixed;
  left: 22px;
  bottom: 96px;
  width: 340px !important;
  height: 238px !important;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #111727 0 74%, #3d455e 74% 100%);
  border: 6px solid #202638;
  color: #8ff0ff;
  overflow: visible;
  place-items: stretch;
  opacity: 1;
  pointer-events: auto;
  z-index: 8;
}

body.home-mode .house-item.owned-furniture.custom-placed {
  right: auto;
  bottom: auto;
}

body.home-mode .computer-house.has-bed .house-bed,
body.home-mode .house-item.owned-furniture.house-bed {
  left: calc(50% - 288px);
  bottom: 17vh;
  width: 140px;
  height: 48px;
  border-width: 5px;
  border-radius: 16px 16px 6px 6px;
  background:
    linear-gradient(90deg, #8dbdff 0 30%, #ffffff 30% 48%, #72a5ff 48% 100%);
}

body.home-mode .computer-house.has-lamp .house-lamp,
body.home-mode .house-item.owned-furniture.house-lamp {
  left: calc(50% + 210px);
  right: auto;
  bottom: 20vh;
  width: 34px;
  height: 98px;
  border-radius: 18px 18px 4px 4px;
  background:
    radial-gradient(ellipse at 50% 18%, #fff6a6 0 36%, transparent 38%),
    linear-gradient(180deg, transparent 0 42%, #7c5333 42% 100%);
  box-shadow:
    0 0 36px rgba(255, 234, 97, 0.74),
    0 34px 0 -12px #6b4328;
}

body.home-mode .computer-house.has-sofa .house-sofa,
body.home-mode .house-item.owned-furniture.house-sofa {
  left: calc(50% - 232px);
  bottom: 28vh;
  width: 130px;
  height: 58px;
  border-radius: 28px 28px 10px 10px;
  background:
    linear-gradient(180deg, #ff8ca0 0 45%, #e85d75 45% 100%);
  box-shadow:
    inset 0 -14px 0 rgba(0, 0, 0, 0.12),
    -18px 18px 0 -10px #bd4157,
    18px 18px 0 -10px #bd4157;
}

body.home-mode .computer-house.has-table .house-table,
body.home-mode .house-item.owned-furniture.house-table {
  left: calc(50% + 86px);
  right: auto;
  bottom: 17vh;
  width: 86px;
  height: 48px;
  border-top: 16px solid #8b552f;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
}

body.home-mode .computer-house.has-table .house-table::before,
body.home-mode .computer-house.has-table .house-table::after,
body.home-mode .house-item.owned-furniture.house-table::before,
body.home-mode .house-item.owned-furniture.house-table::after {
  content: "";
  position: absolute;
  top: 10px;
  width: 8px;
  height: 36px;
  border-radius: 4px;
  background: #6e3f22;
}

body.home-mode .computer-house.has-table .house-table::before,
body.home-mode .house-item.owned-furniture.house-table::before {
  left: 8px;
}

body.home-mode .computer-house.has-table .house-table::after,
body.home-mode .house-item.owned-furniture.house-table::after {
  right: 8px;
}

.custom-shop-furniture {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 42px;
  padding: 8px;
  border-radius: 10px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.54) 0 8px, transparent 9px),
    linear-gradient(180deg, #9ee7ff 0%, #5f91ff 100%);
  border: 4px solid rgba(40, 66, 130, 0.72);
  color: #10204a;
  font-size: 18px;
  font-weight: 900;
  box-shadow:
    inset 0 -8px 0 rgba(0, 0, 0, 0.1),
    0 10px 20px rgba(43, 70, 128, 0.24);
}

body.home-mode .house-item.owned-furniture.custom-shop-furniture {
  left: calc(50% - 40px);
  bottom: 24vh;
}

body.home-mode .house-item.owned-furniture.custom-kind-window,
body.home-mode .house-item.owned-furniture.custom-kind-big-window {
  left: calc(50% - 328px);
  bottom: 34vh;
  width: 142px;
  height: 98px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 28% 44%, rgba(255, 255, 255, 0.94) 0 10px, transparent 11px),
    radial-gradient(ellipse at 42% 38%, rgba(255, 255, 255, 0.94) 0 14px, transparent 15px),
    linear-gradient(180deg, #87d9ff 0 62%, #77d557 62% 100%);
  border: 8px solid #8b552f;
  color: transparent;
  box-shadow:
    inset 0 0 0 4px rgba(255, 255, 255, 0.32),
    0 12px 20px rgba(92, 55, 28, 0.22);
}

body.home-mode .house-item.owned-furniture.custom-kind-window::before,
body.home-mode .house-item.owned-furniture.custom-kind-big-window::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0 47%, #8b552f 47% 53%, transparent 53% 100%),
    linear-gradient(180deg, transparent 0 47%, #8b552f 47% 53%, transparent 53% 100%);
}

body.home-mode .house-item.owned-furniture.custom-kind-window::after,
body.home-mode .house-item.owned-furniture.custom-kind-big-window::after {
  content: "";
  position: absolute;
  inset: -48px 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

body.home-mode .house-item.owned-furniture.custom-kind-big-window {
  left: calc(50% - 386px);
  bottom: 31vh;
  width: 218px;
  height: 142px;
  border-width: 10px;
}

body.home-mode.night-mode .house-item.owned-furniture.custom-kind-window,
body.home-mode.night-mode .house-item.owned-furniture.custom-kind-big-window {
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.72) 0 2px, transparent 3px),
    linear-gradient(180deg, #16294d 0 62%, #2d5c3e 62% 100%);
}

body.home-mode.weather-cloudy .house-item.owned-furniture.custom-kind-window,
body.home-mode.weather-cloudy .house-item.owned-furniture.custom-kind-big-window {
  background:
    radial-gradient(ellipse at 30% 36%, rgba(255, 255, 255, 0.96) 0 16px, transparent 17px),
    radial-gradient(ellipse at 52% 30%, rgba(255, 255, 255, 0.92) 0 20px, transparent 21px),
    linear-gradient(180deg, #9cb5c6 0 62%, #6aa55f 62% 100%);
}

body.home-mode.weather-rain .house-item.owned-furniture.custom-kind-window,
body.home-mode.weather-rain .house-item.owned-furniture.custom-kind-big-window {
  background:
    radial-gradient(ellipse at 36% 30%, rgba(235, 244, 248, 0.88) 0 20px, transparent 21px),
    linear-gradient(180deg, #7d9fb8 0 62%, #4e8dbd 62% 100%);
}

body.home-mode.weather-rain .house-item.owned-furniture.custom-kind-window::after,
body.home-mode.weather-rain .house-item.owned-furniture.custom-kind-big-window::after {
  opacity: 0.86;
  background-image: repeating-linear-gradient(100deg, rgba(43, 116, 181, 0.82) 0 2px, transparent 2px 15px);
  background-size: 42px 42px;
  animation: window-rain-fall 0.45s linear infinite;
}

body.home-mode.weather-snow .house-item.owned-furniture.custom-kind-window,
body.home-mode.weather-snow .house-item.owned-furniture.custom-kind-big-window {
  background:
    radial-gradient(ellipse at 36% 30%, rgba(245, 250, 255, 0.94) 0 20px, transparent 21px),
    linear-gradient(180deg, #bddfff 0 62%, #eef8ff 62% 100%);
}

body.home-mode.weather-snow .house-item.owned-furniture.custom-kind-window::after,
body.home-mode.weather-snow .house-item.owned-furniture.custom-kind-big-window::after {
  opacity: 0.94;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 2px, transparent 3px);
  background-size: 24px 24px;
  animation: window-snow-fall 5.5s linear infinite;
}

body.home-mode .house-item.owned-furniture.custom-kind-door {
  left: calc(50% + 276px);
  bottom: 13vh;
  width: 74px;
  height: 136px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 32px 32px 4px 4px;
  background:
    radial-gradient(circle at 72% 56%, #ffd86a 0 5px, transparent 6px),
    linear-gradient(180deg, #9f6131 0%, #6f3f20 100%);
  border: 6px solid #512b14;
  color: transparent;
}

body.home-mode .house-item.owned-furniture.custom-kind-bed {
  width: 140px;
  height: 48px;
  min-width: 0;
  min-height: 0;
  border-width: 5px;
  border-radius: 16px 16px 6px 6px;
  background:
    linear-gradient(90deg, #8dbdff 0 30%, #ffffff 30% 48%, #72a5ff 48% 100%);
  color: transparent;
}

body.home-mode .house-item.owned-furniture.custom-kind-lamp {
  width: 34px;
  height: 98px;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 18px 18px 4px 4px;
  background:
    radial-gradient(ellipse at 50% 18%, #fff6a6 0 36%, transparent 38%),
    linear-gradient(180deg, transparent 0 42%, #7c5333 42% 100%);
  box-shadow:
    0 0 36px rgba(255, 234, 97, 0.74),
    0 34px 0 -12px #6b4328;
  color: transparent;
}

body.home-mode .house-item.owned-furniture.custom-kind-table {
  width: 88px;
  height: 50px;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 8px 8px 4px 4px;
  background:
    linear-gradient(90deg, #6e3f22 0 9px, transparent 9px calc(100% - 9px), #6e3f22 calc(100% - 9px) 100%),
    linear-gradient(180deg, #8b552f 0 16px, transparent 16px 100%);
  color: transparent;
}

body.home-mode .house-item.owned-furniture.custom-kind-sofa {
  width: 130px;
  height: 58px;
  min-width: 0;
  min-height: 0;
  border-radius: 28px 28px 10px 10px;
  background:
    linear-gradient(180deg, #ff8ca0 0 45%, #e85d75 45% 100%);
  color: transparent;
}

body.home-mode .house-item.owned-furniture.custom-kind-outlet {
  left: calc(50% + 230px);
  bottom: 30vh;
  width: 58px;
  height: 40px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 14px;
  background: #e8edf1;
  border: 4px solid #8f969b;
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.08),
    0 10px 20px rgba(0, 0, 0, 0.16);
  color: transparent;
}

body.home-mode .house-item.owned-furniture.custom-kind-outlet.charging {
  box-shadow:
    inset 0 -5px 0 rgba(0, 0, 0, 0.08),
    0 0 18px rgba(255, 224, 102, 0.86);
}

body.home-mode .house-item.owned-furniture.custom-kind-outlet .outlet-hole {
  top: 12px;
  width: 7px;
  height: 18px;
}

body.home-mode .house-item.owned-furniture.custom-kind-computer {
  left: calc(50% + 168px);
  bottom: 18vh;
  width: 106px;
  height: 136px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
}

body.home-mode .house-item.owned-furniture.custom-kind-computer.mini-food-fly {
  animation: mini-computer-food-fly 1.8s ease-in-out;
}

.born-mini-computer {
  position: fixed;
  z-index: 28;
  width: 106px;
  height: 136px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: transparent;
  box-shadow: none;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  transform: scale(var(--mini-growth, 1));
  transform-origin: center bottom;
}

.born-mini-computer.mini-newborn {
  animation: born-mini-pop 0.9s cubic-bezier(0.22, 1.35, 0.36, 1);
}

.born-mini-computer.dragging {
  cursor: grabbing;
  z-index: 130;
}

.custom-kind-computer.mini-growing {
  animation: mini-grow-pop 0.62s ease-in-out;
}

.born-mini-computer.mini-food-fly {
  animation: mini-computer-food-fly 1.8s ease-in-out;
}

.custom-kind-computer .mini-computer-screen {
  position: absolute;
  left: 50%;
  top: 32px;
  width: 82px;
  height: 72px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: #050505;
  border: 7px solid #c3c7cb;
  display: grid;
  place-items: center;
  text-align: center;
}

.custom-kind-computer .mini-computer-screen::before,
.custom-kind-computer .mini-computer-screen::after {
  content: "M";
  position: absolute;
  bottom: 12px;
  color: #ffffff;
  font: 900 13px/1 Arial, sans-serif;
  animation: mini-cheek-bounce 2.6s ease-in-out infinite;
}

.custom-kind-computer .mini-computer-screen::before {
  left: 12px;
}

.custom-kind-computer .mini-computer-screen::after {
  right: 12px;
}

.custom-kind-computer.mini-chatting .mini-computer-screen::before,
.custom-kind-computer.mini-chatting .mini-computer-screen::after {
  opacity: 0;
}

.mini-computer-chat {
  display: none;
  max-width: 62px;
  color: #ffffff;
  font: 900 14px/1.2 Arial, sans-serif;
  text-shadow: 0 0 7px rgba(255, 255, 255, 0.66);
  z-index: 2;
  word-break: keep-all;
}

.custom-kind-computer.mini-chatting .mini-computer-chat {
  display: block;
  animation: mini-chat-pop 1.4s ease-in-out infinite;
}

.custom-kind-computer.mini-chatting .mini-computer-eye,
.custom-kind-computer.mini-chatting .mini-computer-eye-left,
.custom-kind-computer.mini-chatting .mini-computer-eye-right,
.custom-kind-computer.mini-chatting .mini-computer-mouth {
  opacity: 0;
}

.custom-kind-computer.mini-sleepy .mini-computer-screen::before,
.custom-kind-computer.mini-sleepy .mini-computer-screen::after {
  transform: translateY(1px);
  opacity: 0.72;
}

.custom-kind-computer.mini-sleepy .mini-computer-eye,
.custom-kind-computer.mini-sleepy .mini-computer-eye-left,
.custom-kind-computer.mini-sleepy .mini-computer-eye-right {
  height: 4px;
  border-radius: 999px;
  box-shadow: none;
  animation: none;
  transform: translate(var(--mini-eye-look-x, 0px), var(--mini-eye-look-y, 0px));
}

.custom-kind-computer.mini-sleepy .mini-computer-mouth {
  top: 80px;
  width: 18px;
  height: 10px;
  border-radius: 0 0 999px 999px;
  clip-path: none;
  animation: mini-sleep-breathe 2.2s ease-in-out infinite;
}

.custom-kind-computer .mini-computer-eye,
.custom-kind-computer .mini-computer-eye-left,
.custom-kind-computer .mini-computer-eye-right {
  position: absolute;
  top: 52px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ffffff;
  z-index: 1;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.72);
  animation: mini-eye-life 4.2s ease-in-out infinite;
  transform: translate(var(--mini-eye-look-x, 0px), var(--mini-eye-look-y, 0px));
}

.custom-kind-computer .mini-computer-eye.left,
.custom-kind-computer .mini-computer-eye-left {
  left: 34px;
}

.custom-kind-computer .mini-computer-eye.right,
.custom-kind-computer .mini-computer-eye-right {
  right: 34px;
}

.custom-kind-computer .mini-computer-mouth {
  position: absolute;
  left: 50%;
  top: 76px;
  width: 22px;
  height: 22px;
  transform: translateX(-50%);
  background: #ffffff;
  clip-path: polygon(0 0, 100% 0, 58% 82%, 50% 94%, 42% 82%);
  z-index: 1;
  border-radius: 0 0 12px 12px;
  animation: mini-mouth-talk 2.8s ease-in-out infinite;
}

.custom-kind-computer .mini-computer-stand {
  position: absolute;
  left: 50%;
  top: 104px;
  width: 42px;
  height: 24px;
  transform: translateX(-50%);
  background:
    linear-gradient(180deg, #c3c7cb 0 60%, transparent 60% 100%),
    linear-gradient(90deg, transparent 0 18%, #c3c7cb 18% 82%, transparent 82% 100%);
  clip-path: polygon(36% 0, 64% 0, 78% 100%, 22% 100%);
}

.custom-kind-computer .mini-computer-hat {
  position: absolute;
  left: 50%;
  top: -12px;
  width: 72px;
  height: 36px;
  transform: translateX(-50%);
  border-radius: 40px 40px 0 0;
  background:
    linear-gradient(90deg, #ff1c16 0 33%, #ffd919 33% 66%, #2637ff 66% 100%);
  box-shadow: 0 -10px 0 -7px #ff2020;
  animation: mini-hat-bob 1.4s ease-in-out infinite;
}

.custom-kind-computer .mini-computer-hat-brim {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 78px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 0 0 14px 14px;
  background: #11ff18;
  clip-path: polygon(0 60%, 100% 0, 86% 100%, 12% 100%);
  z-index: 1;
  animation: mini-brim-bob 1.4s ease-in-out infinite;
}

.custom-kind-computer .mini-computer-hat::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 5px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #ff2020;
}

.custom-kind-computer .mini-computer-hat::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -20px;
  width: 62px;
  height: 7px;
  margin-left: -31px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #1d27ff 0 44%, transparent 44% 56%, #1d27ff 56% 100%);
  transform-origin: center;
  animation: mini-blade-spin 0.22s linear infinite;
}

body.home-mode .house-item.owned-furniture.house-bookshelf,
body.home-mode .house-item.owned-furniture.custom-kind-bookshelf {
  left: calc(50% - 348px);
  bottom: 30vh;
  width: 82px;
  height: 116px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(180deg, #ffe7a3 0 12px, #5d8fe8 12px 20px, #e85d75 20px 28px, #8b552f 28px 36px),
    linear-gradient(90deg, #7b4a2a 0 10px, transparent 10px calc(100% - 10px), #7b4a2a calc(100% - 10px) 100%);
  border: 6px solid #8b552f;
  color: transparent;
}

body.home-mode .house-item.owned-furniture.house-rug,
body.home-mode .house-item.owned-furniture.custom-kind-rug {
  left: calc(50% - 84px);
  bottom: 13vh;
  width: 168px;
  height: 62px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at center, rgba(255, 255, 255, 0.28) 0 24%, transparent 25%),
    repeating-radial-gradient(ellipse at center, #ffb56e 0 12px, #e85d75 12px 22px, #5f91ff 22px 32px);
  color: transparent;
}

body.home-mode .house-item.owned-furniture.house-tv,
body.home-mode .house-item.owned-furniture.custom-kind-tv {
  left: calc(50% + 96px);
  bottom: 28vh;
  width: 340px !important;
  height: 238px !important;
  border-radius: 8px;
  background:
    linear-gradient(180deg, #111727 0 74%, #3d455e 74% 100%);
  border: 6px solid #202638;
  color: #8ff0ff;
  text-shadow: 0 0 8px rgba(143, 240, 255, 0.75);
  overflow: visible;
  place-items: stretch;
}

.house-item.owned-furniture.house-tv.tv-fullscreen,
.house-item.owned-furniture.custom-kind-tv.tv-fullscreen {
  position: fixed !important;
  left: 18px !important;
  right: 18px !important;
  top: 18px !important;
  bottom: 18px !important;
  width: auto !important;
  height: auto !important;
  z-index: 220 !important;
  transform: none !important;
}

body.tv-fullscreen-active::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(0, 0, 0, 0.72);
}

.house-item.owned-furniture.house-tv.tv-rain-error,
.house-item.owned-furniture.custom-kind-tv.tv-rain-error {
  filter: grayscale(0.35) contrast(1.25);
  animation: tv-rain-error-shake 0.13s linear infinite;
}

.house-item.owned-furniture.house-tv.tv-rain-error .tv-screen-scene,
.house-item.owned-furniture.custom-kind-tv.tv-rain-error .tv-screen-scene {
  background:
    repeating-linear-gradient(0deg, #101010 0 4px, #dffaff 4px 6px, #101010 6px 10px),
    #050505;
}

.house-item.owned-furniture.house-tv.tv-rain-error .tv-screen-scene::before,
.house-item.owned-furniture.custom-kind-tv.tv-rain-error .tv-screen-scene::before {
  content: "XXX";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #ff5252;
  font-size: 42px;
  font-weight: 900;
  text-shadow: 2px 0 #ffffff;
  animation: code-glitch 0.12s steps(2, end) infinite;
}

body.home-mode .house-item.owned-furniture.house-tv::before,
body.home-mode .house-item.owned-furniture.custom-kind-tv::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 58px;
  height: 28px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #2d3448, #151b2a);
  border-radius: 0 0 8px 8px;
}

body.home-mode .house-item.owned-furniture.house-tv::after,
body.home-mode .house-item.owned-furniture.custom-kind-tv::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -34px;
  width: 118px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #151b2a;
}

.tv-screen-scene {
  position: absolute;
  inset: 8px;
  border-radius: 5px;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 226, 93, 0.9) 0 15px, transparent 16px),
    linear-gradient(180deg, #25d5e9 0 54%, #26df37 54% 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.08);
}

.tv-new-game-caption {
  position: absolute;
  inset: 8px;
  z-index: 30;
  display: none;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 24px 24px 18px;
  border-radius: 5px;
  background: #050505;
  color: #8ff0ff;
  text-align: center;
  box-shadow: inset 0 0 0 3px rgba(143, 240, 255, 0.2);
}

.tv-caption-mode .tv-new-game-caption {
  display: grid;
}

.tv-caption-mode .tv-screen-scene,
.tv-caption-mode .rhythm-box {
  display: none;
}

.tv-caption-close {
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 2px solid rgba(143, 240, 255, 0.72);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font: 900 18px/1 system-ui, sans-serif;
  cursor: pointer;
}

.tv-caption-title {
  color: #ffd35b;
  font-size: 20px;
  font-weight: 900;
}

.tv-caption-text {
  max-width: 250px;
  color: #8ff0ff;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(143, 240, 255, 0.42);
}

.tv-cable-line {
  position: absolute;
  left: calc(100% - 18px);
  top: calc(100% - 18px);
  width: var(--tv-cable-length, 36px);
  height: 5px;
  transform: rotate(var(--tv-cable-angle, 46deg));
  transform-origin: 0 50%;
  border-radius: 999px;
  background: #10151d;
  z-index: 18;
  pointer-events: none;
}

.tv-cable-plug {
  position: absolute;
  right: -16px;
  bottom: -16px;
  width: 22px;
  height: 22px;
  border: 3px solid #10151d;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 7px, #10151d 7px 9px, transparent 9px 13px, #10151d 13px 15px, transparent 15px),
    #ffd35b;
  z-index: 24;
  cursor: grab;
}

.tv-cable-plug:active {
  cursor: grabbing;
}

.tv-cable-detached .tv-cable-plug {
  position: fixed;
  left: var(--tv-plug-left, 0px);
  top: var(--tv-plug-top, 0px);
  right: auto;
  bottom: auto;
}

.tv-cable-to-computer .tv-cable-plug {
  background:
    linear-gradient(90deg, transparent 0 7px, #10151d 7px 9px, transparent 9px 13px, #10151d 13px 15px, transparent 15px),
    #60efff;
}

.tv-cable-swap-ready .tv-cable-plug {
  box-shadow:
    0 0 0 4px rgba(96, 239, 255, 0.28),
    0 0 18px rgba(96, 239, 255, 0.72);
}

.tv-cable-to-outlet .tv-cable-plug {
  background:
    linear-gradient(90deg, transparent 0 7px, #10151d 7px 9px, transparent 9px 13px, #10151d 13px 15px, transparent 15px),
    #6aff91;
}

body.tv-computer-linked .mood-panel {
  background:
    #000000;
}

body.weather-computer-linked .mood-panel {
  background:
    radial-gradient(circle at 88% 18%, rgba(121, 243, 255, 0.18) 0 18px, transparent 19px),
    linear-gradient(180deg, #06131a, #0b2028);
  box-shadow:
    inset 0 0 0 4px rgba(121, 243, 255, 0.18),
    0 0 20px rgba(121, 243, 255, 0.22);
}

body.tv-computer-linked .face-display {
  opacity: 1;
}

body.tv-computer-linked .face-cheeks {
  opacity: 0;
}

body.tv-computer-linked .eye,
body.tv-computer-linked .mouth {
  background: #60efff;
  box-shadow: 0 0 12px rgba(96, 239, 255, 0.64);
}

body.weather-computer-linked .face-display {
  display: none;
}

body.weather-computer-linked .mood-panel.weather-display-mode .screen-subtitle {
  display: block;
  color: #79f3ff;
  max-width: 148px;
  white-space: pre-line;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.18;
  font-weight: 900;
  text-align: left;
  text-shadow: 0 0 10px rgba(121, 243, 255, 0.58);
}

body.tv-computer-linked .tv-screen-scene::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(ellipse at calc(40% + var(--eye-look-x, 0px)) calc(42% + var(--eye-look-y, 0px)), #60efff 0 9px, transparent 10px),
    radial-gradient(ellipse at calc(60% + var(--eye-look-x, 0px)) calc(42% + var(--eye-look-y, 0px)), #60efff 0 9px, transparent 10px),
    radial-gradient(ellipse at 50% 67%, #60efff 0 13px, transparent 14px),
    #000000;
  z-index: 3;
}

body.weather-computer-linked .weather-detector-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background:
    radial-gradient(ellipse at 39% 42%, #79f3ff 0 5px, transparent 6px),
    radial-gradient(ellipse at 61% 42%, #79f3ff 0 5px, transparent 6px),
    radial-gradient(ellipse at 50% 68%, #79f3ff 0 8px, transparent 9px),
    #000000;
}

body.weather-computer-linked .weather-now,
body.weather-computer-linked .weather-future {
  opacity: 0;
}

body.tv-computer-linked .house-item.owned-furniture .rhythm-box {
  opacity: 0.28;
}

.tv-mini-computer,
.tv-mini-robot {
  position: absolute;
  bottom: 26px;
  animation: tv-character-play 0.82s ease-in-out infinite;
}

.tv-mini-computer {
  left: 34px;
  width: 54px;
  height: 42px;
  border: 5px solid #c3c7cb;
  border-radius: 8px;
  background: #050505;
}

.tv-mini-computer::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 16px;
  height: 22px;
  transform: translateX(-50%);
  background: #9ba2a8;
}

.tv-computer-eye,
.tv-robot-eye {
  position: absolute;
  top: 13px;
  width: 7px;
  height: 13px;
  border-radius: 999px;
  background: #60efff;
}

.tv-computer-eye.eye-left,
.tv-robot-eye.eye-left {
  left: 14px;
}

.tv-computer-eye.eye-right,
.tv-robot-eye.eye-right {
  right: 14px;
}

.tv-computer-mouth {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 18px;
  height: 6px;
  transform: translateX(-50%);
  border-bottom: 3px solid #ffffff;
  border-radius: 0 0 16px 16px;
}

.tv-mini-robot {
  left: 104px;
  width: 46px;
  height: 44px;
  border: 5px solid #ffbd28;
  border-radius: 8px;
  background: #050505;
  animation-delay: 0.18s;
}

.tv-mini-robot::before,
.tv-mini-robot::after {
  content: "";
  position: absolute;
  top: -20px;
  width: 4px;
  height: 18px;
  background: #ffd35b;
}

.tv-mini-robot::before {
  left: 6px;
  transform: rotate(-16deg);
}

.tv-mini-robot::after {
  right: 6px;
  transform: rotate(16deg);
}

.tv-robot-body {
  position: absolute;
  left: 50%;
  bottom: -36px;
  width: 22px;
  height: 34px;
  transform: translateX(-50%);
  border-radius: 4px 4px 10px 10px;
  background: #f4b333;
}

.tv-music-note {
  position: absolute;
  top: 34px;
  font-size: 18px;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
  animation: tv-note-float 1.4s ease-in-out infinite;
}

.tv-music-note::before {
  content: "♪";
}

.tv-music-note.note-one {
  left: 164px;
}

.tv-music-note.note-two {
  left: 196px;
  animation-delay: 0.42s;
}

body:not(.rhythm-tv-available) .rhythm-box {
  display: none;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-box {
  position: absolute;
  left: 154px;
  right: 8px;
  top: 8px;
  bottom: 8px;
  width: auto;
  min-width: 0;
  padding: 5px;
  z-index: 4;
  border-width: 2px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transform: none;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-header {
  grid-template-columns: 1fr auto;
  gap: 4px;
  margin-bottom: 5px;
  font-size: 10px;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-header strong {
  display: none;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-header > span {
  font-size: 9px;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-volume {
  grid-template-columns: auto 42px;
  gap: 3px;
  font-size: 9px;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-volume input {
  width: 42px;
}

body.rhythm-tv-available .house-item.owned-furniture .character-tray {
  padding: 3px;
  gap: 2px;
  grid-template-columns: repeat(4, 31px);
}

body.rhythm-tv-available .house-item.owned-furniture .happy-robot-picker {
  width: 31px;
  height: 38px;
}

body.rhythm-tv-available .house-item.owned-furniture .happy-robot-picker .happy-robot-icon {
  --robot-scale: 0.26;
  width: 54px;
  height: 64px;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-stage {
  grid-template-columns: repeat(5, minmax(20px, 1fr));
  gap: 3px;
  margin-top: 4px;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-slot {
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  place-items: center;
}

body.rhythm-tv-available .house-item.owned-furniture .rhythm-slot:not(.occupied)::after {
  top: 3px;
  transform: translateX(-50%) scale(0.48);
  transform-origin: top center;
}

body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot {
  --robot-scale: 0.42;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 86px;
  margin-top: 0;
  align-self: center;
  transform-origin: 50% 50%;
  transform: translate(-50%, -50%) scale(var(--robot-scale, 1)) !important;
}

body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot.gallod-icon {
  --robot-scale: 0.39;
  margin-top: 0;
}

body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot.computer-rhythm-icon {
  width: 74px;
  height: 82px;
  margin-top: 0;
}

body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot.computer-rhythm-icon .computer-rhythm-body {
  transform: translateX(-50%) scale(0.46);
  transform-origin: top center;
}

body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot.computer-rhythm-icon .computer-rhythm-lyric {
  left: 50%;
  top: 12px;
  bottom: auto;
  width: 46px;
  font-size: 8px;
  line-height: 1.18;
  padding: 2px 3px;
  max-height: 24px;
  overflow: hidden;
}

body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot.sun-icon,
body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot.moon-icon {
  width: 108px;
  height: 108px;
  margin-top: 0;
}

body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot.sun-icon .sky-sun-copy,
body.rhythm-tv-available .house-item.owned-furniture .placed-happy-robot.moon-icon .sky-moon-copy {
  transform: translate(-50%, -50%) scale(0.3);
}

body.rhythm-tv-available .house-item.owned-furniture .beat-bounce {
  animation-name: tv-slot-bounce;
}

body.home-mode .house-item.owned-furniture.house-fridge,
body.home-mode .house-item.owned-furniture.custom-kind-fridge {
  left: calc(50% + 280px);
  bottom: 18vh;
  width: 62px;
  height: 126px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, #f4fbff 0 48%, #d8edf9 48% 100%);
  border: 5px solid #88a7b8;
  color: #4d7185;
}

body.home-mode .house-item.owned-furniture.house-plant,
body.home-mode .house-item.owned-furniture.custom-kind-plant {
  left: calc(50% - 160px);
  bottom: 18vh;
  width: 54px;
  height: 82px;
  border: 0;
  border-radius: 50% 50% 18px 18px;
  background:
    radial-gradient(circle at 28% 20%, #56c95b 0 18px, transparent 19px),
    radial-gradient(circle at 62% 16%, #35a946 0 20px, transparent 21px),
    linear-gradient(180deg, transparent 0 48%, #b76b3d 48% 100%);
  color: transparent;
}

body.home-mode .house-item.owned-furniture.house-clock,
body.home-mode .house-item.owned-furniture.custom-kind-clock {
  left: calc(50% + 24px);
  bottom: 36vh;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 47%, #533017 48% 52%, transparent 53%),
    linear-gradient(35deg, transparent 47%, #533017 48% 52%, transparent 53%),
    #ffe9a8;
  border: 6px solid #8b552f;
  color: transparent;
}

body.home-mode .house-item.owned-furniture.house-weather-detector,
body.home-mode .house-item.owned-furniture.custom-kind-weather-detector {
  left: calc(50% - 286px);
  bottom: 33vh;
  width: 118px;
  height: 78px;
  padding: 0;
  border: 5px solid #33404a;
  border-radius: 10px;
  background:
    linear-gradient(180deg, #8fd9ff 0 66%, #5b6874 66% 100%);
  color: #12232b;
  overflow: visible;
  text-shadow: none;
}

.weather-detector-antenna {
  position: absolute;
  left: 50%;
  top: -22px;
  width: 4px;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #33404a;
}

.weather-detector-antenna::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -8px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #ffe07a;
  box-shadow: 0 0 10px rgba(255, 224, 122, 0.7);
}

.weather-detector-screen {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  bottom: 18px;
  display: grid;
  align-content: center;
  gap: 3px;
  padding: 5px;
  border-radius: 6px;
  background: #06131a;
  color: #79f3ff;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  text-align: left;
  box-shadow: inset 0 0 0 2px rgba(121, 243, 255, 0.18);
}

.weather-detector-light {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 34px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, #60efff, #6aff91, #ffd166);
  animation: weather-detector-scan 1.8s ease-in-out infinite;
}

.weather-cable-line {
  position: absolute;
  left: calc(100% - 12px);
  top: calc(100% - 12px);
  width: var(--weather-cable-length, 28px);
  height: 4px;
  transform: rotate(var(--weather-cable-angle, 44deg));
  transform-origin: 0 50%;
  border-radius: 999px;
  background: #26323a;
  z-index: 18;
  pointer-events: none;
}

.weather-cable-plug {
  position: absolute;
  right: -13px;
  bottom: -13px;
  width: 19px;
  height: 19px;
  border: 3px solid #26323a;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 0 6px, #26323a 6px 8px, transparent 8px 11px, #26323a 11px 13px, transparent 13px),
    #79f3ff;
  z-index: 24;
  cursor: grab;
}

.weather-cable-plug:active {
  cursor: grabbing;
}

.weather-cable-detached .weather-cable-plug {
  position: fixed;
  left: var(--weather-plug-left, 0px);
  top: var(--weather-plug-top, 0px);
  right: auto;
  bottom: auto;
}

.weather-cable-to-computer .weather-cable-plug,
.weather-cable-swap-ready .weather-cable-plug {
  box-shadow:
    0 0 0 4px rgba(121, 243, 255, 0.24),
    0 0 18px rgba(121, 243, 255, 0.74);
}

body.home-mode .house-item.owned-furniture.house-toy,
body.home-mode .house-item.owned-furniture.custom-kind-toy {
  left: calc(50% - 24px);
  bottom: 18vh;
  width: 52px;
  height: 52px;
  border-radius: 16px 16px 24px 24px;
  background:
    radial-gradient(circle at 35% 36%, #ffffff 0 4px, transparent 5px),
    radial-gradient(circle at 65% 36%, #ffffff 0 4px, transparent 5px),
    linear-gradient(180deg, #ff82ad 0%, #ffcf5c 100%);
  border: 4px solid #bd4157;
  color: transparent;
}

.trees {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 18vh;
  pointer-events: none;
  z-index: 1;
}

.tree {
  position: absolute;
  width: 72px;
  height: 150px;
}

.tree-small {
  transform: scale(0.76);
}

.tree-large {
  transform: scale(1.26);
}

.tree::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 16px;
  height: 64px;
  transform: translateX(-50%);
  background: #7b4a16;
}

.tree::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 74px;
  height: 92px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #2dac37;
  box-shadow:
    -22px 24px 0 #36bb42,
    22px 26px 0 #24982d,
    0 36px 0 #2daa36;
}

.tree-left {
  left: 4%;
}

.tree-left-mid {
  left: 18%;
}

.tree-mid {
  left: 42%;
}

.tree-right-mid {
  right: 21%;
}

.tree-right {
  right: 4%;
}

body.terror-night .tree-mid::after {
  box-shadow:
    -22px 24px 0 #2d6a33,
    22px 26px 0 #275c2d,
    0 36px 0 #295f30;
  filter: brightness(0.82);
}

body.terror-night .tree-right::before {
  box-shadow:
    inset 0 0 0 2px #4b2710,
    0 -46px 0 -22px #f1e4bc,
    0 -46px 0 -20px #7f1111,
    0 -24px 0 -20px #d8c394;
}

@keyframes float-face {
  0%,
  100% {
    transform: translate(var(--face-peek-x, 0px), var(--face-peek-y, 0px));
  }
  50% {
    transform: translate(var(--face-peek-x, 0px), calc(var(--face-peek-y, 0px) - 4px));
  }
}

@keyframes blink-eye {
  0%,
  44%,
  52%,
  100% {
    transform: scaleY(1);
  }
  48% {
    transform: scaleY(0.12);
  }
}

@keyframes cheek-bounce {
  0%,
  100% {
    transform: translate(var(--face-look-x, 0px), var(--face-look-y, 0px));
  }
  50% {
    transform: translate(var(--face-look-x, 0px), calc(var(--face-look-y, 0px) + 2px));
  }
}

@keyframes rainbow-drip {
  from {
    transform: scaleY(0.96) rotate(-2deg);
  }
  to {
    transform: scaleY(1.04) rotate(2deg);
  }
}

@keyframes rain-fall {
  from {
    background-position: 0 -90px;
  }
  to {
    background-position: -90px 90px;
  }
}

@keyframes window-rain-fall {
  from {
    background-position: 0 -84px;
  }
  to {
    background-position: -28px 84px;
  }
}

@keyframes window-snow-fall {
  from {
    background-position: 0 -72px;
  }
  to {
    background-position: 18px 72px;
  }
}

@keyframes snow-fall {
  from {
    background-position: 0 -92px, 42px -136px, 90px -188px;
  }
  to {
    background-position: 26px 92px, 14px 136px, 122px 188px;
  }
}

@keyframes sun-dry {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
  55% {
    opacity: 0.58;
    transform: translateY(-8px) scale(0.96);
    filter: blur(1px);
  }
  100% {
    opacity: 0;
    transform: translateY(-18px) scale(0.86);
    filter: blur(3px);
  }
}

@keyframes rain-shiver {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(-3px) rotate(-1deg);
  }
  75% {
    transform: translateX(3px) rotate(1deg);
  }
}

@keyframes rain-error-shake {
  0% {
    transform: translate(-7px, 2px) rotate(-4deg);
  }
  25% {
    transform: translate(6px, -3px) rotate(3deg);
  }
  50% {
    transform: translate(-5px, -2px) rotate(4deg);
  }
  75% {
    transform: translate(7px, 3px) rotate(-3deg);
  }
  100% {
    transform: translate(-6px, 1px) rotate(2deg);
  }
}

@keyframes error-flash {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.55;
  }
}

@keyframes code-glitch {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  50% {
    transform: translate(2px, -1px);
    opacity: 0.72;
  }
  100% {
    transform: translate(-1px, 1px);
    opacity: 1;
  }
}

@keyframes tv-rain-error-shake {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(3px, -2px) rotate(1deg);
  }
  50% {
    transform: translate(-3px, 2px) rotate(-1deg);
  }
  75% {
    transform: translate(2px, 2px) rotate(1deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes sleep-z-float {
  0%,
  100% {
    transform: translateY(4px) scale(0.9);
    opacity: 0.38;
  }

  50% {
    transform: translateY(-6px) scale(1.08);
    opacity: 0.86;
  }
}

@keyframes rain-code-sway {
  0%,
  100% {
    transform: translate(var(--shell-offset-x), calc(var(--shell-offset-y) + var(--shell-state-y))) rotate(0deg);
  }
  25% {
    transform: translate(calc(var(--shell-offset-x) - 10px), calc(var(--shell-offset-y) + var(--shell-state-y))) rotate(-5deg);
  }
  50% {
    transform: translate(var(--shell-offset-x), calc(var(--shell-offset-y) + var(--shell-state-y))) rotate(0deg);
  }
  75% {
    transform: translate(calc(var(--shell-offset-x) + 10px), calc(var(--shell-offset-y) + var(--shell-state-y))) rotate(5deg);
  }
}

@keyframes code-screen-color {
  0% {
    background: #d70000;
    box-shadow:
      inset 0 0 34px rgba(255, 255, 255, 0.24),
      inset 0 0 76px rgba(80, 0, 0, 0.62);
  }
  25% {
    background: #009f38;
    box-shadow:
      inset 0 0 34px rgba(255, 255, 255, 0.24),
      inset 0 0 76px rgba(0, 58, 22, 0.64);
  }
  50% {
    background: #0054d8;
    box-shadow:
      inset 0 0 34px rgba(255, 255, 255, 0.24),
      inset 0 0 76px rgba(0, 14, 93, 0.64);
  }
  75%,
  100% {
    background: #7b19c9;
    box-shadow:
      inset 0 0 34px rgba(255, 255, 255, 0.24),
      inset 0 0 76px rgba(45, 0, 79, 0.66);
  }
}

@keyframes eye-sway {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

@keyframes idle-mouth {
  0%,
  100% {
    transform: translate(var(--face-look-x, 0px), var(--face-look-y, 0px)) scale(1);
  }
  50% {
    transform: translate(var(--face-look-x, 0px), calc(var(--face-look-y, 0px) + 2px)) scale(0.96);
  }
}

@keyframes subtitle-pop {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.92;
  }
  50% {
    transform: translateY(-3px);
    opacity: 1;
  }
}

@keyframes celestial-cross {
  0% {
    transform: translate(24px, 42vh) scale(0.86);
  }
  50% {
    transform: translate(calc(50vw - 54px), 88px) scale(1);
  }
  100% {
    transform: translate(calc(100vw + 132px), 42vh) scale(0.86);
  }
}

@keyframes drift-east-west {
  0% {
    transform: translate(-20px, 16vh) scale(var(--cloud-scale));
  }
  50% {
    transform: translate(calc(50vw + 40px), -18px) scale(var(--cloud-scale));
  }
  100% {
    transform: translate(calc(100vw + 260px), 16vh) scale(var(--cloud-scale));
  }
}

@keyframes sun-bob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(3px) rotate(4deg);
  }
}

@keyframes sun-sway {
  0% {
    transform: rotate(0deg);
  }
  20% {
    transform: rotate(-7deg);
  }
  50% {
    transform: rotate(6deg);
  }
  80% {
    transform: rotate(-4deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

@keyframes eye-shift {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-2px);
  }
  75% {
    transform: translateX(2px);
  }
}

@keyframes cloud-look {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-3px);
  }
  75% {
    transform: translateX(3px);
  }
}

@keyframes spin-blade {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes hover-copter {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-2px);
  }
}

@keyframes hat-bump {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  35% {
    transform: translateX(-50%) translateY(-18px);
  }
  100% {
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes basket-sell-pop {
  0%,
  100% {
    transform: scale(1);
  }
  38% {
    transform: scale(1.12) rotate(-2deg);
  }
  70% {
    transform: scale(0.96) rotate(2deg);
  }
}

@keyframes rhythm-slot-pulse {
  0% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
  45% {
    transform: translateY(-3px) scale(1.03);
    filter: brightness(1.14);
  }
  100% {
    transform: translateY(0) scale(1);
    filter: brightness(1);
  }
}

@keyframes tv-character-play {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  45% {
    transform: translateY(-4px) rotate(-2deg);
  }

  70% {
    transform: translateY(1px) rotate(2deg);
  }
}

@keyframes tv-note-float {
  0%,
  100% {
    transform: translateY(8px);
    opacity: 0.35;
  }

  50% {
    transform: translateY(-8px);
    opacity: 1;
  }
}

@keyframes weather-detector-scan {
  0%,
  100% {
    filter: brightness(0.75);
    transform: translateX(-50%) scaleX(0.72);
  }

  50% {
    filter: brightness(1.35);
    transform: translateX(-50%) scaleX(1);
  }
}

@keyframes tv-slot-bounce {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) rotate(0deg) scale(var(--robot-scale, 1));
  }

  45% {
    transform: translate(-50%, -50%) translateY(-3px) rotate(-1deg) scale(var(--robot-scale, 1));
  }

  72% {
    transform: translate(-50%, -50%) translateY(1px) rotate(1deg) scale(var(--robot-scale, 1));
  }
}

@keyframes empty-slot-look {
  0%,
  100% {
    --empty-look-x: var(--empty-idle-look-x, 0px);
    --empty-look-y: var(--empty-idle-look-y, 0px);
  }
  25% {
    --empty-look-x: calc(var(--empty-idle-look-x, 0px) - 2px);
    --empty-look-y: calc(var(--empty-idle-look-y, 0px) + 1px);
  }
  55% {
    --empty-look-x: calc(var(--empty-idle-look-x, 0px) + 3px);
    --empty-look-y: calc(var(--empty-idle-look-y, 0px) - 1px);
  }
  78% {
    --empty-look-x: calc(var(--empty-idle-look-x, 0px) + 1px);
    --empty-look-y: calc(var(--empty-idle-look-y, 0px) + 2px);
  }
}

@keyframes robot-sleep-breathe {
  0%,
  100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1.08);
  }
}

@keyframes happy-robot-bounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(var(--robot-scale, 1));
  }
  45% {
    transform: translateY(-7px) rotate(-2deg) scale(var(--robot-scale, 1));
  }
  72% {
    transform: translateY(1px) rotate(2deg) scale(var(--robot-scale, 1));
  }
}

@keyframes happy-robot-play {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(var(--robot-scale, 1));
  }
  38% {
    transform: translateY(-5px) rotate(-1.5deg) scale(var(--robot-scale, 1));
  }
  62% {
    transform: translateY(1px) rotate(1.5deg) scale(var(--robot-scale, 1));
  }
}

@keyframes happy-robot-mouth-talk {
  0%,
  100% {
    transform: scaleY(1);
    filter: brightness(1);
  }
  50% {
    transform: scaleY(1.45);
    filter: brightness(1.2);
  }
}

@keyframes gallod-mouth-talk {
  0%,
  100% {
    height: 12px;
    transform: translateX(-50%) scaleY(1);
  }
  50% {
    height: 18px;
    transform: translateX(-50%) scaleY(1.05);
  }
}

@keyframes computer-rhythm-mouth-talk {
  0%,
  100% {
    height: 6px;
    border-bottom-width: 3px;
  }

  50% {
    height: 13px;
    border-bottom-width: 5px;
  }
}

@keyframes happy-robot-clean {
  0%,
  100% {
    transform: translateX(0) translateY(0) rotate(0deg) scale(var(--robot-scale, 1));
  }
  50% {
    transform: translateX(-4px) translateY(-2px) rotate(-1deg) scale(var(--robot-scale, 1));
  }
}

@keyframes happy-robot-wipe {
  0%,
  100% {
    transform: rotate(-18deg) translateX(0);
  }
  50% {
    transform: rotate(12deg) translateX(7px);
  }
}

@keyframes happy-robot-hold-umbrella-left {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-1px, -2px);
  }
}

@keyframes happy-robot-hold-umbrella-right {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(1px, -1px);
  }
}

@keyframes happy-robot-tears {
  0% {
    transform: translateY(-2px);
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

@keyframes air-kiss-heart {
  0% {
    opacity: 0;
    transform: translate(0, 0) scale(0.6);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-24px, -22px) scale(1.35);
  }
}

@keyframes mini-eye-life {
  0%,
  18%,
  24%,
  100% {
    transform: translate(var(--mini-eye-look-x, 0px), var(--mini-eye-look-y, 0px)) scaleY(1);
  }
  21% {
    transform: translate(var(--mini-eye-look-x, 0px), var(--mini-eye-look-y, 0px)) scaleY(0.14);
  }
  46% {
    transform: translate(calc(var(--mini-eye-look-x, 0px) - 3px), calc(var(--mini-eye-look-y, 0px) + 1px)) scaleY(1);
  }
  72% {
    transform: translate(calc(var(--mini-eye-look-x, 0px) + 3px), calc(var(--mini-eye-look-y, 0px) - 1px)) scaleY(1);
  }
}

@keyframes mini-mouth-talk {
  0%,
  100% {
    transform: translateX(-50%) scaleY(1);
  }
  50% {
    transform: translateX(-50%) scaleY(0.72);
  }
}

@keyframes mini-cheek-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(2px);
  }
}

@keyframes mini-chat-pop {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

@keyframes mini-computer-food-fly {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  30% {
    transform: translateY(-72px) rotate(-5deg);
  }
  62% {
    transform: translateY(-92px) rotate(5deg);
  }
}

@keyframes born-mini-pop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.28) rotate(-8deg);
  }

  58% {
    opacity: 1;
    transform: translateY(-14px) scale(1.12) rotate(5deg);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes mini-grow-pop {
  0%,
  100% {
    transform: scale(var(--mini-growth, 1));
  }

  50% {
    transform: scale(calc(var(--mini-growth, 1) + 0.12));
  }
}

@keyframes mini-sleep-breathe {
  0%,
  100% {
    transform: translateX(-50%) scaleX(1);
  }
  50% {
    transform: translateX(-50%) scaleX(1.18);
  }
}

@keyframes mini-hat-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

@keyframes mini-brim-bob {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
  }
}

@keyframes mini-blade-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes terror-flicker {
  0%,
  100% {
    opacity: 1;
  }
  30% {
    opacity: 0.45;
  }
  60% {
    opacity: 0.95;
  }
}

@keyframes terror-mask-shift {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  50% {
    transform: translate(1px, -1px) rotate(-1deg);
  }
}

@keyframes minecraft-player-jump {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  45% {
    transform: translate(-50%, -95%);
  }
}

:root {
  --minecraft-texture-oak-planks: url("./assets/minecraft-blocks/oak-planks.png");
  --minecraft-texture-spruce-planks: url("./assets/minecraft-blocks/spruce-planks.png");
  --minecraft-texture-birch-planks: url("./assets/minecraft-blocks/birch-planks.png");
  --minecraft-texture-jungle-planks: url("./assets/minecraft-blocks/jungle-planks.png");
  --minecraft-texture-acacia-planks: url("./assets/minecraft-blocks/acacia-planks.png");
  --minecraft-texture-stone-brick: url("./assets/minecraft-blocks/stone-brick.png");
  --minecraft-texture-bricks: url("./assets/minecraft-blocks/bricks.png");
  --minecraft-texture-quartz-block: url("./assets/minecraft-blocks/quartz-block.png");
  --minecraft-texture-sandstone: url("./assets/minecraft-blocks/sandstone.png");
  --minecraft-texture-red-sandstone: url("./assets/minecraft-blocks/red-sandstone.png");
  --minecraft-texture-prismarine: url("./assets/minecraft-blocks/prismarine.png");
  --minecraft-texture-end-stone: url("./assets/minecraft-blocks/end-stone.png");
  --minecraft-texture-purpur-block: url("./assets/minecraft-blocks/purpur-block.png");
  --minecraft-texture-white-concrete: url("./assets/minecraft-blocks/white-concrete.png");
  --minecraft-texture-white-wool: url("./assets/minecraft-blocks/white-wool.png");
  --minecraft-texture-bookshelf: url("./assets/minecraft-blocks/bookshelf.png");
}

.minecraft-block,
.minecraft-cube,
.minecraft-cube .cube-top,
.minecraft-cube .cube-left,
.minecraft-cube .cube-right {
  background-size: cover !important;
  background-position: center !important;
  image-rendering: pixelated;
}

.minecraft-grass,
.minecraft-cube.minecraft-grass,
.minecraft-cube.minecraft-grass .cube-top,
.minecraft-cube.minecraft-grass .cube-left,
.minecraft-cube.minecraft-grass .cube-right {
  background-image: var(--minecraft-texture-grass) !important;
}

.minecraft-dirt,
.minecraft-cube.minecraft-dirt,
.minecraft-cube.minecraft-dirt .cube-top,
.minecraft-cube.minecraft-dirt .cube-left,
.minecraft-cube.minecraft-dirt .cube-right {
  background-image: var(--minecraft-texture-dirt) !important;
}

.minecraft-stone,
.minecraft-cube.minecraft-stone,
.minecraft-cube.minecraft-stone .cube-top,
.minecraft-cube.minecraft-stone .cube-left,
.minecraft-cube.minecraft-stone .cube-right,
.minecraft-cube.minecraft-end_portal_frame,
.minecraft-cube.minecraft-end_portal_frame .cube-top,
.minecraft-cube.minecraft-end_portal_frame .cube-left,
.minecraft-cube.minecraft-end_portal_frame .cube-right,
.minecraft-cube.minecraft-end_portal_frame_eye,
.minecraft-cube.minecraft-end_portal_frame_eye .cube-top,
.minecraft-cube.minecraft-end_portal_frame_eye .cube-left,
.minecraft-cube.minecraft-end_portal_frame_eye .cube-right {
  background-image: var(--minecraft-texture-stone-brick) !important;
}

.minecraft-wood,
.minecraft-cube.minecraft-wood,
.minecraft-cube.minecraft-wood .cube-top,
.minecraft-cube.minecraft-wood .cube-left,
.minecraft-cube.minecraft-wood .cube-right,
.minecraft-cube.minecraft-crafting_table,
.minecraft-cube.minecraft-crafting_table .cube-top,
.minecraft-cube.minecraft-crafting_table .cube-left,
.minecraft-cube.minecraft-crafting_table .cube-right {
  background-image: var(--minecraft-texture-oak-planks) !important;
}

.minecraft-cube.minecraft-wood::after {
  display: none;
}

.minecraft-cube.minecraft-sky_wood,
.minecraft-cube.minecraft-sky_wood .cube-top,
.minecraft-cube.minecraft-sky_wood .cube-left,
.minecraft-cube.minecraft-sky_wood .cube-right {
  background-image: var(--minecraft-texture-spruce-planks) !important;
}

.minecraft-cube.minecraft-bed,
.minecraft-cube.minecraft-bed .cube-top,
.minecraft-cube.minecraft-bed .cube-left,
.minecraft-cube.minecraft-bed .cube-right {
  background-image: var(--minecraft-texture-white-wool) !important;
}

.minecraft-cube.minecraft-nether_brick,
.minecraft-cube.minecraft-nether_brick .cube-top,
.minecraft-cube.minecraft-nether_brick .cube-left,
.minecraft-cube.minecraft-nether_brick .cube-right {
  background-image: var(--minecraft-texture-bricks) !important;
}

.minecraft-cube.minecraft-netherrack,
.minecraft-cube.minecraft-netherrack .cube-top,
.minecraft-cube.minecraft-netherrack .cube-left,
.minecraft-cube.minecraft-netherrack .cube-right {
  background-image: var(--minecraft-texture-red-sandstone) !important;
}

.minecraft-cube.minecraft-glowstone,
.minecraft-cube.minecraft-glowstone .cube-top,
.minecraft-cube.minecraft-glowstone .cube-left,
.minecraft-cube.minecraft-glowstone .cube-right {
  background-image: var(--minecraft-texture-acacia-planks) !important;
}

.minecraft-cube.minecraft-end_stone,
.minecraft-cube.minecraft-end_stone .cube-top,
.minecraft-cube.minecraft-end_stone .cube-left,
.minecraft-cube.minecraft-end_stone .cube-right {
  background-image: var(--minecraft-texture-end-stone) !important;
}

.minecraft-cube.minecraft-end_stone.minecraft-end-edge,
.minecraft-cube.minecraft-end_stone.minecraft-end-edge .cube-top,
.minecraft-cube.minecraft-end_stone.minecraft-end-edge .cube-left,
.minecraft-cube.minecraft-end_stone.minecraft-end-edge .cube-right {
  background-image: var(--minecraft-texture-purpur-block) !important;
}

.minecraft-cube.minecraft-end_chest,
.minecraft-cube.minecraft-end_chest .cube-top,
.minecraft-cube.minecraft-end_chest .cube-left,
.minecraft-cube.minecraft-end_chest .cube-right {
  background-image: var(--minecraft-texture-bookshelf) !important;
}

.minecraft-cube.minecraft-warped_nylium,
.minecraft-cube.minecraft-warped_nylium .cube-top,
.minecraft-cube.minecraft-warped_nylium .cube-left,
.minecraft-cube.minecraft-warped_nylium .cube-right,
.minecraft-cube.minecraft-sky_grass,
.minecraft-cube.minecraft-sky_grass .cube-top,
.minecraft-cube.minecraft-sky_grass .cube-left,
.minecraft-cube.minecraft-sky_grass .cube-right {
  background-image: var(--minecraft-texture-prismarine) !important;
}

.minecraft-cube.minecraft-warped_stem,
.minecraft-cube.minecraft-warped_stem .cube-top,
.minecraft-cube.minecraft-warped_stem .cube-left,
.minecraft-cube.minecraft-warped_stem .cube-right {
  background-image: var(--minecraft-texture-birch-planks) !important;
}

.minecraft-cube.minecraft-warped_leaves,
.minecraft-cube.minecraft-warped_leaves .cube-top,
.minecraft-cube.minecraft-warped_leaves .cube-left,
.minecraft-cube.minecraft-warped_leaves .cube-right {
  background-image: var(--minecraft-texture-jungle-planks) !important;
}

.minecraft-cube.minecraft-meteor,
.minecraft-cube.minecraft-meteor .cube-top,
.minecraft-cube.minecraft-meteor .cube-left,
.minecraft-cube.minecraft-meteor .cube-right {
  background-image: var(--minecraft-texture-diorite) !important;
}

.minecraft-cube.minecraft-coal_ore,
.minecraft-cube.minecraft-coal_ore .cube-top,
.minecraft-cube.minecraft-coal_ore .cube-left,
.minecraft-cube.minecraft-coal_ore .cube-right,
.minecraft-cube.minecraft-bedrock_ore,
.minecraft-cube.minecraft-bedrock_ore .cube-top,
.minecraft-cube.minecraft-bedrock_ore .cube-left,
.minecraft-cube.minecraft-bedrock_ore .cube-right {
  background-image: var(--minecraft-texture-bedrock) !important;
}

.minecraft-cube.minecraft-iron_ore,
.minecraft-cube.minecraft-iron_ore .cube-top,
.minecraft-cube.minecraft-iron_ore .cube-left,
.minecraft-cube.minecraft-iron_ore .cube-right {
  background-image: var(--minecraft-texture-cobblestone) !important;
}

.minecraft-cube.minecraft-gold_ore,
.minecraft-cube.minecraft-gold_ore .cube-top,
.minecraft-cube.minecraft-gold_ore .cube-left,
.minecraft-cube.minecraft-gold_ore .cube-right,
.minecraft-cube.minecraft-nether_gold_ore,
.minecraft-cube.minecraft-nether_gold_ore .cube-top,
.minecraft-cube.minecraft-nether_gold_ore .cube-left,
.minecraft-cube.minecraft-nether_gold_ore .cube-right {
  background-image: var(--minecraft-texture-gold-ore) !important;
}

.minecraft-cube.minecraft-diamond_ore,
.minecraft-cube.minecraft-diamond_ore .cube-top,
.minecraft-cube.minecraft-diamond_ore .cube-left,
.minecraft-cube.minecraft-diamond_ore .cube-right {
  background-image: var(--minecraft-texture-blue-ice) !important;
}

:root {
  --minecraft-mob-zombie: url("./assets/minecraft-mobs/zombie.png");
  --minecraft-mob-skeleton: url("./assets/minecraft-mobs/skeleton.png");
  --minecraft-mob-creeper: url("./assets/minecraft-mobs/creeper.png");
  --minecraft-mob-spider: url("./assets/minecraft-mobs/spider.png");
  --minecraft-mob-enderman: url("./assets/minecraft-mobs/enderman.png");
  --minecraft-mob-slime: url("./assets/minecraft-mobs/slime.png");
  --minecraft-mob-magma-cube: url("./assets/minecraft-mobs/magma-cube.png");
  --minecraft-mob-witch: url("./assets/minecraft-mobs/witch.png");
  --minecraft-mob-villager: url("./assets/minecraft-mobs/villager.png");
  --minecraft-mob-pig: url("./assets/minecraft-mobs/pig.png");
  --minecraft-mob-cow: url("./assets/minecraft-mobs/cow.png");
  --minecraft-mob-sheep: url("./assets/minecraft-mobs/sheep.png");
  --minecraft-mob-chicken: url("./assets/minecraft-mobs/chicken.png");
  --minecraft-mob-horse: url("./assets/minecraft-mobs/horse.png");
  --minecraft-mob-wolf: url("./assets/minecraft-mobs/wolf.png");
  --minecraft-mob-cat: url("./assets/minecraft-mobs/cat.png");
  --minecraft-mob-parrot: url("./assets/minecraft-mobs/parrot.png");
  --minecraft-mob-bat: url("./assets/minecraft-mobs/bat.png");
  --minecraft-mob-turtle: url("./assets/minecraft-mobs/turtle.png");
}

.mine-grid {
  position: relative;
}

.minecraft-zombie,
.minecraft-skeleton,
.minecraft-animal,
.minecraft-villager,
.minecraft-piglin,
.minecraft-enderman,
.minecraft-bat {
  background-color: transparent !important;
  background-repeat: no-repeat !important;
  background-position: center bottom !important;
  background-size: contain !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  font-size: 0 !important;
  image-rendering: pixelated;
}

.minecraft-zombie::before,
.minecraft-zombie::after,
.minecraft-villager::before,
.minecraft-villager::after,
.minecraft-piglin::before,
.minecraft-enderman::before,
.minecraft-enderman::after,
.minecraft-animal::before,
.minecraft-animal::after {
  display: none !important;
}

.minecraft-zombie {
  width: min(7vw, 58px);
  height: min(9vw, 78px);
  background-image: var(--minecraft-mob-zombie) !important;
}

.minecraft-skeleton {
  width: min(7vw, 62px);
  height: min(9vw, 78px);
  background-image: var(--minecraft-mob-skeleton) !important;
}

.minecraft-enderman {
  width: min(7vw, 60px);
  height: min(10vw, 86px);
  background-image: var(--minecraft-mob-enderman) !important;
}

.minecraft-villager,
.minecraft-villager.sleeping {
  width: min(7vw, 58px);
  height: min(9vw, 76px);
  transform: translate(-50%, -70%) !important;
  background-image: var(--minecraft-mob-villager) !important;
}

.minecraft-piglin {
  width: min(7vw, 58px);
  height: min(9vw, 76px);
  background-image: var(--minecraft-mob-villager) !important;
}

.minecraft-animal {
  width: min(8vw, 70px);
  height: min(7vw, 62px);
}

.minecraft-animal-sheep {
  background-image: var(--minecraft-mob-sheep) !important;
}

.minecraft-animal-cow {
  background-image: var(--minecraft-mob-cow) !important;
}

.minecraft-animal-pig {
  background-image: var(--minecraft-mob-pig) !important;
}

.minecraft-animal-chicken {
  width: min(6vw, 52px);
  height: min(7vw, 62px);
  background-image: var(--minecraft-mob-chicken) !important;
}

.minecraft-animal-horse {
  width: min(10vw, 86px);
  height: min(8vw, 68px);
  background-image: var(--minecraft-mob-horse) !important;
}

.minecraft-animal-wolf {
  width: min(9vw, 82px);
  height: min(7vw, 62px);
  background-image: var(--minecraft-mob-wolf) !important;
}

.minecraft-animal-cat {
  width: min(8vw, 70px);
  height: min(8vw, 70px);
  background-image: var(--minecraft-mob-cat) !important;
}

.minecraft-animal-parrot {
  width: min(6vw, 54px);
  height: min(8vw, 74px);
  background-image: var(--minecraft-mob-parrot) !important;
}

.minecraft-animal-turtle {
  width: min(9vw, 78px);
  height: min(6vw, 54px);
  background-image: var(--minecraft-mob-turtle) !important;
}

.minecraft-creeper {
  background-image: var(--minecraft-mob-creeper) !important;
}

.minecraft-spider {
  background-image: var(--minecraft-mob-spider) !important;
}

.minecraft-slime {
  background-image: var(--minecraft-mob-slime) !important;
}

.minecraft-magma-cube {
  background-image: var(--minecraft-mob-magma-cube) !important;
}

.minecraft-witch {
  background-image: var(--minecraft-mob-witch) !important;
}

.minecraft-bat {
  position: absolute;
  left: 8%;
  top: 10%;
  z-index: 8;
  width: 76px;
  height: 52px;
  pointer-events: none;
  background-image: var(--minecraft-mob-bat) !important;
  animation: minecraft-bat-fly 5.4s ease-in-out infinite;
}

@keyframes minecraft-bat-fly {
  0% {
    transform: translate(0, 0) scaleX(1);
  }
  25% {
    transform: translate(130px, 18px) scaleX(1);
  }
  50% {
    transform: translate(260px, -2px) scaleX(-1);
  }
  75% {
    transform: translate(130px, 26px) scaleX(-1);
  }
  100% {
    transform: translate(0, 0) scaleX(1);
  }
}

:root {
  --minecraft-texture-oak-log: url("./assets/minecraft-blocks/oak-log.png");
  --minecraft-texture-nether-pumpkin: url("./assets/minecraft-blocks/nether-pumpkin.png");
  --minecraft-texture-nether-watermelon: url("./assets/minecraft-blocks/nether-watermelon.png");
}

.minecraft-wood,
.minecraft-cube.minecraft-wood,
.minecraft-cube.minecraft-wood .cube-top,
.minecraft-cube.minecraft-wood .cube-left,
.minecraft-cube.minecraft-wood .cube-right {
  background-image: var(--minecraft-texture-oak-log) !important;
}

.minecraft-cube.minecraft-nether_pumpkin,
.minecraft-cube.minecraft-nether_pumpkin .cube-top,
.minecraft-cube.minecraft-nether_pumpkin .cube-left,
.minecraft-cube.minecraft-nether_pumpkin .cube-right {
  background-image: var(--minecraft-texture-nether-pumpkin) !important;
  background-size: cover !important;
  background-position: center !important;
  image-rendering: pixelated;
}

.minecraft-cube.minecraft-nether_watermelon,
.minecraft-cube.minecraft-nether_watermelon .cube-top,
.minecraft-cube.minecraft-nether_watermelon .cube-left,
.minecraft-cube.minecraft-nether_watermelon .cube-right {
  background-image: var(--minecraft-texture-nether-watermelon) !important;
  background-size: cover !important;
  background-position: center !important;
  image-rendering: pixelated;
}

.minecraft-side-world {
  overflow: hidden;
  border-color: #29415c;
  background: linear-gradient(180deg, #8fc8ec 0 65%, #6a4428 65% 100%) !important;
  perspective: none;
}

.minecraft-side-world.surface-night,
.minecraft-side-world:has(.minecraft-side-sky.night) {
  background: linear-gradient(180deg, #12243d 0 65%, #322817 65% 100%) !important;
}

.minecraft-side-nether {
  border-color: #5a1818;
  background: linear-gradient(180deg, #44101b 0 58%, #792719 58% 100%) !important;
}

.minecraft-side-end {
  border-color: #252036;
  background: linear-gradient(180deg, #161326 0 58%, #d8d09b 58% 100%) !important;
}

.minecraft-side-sky-dimension {
  border-color: #4b75a0;
  background: linear-gradient(180deg, #a9dcff 0 65%, #dcefff 65% 100%) !important;
}

.minecraft-side-cave {
  border-color: #2a2a2a;
  background: url("./assets/minecraft-backgrounds/cave.png") center / cover no-repeat !important;
}

.minecraft-side-cave::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.05) 48%, rgba(0, 0, 0, 0.22));
}

.minecraft-side-sky {
  position: absolute;
  inset: 0 0 34% 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, #8ec8ed, #b7dcf0);
}

.minecraft-side-nether .minecraft-side-sky {
  background:
    linear-gradient(180deg, rgba(64, 12, 20, 0.84), rgba(102, 28, 15, 0.76)),
    radial-gradient(circle at 18% 22%, rgba(255, 174, 66, 0.42), transparent 18%);
}

.minecraft-side-end .minecraft-side-sky {
  background:
    radial-gradient(circle at 76% 22%, rgba(171, 128, 255, 0.28), transparent 15%),
    linear-gradient(180deg, #12101f, #252036);
}

.minecraft-side-sky-dimension .minecraft-side-sky {
  background: linear-gradient(180deg, #9edcff, #d8f1ff);
}

.minecraft-side-cave .minecraft-side-sky,
.minecraft-side-cave .minecraft-side-tree,
.minecraft-side-nether .minecraft-side-tree,
.minecraft-side-end .minecraft-side-tree {
  display: none;
}

.minecraft-side-sun {
  position: absolute;
  left: var(--sky-x, 6%);
  top: var(--sky-y, 12%);
  width: min(10vw, 92px);
  height: min(10vw, 92px);
  transform: translate(-50%, -50%);
  background: #ffd91a;
  box-shadow: 0 0 28px rgba(255, 230, 64, 0.72);
  animation:
    minecraft-side-orbit var(--sky-duration, 120s) linear infinite,
    minecraft-side-sun-glow 3s ease-in-out infinite;
  animation-delay: var(--sky-delay, 0s), 0s;
  transition: left 1s linear, top 1s linear;
}

.minecraft-side-moon {
  position: absolute;
  left: var(--sky-x, 88%);
  top: var(--sky-y, 16%);
  display: none;
  width: min(9vw, 82px);
  height: min(9vw, 82px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 62% 34%, #12243d 0 24%, transparent 25%),
    #e9efff;
  box-shadow: 0 0 22px rgba(213, 225, 255, 0.65);
  animation: minecraft-side-orbit var(--sky-duration, 120s) linear infinite;
  animation-delay: var(--sky-delay, 0s);
  transition: left 1s linear, top 1s linear;
}

.minecraft-side-sky.night {
  background: linear-gradient(180deg, #12243d, #263b59);
}

.minecraft-side-sky.night .minecraft-side-sun {
  display: none;
}

.minecraft-side-sky.night .minecraft-side-moon {
  display: block;
}

.minecraft-side-clouds,
.minecraft-side-cloud {
  position: absolute;
  inset: 0;
}

.minecraft-side-cloud {
  width: 120px;
  height: 42px;
  background:
    linear-gradient(90deg, #ffffff 0 44%, transparent 44% 52%, #ffffff 52% 100%),
    linear-gradient(90deg, transparent 0 28%, #ffffff 28% 72%, transparent 72% 100%);
  background-size: 100% 22px, 100% 20px;
  background-position: 0 0, 0 22px;
  background-repeat: no-repeat;
  filter: drop-shadow(0 12px 0 rgba(176, 215, 224, 0.38));
  animation: minecraft-side-cloud-drift 18s linear infinite;
  animation-delay: var(--cloud-delay, 0ms);
}

.minecraft-side-cloud-1 {
  top: 12%;
  left: 28%;
  width: 140px;
  animation-duration: 22s;
}

.minecraft-side-cloud-2 {
  top: 25%;
  left: 42%;
  width: 110px;
  animation-duration: 17s;
  animation-delay: -7s;
}

.minecraft-side-cloud-3 {
  top: 16%;
  left: 74%;
  width: 170px;
  animation-duration: 25s;
  animation-delay: -13s;
}

.minecraft-side-cloud-4 {
  top: 34%;
  left: 18%;
  width: 90px;
  animation-duration: 16s;
  animation-delay: -5s;
}

.minecraft-side-cloud-5 {
  top: 33%;
  left: 50%;
  width: 120px;
  animation-duration: 20s;
  animation-delay: -11s;
}

.minecraft-side-tree {
  position: absolute;
  left: var(--tree-left);
  bottom: 34%;
  z-index: 8;
  width: min(15vw, 128px);
  height: min(25vw, 220px);
  transform: translateX(-50%);
  pointer-events: none;
}

.minecraft-side-tree-trunk-block {
  position: absolute;
  left: 42%;
  width: 24%;
  height: 19.5%;
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: crosshair;
  pointer-events: auto;
  background-color: transparent;
  background-image: var(--minecraft-texture-oak-log);
  background-size: cover;
  image-rendering: pixelated;
}

.minecraft-side-tree-trunk-block.trunk-1 {
  bottom: 0;
}

.minecraft-side-tree-trunk-block.trunk-2 {
  bottom: 19.5%;
}

.minecraft-side-tree-trunk-block.trunk-3 {
  bottom: 39%;
}

.minecraft-side-tree-trunk {
  position: absolute;
  left: 42%;
  bottom: 0;
  width: 24%;
  height: 58%;
  background-image: var(--minecraft-texture-oak-log);
  background-size: cover;
  image-rendering: pixelated;
}

.minecraft-side-tree-leaves {
  position: absolute;
  background-image: var(--minecraft-texture-mossy-dirt);
  background-size: cover;
  image-rendering: pixelated;
  box-shadow: inset -18px -18px 0 rgba(26, 83, 18, 0.28);
}

.minecraft-side-tree-leaves.leaf-a {
  left: 10%;
  top: 18%;
  width: 80%;
  height: 34%;
}

.minecraft-side-tree-leaves.leaf-b {
  left: 24%;
  top: 4%;
  width: 52%;
  height: 36%;
}

.minecraft-side-tree-leaves.leaf-c {
  left: 0;
  top: 34%;
  width: 48%;
  height: 36%;
}

.minecraft-side-tree-leaves.leaf-d {
  right: 0;
  top: 34%;
  width: 48%;
  height: 36%;
}

.minecraft-side-block {
  position: absolute;
  left: var(--side-left);
  top: calc(66% + var(--side-row) * 8.5%);
  z-index: 10;
  width: 5.5556%;
  height: 8.5%;
  padding: 0;
  border: 0;
  border-radius: 0;
  cursor: crosshair;
  background-color: transparent;
  background-repeat: repeat !important;
  background-size: cover !important;
  background-position: center !important;
  image-rendering: pixelated;
}

.minecraft-side-block .cube-top,
.minecraft-side-block .cube-left,
.minecraft-side-block .cube-right {
  display: none;
}

.minecraft-side-air {
  background-image: none !important;
}

.minecraft-side-block.minecraft-grass {
  background-image: var(--minecraft-texture-grass) !important;
}

.minecraft-side-block.minecraft-dirt {
  background-image: var(--minecraft-texture-dirt) !important;
}

.minecraft-side-block.minecraft-stone {
  background-image: var(--minecraft-texture-cobblestone) !important;
}

.minecraft-side-block.minecraft-sand {
  background-image: var(--minecraft-texture-sand) !important;
}

.minecraft-side-block.minecraft-cactus {
  background-image:
    linear-gradient(90deg, rgba(20, 104, 38, 0.9) 0 12%, transparent 12% 88%, rgba(20, 104, 38, 0.9) 88% 100%),
    linear-gradient(180deg, #4fd25a 0 100%) !important;
}

.minecraft-side-block.minecraft-wood {
  background-image: var(--minecraft-texture-oak-log) !important;
}

.minecraft-side-block.minecraft-leaves {
  background-image: var(--minecraft-texture-mossy-dirt) !important;
}

.minecraft-side-block.minecraft-water {
  background-image: var(--minecraft-texture-blue-ice) !important;
}

.minecraft-side-block.minecraft-lava {
  background-image: var(--minecraft-texture-red-sand) !important;
}

.minecraft-side-block.minecraft-bed {
  background-image: var(--minecraft-texture-white-wool) !important;
}

.minecraft-side-block.minecraft-crafting_table {
  background-image: var(--minecraft-texture-oak-planks) !important;
}

.minecraft-side-block.minecraft-torch {
  background-image: var(--minecraft-tool-torch) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
}

.minecraft-side-block.minecraft-netherrack {
  background-image: var(--minecraft-texture-red-sand) !important;
}

.minecraft-side-block.minecraft-nether_brick,
.minecraft-side-block.minecraft-stone_brick,
.minecraft-side-block.minecraft-stone_bricks {
  background-image: var(--minecraft-texture-stone-bricks) !important;
}

.minecraft-side-block.minecraft-nether_gold_ore,
.minecraft-side-block.minecraft-gold_ore {
  background-image: var(--minecraft-texture-gold-ore) !important;
}

.minecraft-side-block.minecraft-end_stone {
  background-image: var(--minecraft-texture-end-stone) !important;
}

.minecraft-side-block.minecraft-obsidian,
.minecraft-side-block.minecraft-obsidian_pillar {
  background-image: var(--minecraft-texture-obsidian) !important;
}

.minecraft-side-block.minecraft-sky_grass {
  background-image: var(--minecraft-texture-grass) !important;
}

.minecraft-side-block.minecraft-sky_wood,
.minecraft-side-block.minecraft-warped_stem {
  background-image: var(--minecraft-texture-oak-log) !important;
}

.minecraft-side-block.minecraft-sky_leaves,
.minecraft-side-block.minecraft-warped_leaves,
.minecraft-side-block.minecraft-warped_nylium {
  background-image: var(--minecraft-texture-mossy-dirt) !important;
}

.minecraft-side-block.minecraft-glowstone {
  background-image: var(--minecraft-texture-sand) !important;
}

.minecraft-side-block.minecraft-nether_pumpkin {
  background-image: var(--minecraft-texture-nether-pumpkin) !important;
}

.minecraft-side-block.minecraft-nether_watermelon {
  background-image: var(--minecraft-texture-nether-watermelon) !important;
}

.minecraft-side-block.minecraft-coal_ore,
.minecraft-side-block.minecraft-iron_ore,
.minecraft-side-block.minecraft-diamond_ore,
.minecraft-side-block.minecraft-bedrock_ore {
  background-image: var(--minecraft-texture-cobblestone) !important;
}

.minecraft-side-village,
.minecraft-side-animal,
.minecraft-side-villager,
.minecraft-side-hostile {
  position: absolute;
  left: var(--side-left);
  bottom: calc(34% + var(--side-depth-lift, 0%));
  z-index: var(--side-z, 24);
  transform: translateX(-50%);
  border: 0;
  border-radius: 0;
  padding: 0;
  cursor: pointer;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  image-rendering: pixelated;
}

.minecraft-side-village {
  width: min(13vw, 116px);
  height: min(11vw, 98px);
}

.minecraft-side-village-house,
.minecraft-side-village-bed {
  border: 4px solid #1f1711;
  background-image: var(--minecraft-texture-oak-planks);
  background-size: 48px 48px;
  filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, 0.24));
}

.minecraft-side-village-house::before,
.minecraft-side-village-bed::before {
  content: "";
  position: absolute;
  left: -10%;
  right: -10%;
  top: -28%;
  height: 34%;
  border: 4px solid #1f1711;
  background-image: var(--minecraft-texture-oak-log);
  background-size: 48px 48px;
}

.minecraft-side-village-bed::after {
  content: "";
  position: absolute;
  left: 28%;
  bottom: 10%;
  width: 44%;
  height: 22%;
  background: linear-gradient(90deg, #f4ead4 0 30%, #c83d42 30% 100%);
  border: 3px solid #1f1711;
}

.minecraft-side-village-door {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 24%;
  height: 46%;
  transform: translateX(-50%);
  border: 3px solid #1f1711;
  background-image: var(--minecraft-texture-oak-log);
  background-size: cover;
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, 0.18);
}

.minecraft-side-village-door::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 48%;
  width: 5px;
  height: 5px;
  background: #f5d25c;
}

.minecraft-side-village-farm {
  width: min(10vw, 92px);
  height: min(6vw, 54px);
  bottom: calc(33% + var(--side-depth-lift, 0%));
  background:
    repeating-linear-gradient(90deg, rgba(95, 58, 4, 0.55) 0 7px, transparent 7px 13px),
    linear-gradient(180deg, #ffd35b 0 48%, #7a4c26 48% 100%);
  border: 3px solid #5f3a04;
  box-shadow: 4px 5px 0 rgba(0, 0, 0, 0.24);
}

.minecraft-side-village-torch {
  width: min(5vw, 42px);
  height: min(8vw, 72px);
  background-image: var(--minecraft-tool-torch);
  filter: drop-shadow(0 0 10px rgba(255, 204, 66, 0.9));
}

.minecraft-side-animal {
  width: min(8vw, 76px);
  height: min(7vw, 62px);
  animation: minecraft-side-animal-walk 0.9s ease-in-out infinite;
  animation-delay: var(--animal-run-delay, 0ms);
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.22));
}

.minecraft-side-animal.minecraft-animal-chicken,
.minecraft-side-animal.minecraft-animal-parrot {
  width: min(6vw, 54px);
  height: min(8vw, 74px);
}

.minecraft-side-animal.minecraft-animal-horse {
  width: min(11vw, 96px);
  height: min(8vw, 72px);
}

.minecraft-side-villager {
  width: min(7vw, 58px);
  height: min(9vw, 76px);
  background-image: var(--minecraft-mob-villager);
  filter: drop-shadow(4px 5px 0 rgba(0, 0, 0, 0.24));
  animation: minecraft-side-villager-walk 1s steps(2, end) infinite;
}

.minecraft-side-villager.sleeping {
  width: min(9vw, 82px);
  height: min(6vw, 54px);
  transform: translateX(-50%) rotate(0deg);
}

.minecraft-side-iron-golem {
  position: absolute;
  left: var(--side-left);
  bottom: calc(34% + var(--side-depth-lift, 0%));
  z-index: var(--side-z, 22);
  width: min(8vw, 72px);
  height: min(24vw, 210px);
  transform: translateX(-50%);
  image-rendering: pixelated;
  filter: drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.25));
  background:
    linear-gradient(90deg, transparent 0 17%, #d9e1dc 17% 83%, transparent 83% 100%) 50% 0 / 100% 23% no-repeat,
    linear-gradient(90deg, #bfc9c7 0 46%, #96a4a2 46% 54%, #dfe8e5 54% 100%) 50% 24% / 82% 35% no-repeat,
    linear-gradient(90deg, #d7dfdc 0 34%, transparent 34% 66%, #b8c2c0 66% 100%) 50% 58% / 92% 24% no-repeat,
    linear-gradient(90deg, #b5c0be 0 38%, transparent 38% 62%, #dce5e2 62% 100%) 50% 100% / 72% 25% no-repeat;
}

.minecraft-side-iron-golem::before {
  content: "";
  position: absolute;
  left: 36%;
  top: 8%;
  width: 8%;
  height: 4%;
  background: #245952;
  box-shadow: 18px 0 0 #245952;
}

.minecraft-side-iron-golem::after {
  content: "";
  position: absolute;
  left: 38%;
  top: 44%;
  width: 24%;
  height: 32%;
  background:
    linear-gradient(180deg, #6dbb76 0 20%, transparent 20% 100%),
    linear-gradient(90deg, #bfc9c7 0 35%, transparent 35% 65%, #dfe8e5 65% 100%);
}

.minecraft-side-iron-golem.angry {
  animation: minecraft-side-golem-angry 360ms steps(2, end) infinite;
  filter: drop-shadow(0 0 12px rgba(255, 70, 70, 0.85)) drop-shadow(6px 6px 0 rgba(0, 0, 0, 0.25));
}

.minecraft-side-hostile.minecraft-zombie,
.minecraft-side-hostile.minecraft-skeleton {
  top: auto;
  width: min(7vw, 60px);
  height: min(10vw, 86px);
  transform: translateX(-50%);
  animation: minecraft-side-zombie-step 1s linear infinite;
}

.minecraft-side-hostile.minecraft-zombie {
  background-image: var(--minecraft-mob-zombie) !important;
}

.minecraft-side-hostile.minecraft-skeleton {
  background-image: var(--minecraft-mob-skeleton) !important;
}

.minecraft-side-house-interior {
  border-color: #1f1711;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0 65%, transparent 65%),
    var(--minecraft-texture-oak-planks) !important;
  background-size: auto, 64px 64px !important;
}

.minecraft-side-house-wall {
  position: absolute;
  inset: 7% 8% 35% 8%;
  z-index: 4;
  border: 4px solid #1f1711;
  background-image: var(--minecraft-texture-oak-planks);
  background-size: 64px 64px;
  box-shadow: inset 0 -16px 0 rgba(0, 0, 0, 0.14);
}

.minecraft-side-house-floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 35%;
  z-index: 5;
  border-top: 4px solid #1f1711;
  background-image: var(--minecraft-texture-spruce-planks);
  background-size: 64px 64px;
}

.minecraft-side-house-door {
  position: absolute;
  left: 12%;
  bottom: 35%;
  z-index: 12;
  width: min(10vw, 86px);
  height: min(18vw, 156px);
  border: 4px solid #1f1711;
  background-image: var(--minecraft-texture-oak-log);
  background-size: cover;
  image-rendering: pixelated;
  cursor: pointer;
  box-shadow: inset -10px 0 0 rgba(0, 0, 0, 0.18), 5px 5px 0 rgba(0, 0, 0, 0.22);
}

.minecraft-side-house-door::after {
  content: "";
  position: absolute;
  right: 18%;
  top: 48%;
  width: 8px;
  height: 8px;
  background: #f5d25c;
}

.minecraft-side-house-bed {
  position: absolute;
  left: 31%;
  bottom: 35%;
  z-index: 13;
  width: min(18vw, 150px);
  height: min(7vw, 62px);
  border: 4px solid #1f1711;
  background:
    linear-gradient(90deg, #ffffff 0 28%, #c93030 28% 100%);
  image-rendering: pixelated;
  cursor: pointer;
  box-shadow:
    inset 0 -10px 0 rgba(0, 0, 0, 0.14),
    5px 5px 0 rgba(0, 0, 0, 0.24);
}

.minecraft-side-house-bed::before,
.minecraft-side-house-bed::after {
  content: "";
  position: absolute;
  bottom: -10px;
  width: 10px;
  height: 10px;
  background: #5a351d;
}

.minecraft-side-house-bed::before {
  left: 12%;
}

.minecraft-side-house-bed::after {
  right: 12%;
}

.minecraft-side-house-villager {
  position: absolute;
  left: 55%;
  bottom: 35%;
  z-index: 14;
  width: min(8vw, 70px);
  height: min(12vw, 106px);
  border: 0;
  background: var(--minecraft-mob-villager) center bottom / contain no-repeat;
  image-rendering: pixelated;
  cursor: pointer;
  filter: drop-shadow(5px 5px 0 rgba(0, 0, 0, 0.24));
  animation: minecraft-side-villager-walk 1s steps(2, end) infinite;
}

.minecraft-side-house-wheat {
  position: absolute;
  right: 14%;
  bottom: 35%;
  z-index: 13;
  width: min(14vw, 122px);
  height: min(8vw, 70px);
  border: 4px solid #5f3a04;
  background:
    repeating-linear-gradient(90deg, rgba(95, 58, 4, 0.55) 0 7px, transparent 7px 13px),
    linear-gradient(180deg, #ffd35b 0 48%, #7a4c26 48% 100%);
  image-rendering: pixelated;
  cursor: pointer;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.24);
}

.minecraft-cube.minecraft-torch,
.minecraft-cube.minecraft-torch::before {
  background-image: var(--minecraft-tool-torch) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
}

.minecraft-side-player {
  position: absolute;
  left: 50%;
  bottom: 34%;
  z-index: 24;
  width: min(7vw, 64px);
  height: min(13vw, 118px);
  transform: translateX(-50%);
  background: url("./assets/minecraft-player/steve.png") center bottom / contain no-repeat;
  image-rendering: pixelated;
  pointer-events: none;
}

.minecraft-side-player.minecraft-side-player-land {
  animation: minecraft-side-player-land 260ms ease-out;
}

.minecraft-side-player-hand-item {
  position: absolute;
  right: -17%;
  bottom: 24%;
  width: 38%;
  height: 38%;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  image-rendering: pixelated;
  transform-origin: 20% 85%;
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.3));
}

.minecraft-side-player-mine .minecraft-side-player-hand-item {
  animation: minecraft-side-player-mine 360ms ease-in-out;
}

.minecraft-side-player-sword .minecraft-side-player-hand-item {
  animation: minecraft-side-player-sword 300ms ease-in-out;
}

.minecraft-side-player-hand-item.held-grass,
.minecraft-side-pickup.minecraft-grass {
  background-image: url("./assets/minecraft-blocks/grass.png");
}

.minecraft-side-player-hand-item.held-dirt,
.minecraft-side-pickup.minecraft-dirt {
  background-image: url("./assets/minecraft-blocks/dirt.png");
}

.minecraft-side-player-hand-item.held-sand,
.minecraft-side-pickup.minecraft-sand {
  background-image: url("./assets/minecraft-blocks/sand.png");
}

.minecraft-side-player-hand-item.held-stone,
.minecraft-side-pickup.minecraft-stone,
.minecraft-side-pickup.minecraft-coal_ore,
.minecraft-side-pickup.minecraft-iron_ore,
.minecraft-side-pickup.minecraft-diamond_ore,
.minecraft-side-pickup.minecraft-bedrock_ore {
  background-image: url("./assets/minecraft-blocks/stone-bricks.png");
}

.minecraft-side-player-hand-item.held-wood,
.minecraft-side-pickup.minecraft-wood {
  background-image: url("./assets/minecraft-blocks/oak-log.png");
}

.minecraft-side-player-hand-item.held-leaves,
.minecraft-side-pickup.minecraft-leaves {
  background-image: url("./assets/minecraft-blocks/mossy-dirt.png");
}

.minecraft-side-player-hand-item.held-cactus,
.minecraft-side-pickup.minecraft-cactus {
  background:
    linear-gradient(90deg, rgba(20, 104, 38, 0.9) 0 12%, transparent 12% 88%, rgba(20, 104, 38, 0.9) 88% 100%),
    linear-gradient(180deg, #4fd25a 0 100%);
}

.minecraft-side-player-hand-item.held-diamond_sword {
  background-image: linear-gradient(135deg, transparent 0 33%, #dffcff 34% 43%, #7eeaff 44% 70%, #1b7d94 71% 78%, transparent 79%);
}

.minecraft-side-player-hand-item.held-wood_pickaxe,
.minecraft-side-player-hand-item.held-stone_pickaxe,
.minecraft-side-player-hand-item.held-iron_pickaxe,
.minecraft-side-player-hand-item.held-diamond_pickaxe {
  background-image:
    linear-gradient(135deg, transparent 0 36%, #8c4e20 37% 48%, transparent 49%),
    linear-gradient(25deg, transparent 0 25%, #d8d8d8 26% 58%, transparent 59%);
}

.minecraft-side-pickup {
  position: absolute;
  left: var(--side-left);
  top: calc(66% + var(--side-row) * 8.5%);
  z-index: 32;
  width: 4.4%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  image-rendering: pixelated;
  pointer-events: none;
  animation: minecraft-side-pickup-fly 560ms ease-in forwards;
}

.minecraft-side-world .minecraft-xp-bar,
.minecraft-side-world .minecraft-hud {
  z-index: 40;
}

.minecraft-side-hud {
  position: absolute;
  left: 50%;
  right: auto;
  bottom: 22px;
  z-index: 70;
  width: min(96vw, 760px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transform: translateX(-50%);
  pointer-events: none;
  font-family: "Courier New", "Lucida Console", monospace;
}

.minecraft-side-hud-top {
  order: 1;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.minecraft-side-hearts,
.minecraft-side-hunger {
  display: flex;
  gap: 2px;
  padding: 4px 5px;
  border: 3px solid #1f1711;
  background: rgba(18, 15, 12, 0.86);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.25);
}

.minecraft-side-hearts span,
.minecraft-side-hunger span {
  display: block;
  width: 10px;
  height: 10px;
  image-rendering: pixelated;
}

.minecraft-side-hearts span {
  background: #481313;
  clip-path: polygon(50% 100%, 0 46%, 0 16%, 24% 0, 50% 16%, 76% 0, 100% 16%, 100% 46%);
}

.minecraft-side-hearts .filled {
  background: #ff4f5f;
  filter: drop-shadow(0 0 3px rgba(255, 79, 95, 0.8));
}

.minecraft-side-hunger span {
  background: #4a2400;
  clip-path: polygon(18% 0, 82% 0, 100% 42%, 72% 100%, 28% 100%, 0 42%);
}

.minecraft-side-hunger .filled {
  background: #ffb13b;
  filter: drop-shadow(0 0 3px rgba(255, 177, 59, 0.78));
}

.minecraft-side-xp {
  order: 2;
  position: static;
  width: min(260px, 56vw);
  max-width: none;
  transform: none;
  pointer-events: none;
}

.minecraft-side-hotbar-wrap {
  order: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: auto;
}

.minecraft-side-hotbar {
  position: static;
  z-index: 72;
  display: flex;
  gap: 4px;
  transform: none;
  pointer-events: auto;
}

.minecraft-side-hotbar-slot {
  position: relative;
  width: 44px;
  height: 44px;
  border: 3px solid #1f1711;
  border-radius: 0;
  background: rgba(226, 214, 178, 0.92);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.18);
  cursor: pointer;
}

.minecraft-side-hotbar-slot::before,
.minecraft-side-backpack-slot::before {
  content: "";
  position: absolute;
  inset: 5px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  image-rendering: pixelated;
}

.minecraft-side-hotbar-slot.selected {
  outline: 3px solid #fff36b;
}

.minecraft-side-hotbar-slot span {
  position: absolute;
  right: 2px;
  bottom: 0;
  color: #ffffff;
  font-size: 10px;
  font-weight: 900;
  text-shadow: 1px 1px 0 #000;
}

.minecraft-side-hotbar-slot.hotbar-grass::before,
.minecraft-side-backpack-slot.item-grass::before {
  background-image: url("./assets/minecraft-blocks/grass.png");
}

.minecraft-side-hotbar-slot.hotbar-dirt::before,
.minecraft-side-backpack-slot.item-dirt::before {
  background-image: url("./assets/minecraft-blocks/dirt.png");
}

.minecraft-side-hotbar-slot.hotbar-stone::before,
.minecraft-side-backpack-slot.item-stone::before {
  background-image: url("./assets/minecraft-blocks/stone-bricks.png");
}

.minecraft-side-hotbar-slot.hotbar-sand::before,
.minecraft-side-backpack-slot.item-sand::before {
  background-image: url("./assets/minecraft-blocks/sand.png");
}

.minecraft-side-hotbar-slot.hotbar-cactus::before,
.minecraft-side-backpack-slot.item-cactus::before {
  background:
    linear-gradient(90deg, rgba(20, 104, 38, 0.9) 0 12%, transparent 12% 88%, rgba(20, 104, 38, 0.9) 88% 100%),
    linear-gradient(180deg, #4fd25a 0 100%);
}

.minecraft-side-hotbar-slot.hotbar-wood::before,
.minecraft-side-backpack-slot.item-wood::before {
  background-image: url("./assets/minecraft-blocks/oak-log.png");
}

.minecraft-side-hotbar-slot.hotbar-leaves::before,
.minecraft-side-backpack-slot.item-leaves::before {
  background-image: url("./assets/minecraft-blocks/mossy-dirt.png");
}

.minecraft-side-backpack-slot.item-water::before,
.minecraft-side-backpack-slot.item-water_bucket::before {
  background-image: url("./assets/minecraft-blocks/blue-ice.png");
}

.minecraft-side-backpack-slot.item-bed::before {
  background:
    linear-gradient(180deg, #f7f1dc 0 34%, #c83d47 35% 100%);
}

.minecraft-side-backpack-slot.item-oak_planks::before,
.minecraft-side-backpack-slot.item-crafting_table::before {
  background-image: url("./assets/minecraft-blocks/oak-planks.png");
}

.minecraft-side-backpack-slot.item-chest::before {
  background:
    linear-gradient(90deg, transparent 43%, #8d8d8d 44% 56%, transparent 57%),
    linear-gradient(180deg, #b87634 0 22%, #8f5524 23% 100%);
}

.minecraft-side-backpack-slot.item-furnace::before {
  background:
    radial-gradient(circle at 50% 58%, #ffdf3c 0 12%, #ff7a22 13% 24%, #111 25% 36%, transparent 37%),
    url("./assets/minecraft-blocks/stone-bricks.png");
  background-size: contain, cover;
}

.minecraft-side-backpack-slot.item-ladder::before {
  background:
    linear-gradient(90deg, transparent 0 24%, #8a4a1f 25% 34%, transparent 35% 64%, #8a4a1f 65% 74%, transparent 75%),
    repeating-linear-gradient(180deg, transparent 0 22%, #8a4a1f 23% 32%, transparent 33% 55%);
}

.minecraft-side-backpack-slot.item-obsidian::before {
  background-image: url("./assets/minecraft-blocks/obsidian.png");
}

.minecraft-side-backpack-slot.item-meteor::before,
.minecraft-side-backpack-slot.item-meteor_dust::before {
  background-image: url("./assets/minecraft-blocks/diorite.png");
}

.minecraft-side-backpack-slot.item-ender_pearl::before,
.minecraft-side-backpack-slot.item-ender_eye::before {
  background:
    radial-gradient(circle at 50% 50%, #d9ffe6 0 20%, #20b55b 21% 48%, #0b2f28 49% 100%);
}

.minecraft-side-hotbar-slot.hotbar-torch::before,
.minecraft-side-backpack-slot.item-torch::before {
  background-image: url("./assets/minecraft-tools/torch.png");
}

.minecraft-side-hotbar-slot.hotbar-diamond_sword::before,
.minecraft-side-backpack-slot.item-diamond_sword::before {
  background-image: url("./assets/minecraft-tools/diamond-sword.png");
}

.minecraft-side-hotbar-slot.hotbar-hand::before,
.minecraft-side-hotbar-slot.hotbar-wood_pickaxe::before,
.minecraft-side-backpack-slot.item-wood_pickaxe::before {
  background-image: url("./assets/minecraft-tools/wood-pickaxe.png");
}

.minecraft-side-hotbar-slot.hotbar-stone_pickaxe::before,
.minecraft-side-backpack-slot.item-stone_pickaxe::before {
  background-image: url("./assets/minecraft-tools/stone-pickaxe.png");
}

.minecraft-side-hotbar-slot.hotbar-iron_pickaxe::before,
.minecraft-side-backpack-slot.item-iron_pickaxe::before {
  background-image: url("./assets/minecraft-tools/iron-pickaxe.png");
}

.minecraft-side-hotbar-slot.hotbar-diamond_pickaxe::before,
.minecraft-side-backpack-slot.item-diamond_pickaxe::before {
  background-image: url("./assets/minecraft-tools/diamond-pickaxe.png");
}

.minecraft-side-hotbar-slot.hotbar-bow::before,
.minecraft-side-backpack-slot.item-bow::before {
  background-image: url("./assets/minecraft-tools/bow.png");
}

.minecraft-side-backpack-slot.item-wood_axe::before {
  background-image: url("./assets/minecraft-tools/wood-axe.png");
}

.minecraft-side-backpack-slot.item-stone_shovel::before {
  background:
    linear-gradient(135deg, transparent 0 36%, #8a4a1f 37% 46%, transparent 47%),
    radial-gradient(ellipse at 68% 24%, #bfc4c8 0 20%, #656565 21% 35%, transparent 36%);
}

.minecraft-side-backpack-slot.item-iron_hoe::before {
  background:
    linear-gradient(135deg, transparent 0 36%, #8a4a1f 37% 46%, transparent 47%),
    linear-gradient(90deg, transparent 0 30%, #d6d8d9 31% 68%, transparent 69%);
}

.minecraft-side-backpack-slot.item-fishing_rod::before {
  background-image: url("./assets/minecraft-tools/fishing-rod.png");
}

.minecraft-side-backpack-slot.item-flint_and_steel::before {
  background-image: url("./assets/minecraft-tools/flint-and-steel.png");
}

.minecraft-side-backpack-slot.item-shears::before {
  background-image: url("./assets/minecraft-tools/shears.png");
}

.minecraft-side-backpack-slot.item-bucket::before,
.minecraft-side-backpack-slot.item-lava_bucket::before {
  background:
    linear-gradient(180deg, #d4d9df 0 35%, #8f949a 36% 70%, #ff7b22 71% 100%);
}

.minecraft-side-backpack-slot.item-coal::before {
  background:
    radial-gradient(circle at 38% 40%, #575757 0 18%, transparent 19%),
    radial-gradient(circle at 62% 58%, #1d1d1d 0 23%, transparent 24%),
    #2b2b2b;
}

.minecraft-side-backpack-slot.item-iron::before {
  background:
    radial-gradient(circle at 50% 50%, #eeeeee 0 24%, #929292 25% 62%, transparent 63%);
}

.minecraft-side-backpack-slot.item-diamond::before,
.minecraft-side-backpack-slot.item-emerald::before {
  background:
    radial-gradient(circle at 50% 50%, #eaffff 0 14%, #65f4e9 15% 55%, #168f91 56% 100%);
}

.minecraft-side-backpack-slot.item-diamond_helmet::before {
  background:
    linear-gradient(180deg, transparent 0 30%, #65f4e9 31% 56%, transparent 57%),
    linear-gradient(90deg, #168f91 0 22%, transparent 23% 77%, #168f91 78% 100%);
}

.minecraft-side-backpack-slot.item-diamond_chestplate::before {
  background:
    linear-gradient(180deg, transparent 0 16%, #65f4e9 17% 88%, transparent 89%),
    linear-gradient(90deg, #168f91 0 22%, transparent 23% 77%, #168f91 78% 100%);
}

.minecraft-side-backpack-slot.item-diamond_leggings::before {
  background:
    linear-gradient(90deg, #65f4e9 0 32%, transparent 33% 67%, #65f4e9 68% 100%),
    linear-gradient(180deg, #168f91 0 28%, transparent 29% 100%);
}

.minecraft-side-backpack-slot.item-diamond_boots::before {
  background:
    linear-gradient(90deg, transparent 0 8%, #65f4e9 9% 36%, transparent 37% 63%, #65f4e9 64% 91%, transparent 92%);
}

.minecraft-side-backpack-slot.item-compass::before {
  background:
    radial-gradient(circle at 50% 50%, #cf2626 0 10%, #1f2730 11% 16%, #c7c7c7 17% 42%, #1f2730 43% 51%, transparent 52%);
}

.minecraft-side-backpack-slot.item-clock::before {
  background:
    radial-gradient(circle at 50% 50%, #ffef68 0 30%, #9c6a12 31% 48%, transparent 49%);
}

.minecraft-side-backpack-slot.item-stick::before {
  background:
    linear-gradient(135deg, transparent 0 38%, #8a4a1f 39% 55%, #3f2110 56% 64%, transparent 65% 100%);
}

.minecraft-side-backpack-slot.item-string::before {
  background:
    linear-gradient(135deg, transparent 0 42%, #eeeeee 43% 48%, transparent 49%),
    linear-gradient(45deg, transparent 0 42%, #eeeeee 43% 48%, transparent 49%);
}

.minecraft-side-backpack-slot.item-flint::before {
  background:
    radial-gradient(circle at 46% 52%, #727272 0 28%, #252525 29% 48%, transparent 49%);
}

.minecraft-side-backpack-slot.item-redstone::before {
  background:
    radial-gradient(circle at 38% 42%, #ff3030 0 10%, transparent 11%),
    radial-gradient(circle at 62% 58%, #a40000 0 14%, transparent 15%);
}

.minecraft-side-backpack-slot.item-gold::before {
  background:
    radial-gradient(circle at 50% 50%, #fff075 0 18%, #f4b21f 19% 58%, transparent 59%);
}

.minecraft-side-backpack-slot.item-carrot::before,
.minecraft-side-backpack-slot.item-golden_carrot::before {
  background:
    linear-gradient(135deg, transparent 0 28%, #ff9424 29% 64%, transparent 65%),
    radial-gradient(circle at 70% 18%, #63b94d 0 16%, transparent 17%);
}

.minecraft-side-backpack-slot.item-pumpkin::before {
  background:
    linear-gradient(90deg, #de751d 0 30%, #f79a23 31% 62%, #bf5d19 63% 100%);
}

.minecraft-side-backpack-slot.item-egg::before {
  background:
    radial-gradient(ellipse at 50% 54%, #fff3cf 0 38%, #b98d55 39% 48%, transparent 49%);
}

.minecraft-side-backpack-slot.item-sugar::before {
  background:
    radial-gradient(circle at 35% 44%, #ffffff 0 10%, transparent 11%),
    radial-gradient(circle at 58% 60%, #f1f1f1 0 12%, transparent 13%);
}

.minecraft-side-backpack-slot.item-pumpkin_pie::before {
  background:
    radial-gradient(circle at 50% 50%, #e88334 0 36%, #8f4b1f 37% 48%, transparent 49%);
}

.minecraft-side-backpack-slot.item-meat::before {
  background:
    radial-gradient(circle at 54% 46%, #b8452f 0 42%, #6a221c 43% 100%);
}

.minecraft-side-backpack-slot.item-wool::before {
  background-image: url("./assets/minecraft-blocks/white-wool.png");
}

.minecraft-side-backpack-slot.item-seeds::before {
  background:
    radial-gradient(circle at 32% 38%, #4c8a20 0 10%, transparent 11%),
    radial-gradient(circle at 60% 60%, #82c63d 0 12%, transparent 13%),
    radial-gradient(circle at 48% 26%, #d4a642 0 8%, transparent 9%);
}

.minecraft-side-backpack-slot.item-wheat::before {
  background:
    repeating-linear-gradient(90deg, #d8a533 0 5px, #ffe069 5px 8px);
}

.minecraft-side-backpack-slot.item-xp::before {
  background:
    radial-gradient(circle at 50% 50%, #d8ff68 0 20%, #72ff42 21% 58%, transparent 59%);
}

.minecraft-side-backpack-toggle {
  width: 44px;
  height: 44px;
  border: 3px solid #1f1711;
  border-radius: 0;
  background: rgba(55, 55, 55, 0.72);
  color: #ffffff;
  font: 900 17px "Courier New", monospace;
  line-height: 1;
  text-shadow: 2px 2px 0 #000;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.24);
  cursor: pointer;
}

.minecraft-side-backpack-panel {
  position: absolute;
  left: 50%;
  bottom: 118px;
  z-index: 90;
  width: min(92vw, 560px);
  max-height: min(58vh, 430px);
  transform: translateX(-50%);
  border: 4px solid #1f1711;
  background-image:
    linear-gradient(180deg, rgba(34, 31, 27, 0.86), rgba(34, 31, 27, 0.96)),
    url("./assets/minecraft-blocks/grass.png");
  background-size: auto, 54px 54px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  pointer-events: auto;
  overflow: hidden;
}

.minecraft-side-backpack-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 3px solid #1f1711;
  color: #fff4cf;
  font: 900 15px "Courier New", monospace;
}

.minecraft-side-backpack-close {
  width: 28px;
  height: 28px;
  border: 2px solid #1f1711;
  border-radius: 0;
  background: #8e3232;
  color: #ffffff;
  font: 900 18px "Courier New", monospace;
  cursor: pointer;
}

.minecraft-side-backpack-workspace {
  display: grid;
  grid-template-columns: minmax(90px, 0.8fr) minmax(160px, 1.2fr);
  gap: 10px;
  padding: 10px;
  border-bottom: 3px solid #1f1711;
}

.minecraft-side-player-preview {
  position: relative;
  min-height: 128px;
  border: 3px solid #1f1711;
  background: rgba(164, 207, 238, 0.58);
  image-rendering: pixelated;
}

.minecraft-side-player-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 50px;
  height: 100px;
  transform: translateX(-50%);
  background: url("./assets/minecraft-player/steve.png") center bottom / contain no-repeat;
  image-rendering: pixelated;
}

.minecraft-side-pocket-crafting {
  display: grid;
  grid-template-columns: auto 32px 54px;
  align-items: center;
  gap: 8px;
}

.minecraft-pocket-crafting-grid {
  display: grid;
  grid-template-columns: repeat(2, 48px);
  gap: 4px;
}

.minecraft-pocket-crafting-slot,
.minecraft-pocket-crafting-output {
  width: 48px;
  height: 48px;
  border: 3px solid #1f1711;
  border-radius: 0;
  background: rgba(216, 207, 180, 0.92);
  color: #ffffff;
  font: 900 11px "Courier New", monospace;
  text-shadow: 1px 1px 0 #000;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.minecraft-pocket-crafting-output {
  position: relative;
}

.minecraft-pocket-crafting-output:disabled {
  opacity: 0.45;
  cursor: default;
}

.minecraft-pocket-crafting-arrow {
  width: 28px;
  height: 16px;
  background: linear-gradient(90deg, #c6c6c6 0 65%, transparent 66%),
    linear-gradient(135deg, transparent 0 45%, #c6c6c6 46% 70%, transparent 71%);
}

.minecraft-side-backpack-grid {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 5px;
  max-height: calc(min(58vh, 430px) - 232px);
  padding: 10px;
  overflow-y: auto;
}

.minecraft-side-backpack-slot {
  position: relative;
  aspect-ratio: 1;
  min-width: 0;
  border: 3px solid #1f1711;
  border-radius: 0;
  background: rgba(216, 207, 180, 0.92);
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.16);
  color: #ffffff;
  font: 900 10px "Courier New", monospace;
}

.minecraft-side-backpack-slot.empty {
  opacity: 0.35;
}

.minecraft-backpack-slot-picked {
  z-index: 3;
  transform: scale(1.16);
  border-color: #fff8d8;
  box-shadow:
    0 0 0 3px #1f1711,
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 -5px 0 rgba(0, 0, 0, 0.16);
}

.minecraft-backpack-held-item {
  position: sticky;
  left: 10px;
  bottom: 10px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 4px solid #fff8d8;
  background: rgba(31, 23, 17, 0.9);
  color: #ffffff;
  font: 900 13px "Courier New", monospace;
  text-shadow: 1px 1px 0 #000;
  pointer-events: none;
}

.minecraft-side-backpack-slot strong {
  position: absolute;
  left: 3px;
  top: 2px;
  z-index: 2;
  color: #fff8d8;
  text-shadow: 1px 1px 0 #000;
}

.minecraft-side-backpack-slot span {
  position: absolute;
  right: 3px;
  bottom: 1px;
  z-index: 2;
  color: #ffffff;
  text-shadow: 1px 1px 0 #000;
}

.minecraft-side-backpack-hotbar {
  display: flex;
  gap: 4px;
  justify-content: center;
  padding: 0 10px 10px;
}

@keyframes minecraft-side-sun-glow {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
    filter: brightness(1);
  }
  50% {
    transform: translate(-50%, -50%) translateY(8px);
    filter: brightness(1.12);
  }
}

@keyframes minecraft-side-orbit {
  0% {
    left: 8%;
    top: 16%;
  }
  50% {
    left: 49%;
    top: 5%;
  }
  100% {
    left: 90%;
    top: 16%;
  }
}

@keyframes minecraft-side-cloud-drift {
  from {
    transform: translateX(-18vw);
  }
  to {
    transform: translateX(26vw);
  }
}

@keyframes minecraft-side-player-land {
  from {
    transform: translate(-50%, -18px);
  }
  to {
    transform: translate(-50%, 0);
  }
}

@keyframes minecraft-side-player-mine {
  0% {
    transform: rotate(-35deg) translateY(0);
  }
  50% {
    transform: rotate(36deg) translateY(6px);
  }
  100% {
    transform: rotate(-8deg) translateY(0);
  }
}

@keyframes minecraft-side-player-sword {
  0% {
    transform: rotate(-55deg) translateY(-2px);
  }
  55% {
    transform: rotate(52deg) translateY(5px);
  }
  100% {
    transform: rotate(-10deg) translateY(0);
  }
}

@keyframes minecraft-side-pickup-fly {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(calc(-50% + 42vw - var(--side-left))) translateY(-22vh) scale(0.35);
  }
}

@keyframes minecraft-side-animal-walk {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-4%);
  }
}

@keyframes minecraft-side-villager-walk {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(calc(-50% + 10px)) translateY(-2px);
  }
}

@keyframes minecraft-side-zombie-step {
  0% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(calc(-50% + var(--hostile-run-half-x, -2.7778vw))) translateY(-3px);
  }
  100% {
    transform: translateX(calc(-50% + var(--hostile-run-x, -5.5556vw))) translateY(0);
  }
}

@keyframes minecraft-side-golem-angry {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(calc(-50% - 6px)) translateY(-4px);
  }
}

@keyframes town-cloud-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(230px);
  }
}

@keyframes town-member-walk {
  0% {
    transform: translateX(-10px) translateY(0);
  }
  25% {
    transform: translateX(18px) translateY(-3px);
  }
  50% {
    transform: translateX(42px) translateY(0);
  }
  75% {
    transform: translateX(16px) translateY(-3px);
  }
  100% {
    transform: translateX(-10px) translateY(0);
  }
}

@keyframes town-concert-bars {
  0%,
  100% {
    height: 8px;
  }
  50% {
    height: 24px;
  }
}

@keyframes town-loading-spin {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@keyframes minecraft-sky-cross {
  0% {
    left: 8%;
    top: 16%;
  }
  50% {
    left: 46%;
    top: 5%;
  }
  100% {
    left: 84%;
    top: 16%;
  }
}

@keyframes minecraft-cloud-drift {
  0% {
    transform: translateX(-18vw);
  }
  100% {
    transform: translateX(132vw);
  }
}

@keyframes minecraft-animal-walk {
  0%,
  100% {
    transform: translate(-55%, -50%);
  }
  50% {
    transform: translate(-45%, -52%);
  }
}

@keyframes minecraft-animal-fly {
  0%,
  100% {
    transform: translate(-52%, -56%);
  }
  50% {
    transform: translate(-46%, -66%);
  }
}

@keyframes minecraft-water-shimmer {
  0%,
  100% {
    transform: translateX(-2px);
  }
  50% {
    transform: translateX(2px);
  }
}

@keyframes minecraft-portal-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.45);
  }
}

@media (max-width: 820px) {
  .mood-panel {
    width: 178px;
    min-height: 178px;
  }

  .keyboard-top {
    grid-template-columns: 1fr;
  }

  .bamboo-copter {
    transform: translateX(-50%) scale(0.9);
  }

  .keyboard-dock {
    margin-top: -72px;
  }

  .computer-shell {
    margin-top: clamp(150px, 23svh, 200px);
  }

  .money-display {
    top: calc(max(14px, env(safe-area-inset-top)) + 48px);
    left: auto;
    right: max(14px, env(safe-area-inset-right));
    transform: none;
  }

  .sales-basket {
    right: 22px;
    bottom: 168px;
    width: 130px;
  }

  .rhythm-box {
    left: max(14px, env(safe-area-inset-left));
    right: max(14px, env(safe-area-inset-right));
    bottom: 304px;
    width: auto;
    min-width: 0;
  }

  .happy-robot-picker {
    grid-template-columns: 48px 1fr;
    min-height: 58px;
  }

  .rhythm-stage {
    grid-template-columns: repeat(5, minmax(42px, 1fr));
    gap: 6px;
  }

  .rhythm-slot {
    height: 86px;
  }

  .placed-happy-robot {
    --robot-scale: 0.64;
    width: 68px;
    height: 86px;
    margin-top: -6px;
  }

  .happy-robot-picker .happy-robot-icon {
    --robot-scale: 0.38;
  }

  .shop-toggle {
    top: calc(max(14px, env(safe-area-inset-top)) + 96px);
  }

  .diary-room-link {
    top: calc(max(14px, env(safe-area-inset-top)) + 144px);
  }

  .reset-save-toggle {
    top: calc(max(14px, env(safe-area-inset-top)) + 192px);
  }

  .yard-toggle {
    top: calc(max(14px, env(safe-area-inset-top)) + 240px);
  }

  .home-toggle {
    top: calc(max(14px, env(safe-area-inset-top)) + 288px);
  }

  .call-back-toggle {
    top: calc(max(14px, env(safe-area-inset-top)) + 336px);
  }

  .shop-panel {
    top: calc(max(14px, env(safe-area-inset-top)) + 336px);
  }

  .mine-panel {
    top: calc(max(14px, env(safe-area-inset-top)) + 336px);
  }

  .minecraft-toggle {
    right: 8px;
    bottom: 8px;
    padding: 4px 6px;
    font-size: 9px;
  }

  .minecraft-panel {
    inset: 0;
    width: auto;
    padding: 8px;
  }

  .minecraft-toolbar {
    grid-template-columns: 1fr auto auto;
  }

  .minecraft-toolbar strong,
  .minecraft-tools {
    grid-column: 1 / -1;
  }

  .minecraft-controls {
    grid-template-columns: minmax(92px, 128px) repeat(3, minmax(44px, 1fr));
  }

  .minecraft-move,
  .minecraft-jump-up,
  .minecraft-dig-down,
  .minecraft-view {
    min-height: 26px;
    font-size: 8px;
  }

  .minecraft-tool {
    width: 28px;
    height: 28px;
  }

  .minecraft-world {
    height: min(62vh, calc((100vw - 16px) * 0.64));
    aspect-ratio: 14 / 9;
  }

  .minecraft-cube {
    --cube-size: min(14vw, 58px);
    --screen-x: calc(50% + (var(--mc-x) - var(--mc-z)) * min(10.5vw, 44px));
    --screen-y: calc(49% + (var(--mc-x) + var(--mc-z)) * min(5.2vw, 22px));
  }

  .home-window-view {
    left: 16px;
    top: 128px;
    width: 104px;
    height: 74px;
  }

  .home-outlet {
    left: auto;
    right: 22px;
    top: 218px;
  }

  .computer-house {
    left: auto;
    right: 14px;
    bottom: 24vh;
    transform: translateY(18px) scale(0.78);
  }

  .computer-house.visible {
    transform: translateY(0) scale(0.78);
  }

  body.home-mode .computer-house.visible {
    left: auto;
    right: 12px;
    bottom: 22vh;
    transform: translateY(0) scale(0.76);
  }

  body.home-mode .stage::before {
    top: 78px;
    height: 238px;
  }

  body.home-mode .stage::after {
    bottom: 6vh;
    height: 38vh;
  }

  body.home-mode .computer-house.has-bed .house-bed,
  body.home-mode .house-item.owned-furniture.house-bed {
    left: 16px;
    bottom: 15vh;
    width: 104px;
    height: 40px;
  }

  body.home-mode .computer-house.has-sofa .house-sofa,
  body.home-mode .house-item.owned-furniture.house-sofa {
    left: 18px;
    bottom: 26vh;
    width: 104px;
    height: 46px;
  }

  body.home-mode .computer-house.has-lamp .house-lamp,
  body.home-mode .house-item.owned-furniture.house-lamp {
    left: auto;
    right: 22px;
    bottom: 31vh;
    width: 28px;
    height: 82px;
  }

  body.home-mode .computer-house.has-table .house-table,
  body.home-mode .house-item.owned-furniture.house-table {
    left: auto;
    right: 58px;
    bottom: 16vh;
    width: 68px;
    height: 42px;
  }
}

/* Final Pyramixed artwork rules stay last so older screen-frame rules cannot
   redraw a second face or frame over the source character. */
body[data-computer-version="pyramixed"] .pyramixed-host-art,
body[data-computer-version="pyramixed"] .screen-bezel{animation:none!important}
body[data-computer-version="pyramixed"] .mood-panel.face-mode,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open){background:transparent!important}
body[data-computer-version="pyramixed"] .mood-panel.face-mode .face-display,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open) .face-display{display:none!important;animation:none!important}
body[data-computer-version="pyramixed"] .mood-panel.text-mode,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode.text-mode{background:#050505!important;clip-path:none!important}
body[data-computer-version="pyramixed"] .mood-panel.text-mode::before{content:"";position:absolute;top:-2px;right:-9px;bottom:-2px;left:-12px;z-index:18;background:#050505;pointer-events:none}
body[data-computer-version="pyramixed"] .computer-shell:has(.mood-panel.text-mode) .screen-bezel::after{display:none!important}
body[data-computer-version="pyramixed"] .computer-shell:has(.mood-panel.face-mode) .screen-bezel::after,
body[data-computer-version="pyramixed"] .computer-shell:has(.mood-panel.desktop-mode:not(.app-open):not(.text-mode)):not(:has(.computer-desktop.pyramixed-apps-open)) .screen-bezel::after{content:"";position:absolute;left:50%;top:86px;z-index:5;display:block;width:42px;height:40px;border:0;border-radius:0;background:linear-gradient(42deg,transparent 0 46%,#fff 47% 52%,transparent 53%) left top/52% 76% no-repeat,linear-gradient(-42deg,transparent 0 46%,#fff 47% 52%,transparent 53%) right top/52% 76% no-repeat,#050505;color:transparent;font-size:0;transform:translateX(-50%);clip-path:none;animation:pyramixed-only-mouth 1.25s ease-in-out infinite alternate;pointer-events:none}
body[data-computer-version="pyramixed"] .mood-panel.text-mode #screen-subtitle{position:absolute;inset:18px 9px 8px;z-index:20;display:flex!important;align-content:center;align-items:center;justify-content:center;flex-wrap:wrap;max-width:none;margin:0;overflow:hidden;font-size:12px;line-height:1.42;text-align:center}

/* The Pyramixed chassis keeps its source silhouette, while Mr. Computer's own
   DOM face covers the printed screen so eye tracking and expressions still work. */
body[data-computer-version="pyramixed"] .mood-panel.face-mode,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open):not(.text-mode){background:#050505!important}
body[data-computer-version="pyramixed"] .mood-panel.face-mode .face-display,
body[data-computer-version="pyramixed"] .mood-panel.desktop-mode:not(.app-open):not(:has(.pyramixed-apps-open)) .face-display{
  position:absolute!important;inset:17px 0 auto!important;z-index:9!important;display:grid!important;width:100%!important;margin:0!important;gap:8px!important;
  animation:float-face 2.6s ease-in-out infinite!important;pointer-events:none
}
body[data-computer-version="pyramixed"] .face-cheeks{display:flex!important;width:104px!important}
body[data-computer-version="pyramixed"] .face-eyes{gap:38px!important}
body[data-computer-version="pyramixed"] .eye{width:20px!important;height:20px!important;border-radius:50%!important}
body[data-computer-version="pyramixed"] .mouth-triangle{width:38px!important;height:35px!important;clip-path:polygon(0 0,100% 0,58% 82%,50% 94%,42% 82%)!important}
body[data-computer-version="pyramixed"] .computer-shell:has(.mood-panel.face-mode) .screen-bezel::after,
body[data-computer-version="pyramixed"] .computer-shell:has(.mood-panel.desktop-mode:not(.app-open):not(.text-mode)) .screen-bezel::after{display:none!important;content:none!important}
body[data-computer-version="pyramixed"] .mood-panel.text-mode .face-display{display:none!important}
