@import url('https://fonts.googleapis.com/css2?family=Noto+Color+Emoji&family=Roboto:ital,wght@0,900;1,900&family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

:root {
  --cream: #fff8de;
  --green-dark: #0d5f35;
  --green-mid: #1ca45f;
  --green-light: #25b969;
  --black-glow: rgba(0, 0, 0, 0.38);
  --inventory-blue: #72afe1;
  --inventory-blue-deep: #4c82b7;
  --craft-orange: #dea35b;
  --craft-orange-deep: #be7b34;
  --gallery-olive: #ddd44f;
  --gallery-olive-deep: #aea532;
  --hotbar-square: rgba(252, 255, 254, 0.92);
  --hotbar-square-stroke: rgba(205, 217, 214, 0.98);
  --panel-border: rgba(74, 56, 19, 0.36);
  --panel-shadow: rgba(73, 50, 12, 0.26);
  --slot-dark: rgba(95, 91, 32, 0.54);
  --slot-dark-stroke: rgba(132, 126, 42, 0.95);
  --panel-petal-box-size: 69px;
  --gallery-slot-size: var(--panel-petal-box-size);
  --petal-tile-radius: 2px;
  --text-outline: rgba(0, 0, 0, 0.3);
  --panel-title-outline: rgba(0, 0, 0, 0.34);
  --text-outline-shadow:
    -1px 0 0 var(--text-outline),
    1px 0 0 var(--text-outline),
    0 -1px 0 var(--text-outline),
    0 1px 0 var(--text-outline),
    -1px -1px 0 var(--text-outline),
    1px -1px 0 var(--text-outline),
    -1px 1px 0 var(--text-outline),
    1px 1px 0 var(--text-outline);
  --panel-title-shadow:
    -2px 0 0 var(--panel-title-outline),
    2px 0 0 var(--panel-title-outline),
    0 -2px 0 var(--panel-title-outline),
    0 2px 0 var(--panel-title-outline),
    -2px -2px 0 var(--panel-title-outline),
    2px -2px 0 var(--panel-title-outline),
    -2px 2px 0 var(--panel-title-outline),
    2px 2px 0 var(--panel-title-outline);
  --petal-name-outline-offset: 0.0525em;
  --petal-name-outline-shadow:
    calc(-1 * var(--petal-name-outline-offset)) 0 0 rgba(0, 0, 0, 0.82),
    var(--petal-name-outline-offset) 0 0 rgba(0, 0, 0, 0.82),
    0 calc(-1 * var(--petal-name-outline-offset)) 0 rgba(0, 0, 0, 0.82),
    0 var(--petal-name-outline-offset) 0 rgba(0, 0, 0, 0.82),
    calc(-1 * var(--petal-name-outline-offset)) calc(-1 * var(--petal-name-outline-offset)) 0 rgba(0, 0, 0, 0.72),
    var(--petal-name-outline-offset) calc(-1 * var(--petal-name-outline-offset)) 0 rgba(0, 0, 0, 0.72),
    calc(-1 * var(--petal-name-outline-offset)) var(--petal-name-outline-offset) 0 rgba(0, 0, 0, 0.72),
    var(--petal-name-outline-offset) var(--petal-name-outline-offset) 0 rgba(0, 0, 0, 0.72);
  --player-name-outline-shadow:
    -1.5px 0 0 var(--text-outline),
    1.5px 0 0 var(--text-outline),
    0 -1.5px 0 var(--text-outline),
    0 1.5px 0 var(--text-outline),
    -1.5px -1.5px 0 var(--text-outline),
    1.5px -1.5px 0 var(--text-outline),
    -1.5px 1.5px 0 var(--text-outline),
    1.5px 1.5px 0 var(--text-outline);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: "Ubuntu", "Roboto", "Noto Color Emoji", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: geometricPrecision;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  font-family: "Ubuntu", "Roboto", "Noto Color Emoji", sans-serif;
  color: var(--cream);
  background: #17a45f;
}

body {
  user-select: none;
  text-shadow: var(--text-outline-shadow);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #000;
  color: #fff;
  text-shadow: none;
  opacity: 1;
  transition: opacity 120ms ease;
}

.loading-screen.loading-screen--fadeout {
  opacity: 0;
}

.loading-screen__text {
  font-size: clamp(44px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.play-screen {
  position: fixed;
  inset: 0;
  z-index: 12;
  overflow: hidden;
  background: #000;
  color: #fff;
  text-shadow: none;
}

.portal-wipe {
  position: fixed;
  inset: 0;
  z-index: 100001;
  pointer-events: none;
  background: transparent;
}

#play-screen-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.play-screen__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.22);
  text-shadow:
    -2px 0 0 rgba(0, 0, 0, 0.92),
    2px 0 0 rgba(0, 0, 0, 0.92),
    0 -2px 0 rgba(0, 0, 0, 0.92),
    0 2px 0 rgba(0, 0, 0, 0.92),
    -2px -2px 0 rgba(0, 0, 0, 0.92),
    2px -2px 0 rgba(0, 0, 0, 0.92),
    -2px 2px 0 rgba(0, 0, 0, 0.92),
    2px 2px 0 rgba(0, 0, 0, 0.92);
}

.play-screen__center {
  width: min(720px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.play-screen__title {
  font-size: clamp(44px, 6.2vw, 86px);
  font-weight: 900;
  letter-spacing: 0.015em;
  background: transparent;
  border: 0;
  padding: 0;
  text-shadow:
    -4px 0 0 rgba(0, 0, 0, 0.94),
    4px 0 0 rgba(0, 0, 0, 0.94),
    0 -4px 0 rgba(0, 0, 0, 0.94),
    0 4px 0 rgba(0, 0, 0, 0.94),
    -4px -4px 0 rgba(0, 0, 0, 0.94),
    4px -4px 0 rgba(0, 0, 0, 0.94),
    -4px 4px 0 rgba(0, 0, 0, 0.94),
    4px 4px 0 rgba(0, 0, 0, 0.94);
}

.play-screen__status {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.96;
}

.play-screen__ready {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}

.play-screen__name-row {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-wrap: wrap;
}

.play-screen__name-input {
  width: 28ch;
  min-width: 3ch;
  max-width: min(520px, calc(100vw - 220px));
  height: 48px;
  padding: 0 14px;
  border: 3px solid #000;
  border-radius: 6px;
  background: #ffffff;
  color: #000;
  text-shadow: none !important;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: none;
}

.play-screen__name-input:focus {
  outline: none;
  box-shadow: none;
}

.play-screen__name-display {
  width: auto;
  max-width: min(520px, calc(100vw - 220px));
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #fff;
}

.play-screen__ready-button {
  height: 48px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 6px solid #17a921;
  border-radius: 10px;
  background: #1dd129;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
  text-shadow:
    -1.4px 0 0 rgba(0, 0, 0, 0.92),
    1.4px 0 0 rgba(0, 0, 0, 0.92),
    0 -1.4px 0 rgba(0, 0, 0, 0.92),
    0 1.4px 0 rgba(0, 0, 0, 0.92),
    -1.4px -1.4px 0 rgba(0, 0, 0, 0.92),
    1.4px -1.4px 0 rgba(0, 0, 0, 0.92),
    -1.4px 1.4px 0 rgba(0, 0, 0, 0.92),
    1.4px 1.4px 0 rgba(0, 0, 0, 0.92);
}

.play-screen__ready-button:disabled {
  opacity: 0.85;
  cursor: not-allowed;
}

.play-screen__ready-arrow {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: solid rgba(0, 0, 0, 0.4);
  border-width: 0 6px 6px 0;
  padding: 3px;
  transform: rotate(-45deg);
  border-radius: 4px;
}

.play-screen__name-error {
  min-height: 18px;
  font-size: 16px;
  font-weight: 700;
  color: #ff3b3b;
}

.play-screen-mode #quick-actions,
.play-screen-mode #hud,
.play-screen-mode #world-banner,
.play-screen-mode #hotbar-shell,
.play-screen-mode #screen-credits,
.play-screen-mode #tooltip,
.play-screen-mode #xp-popup,
.play-screen-mode #inventory-panel,
.play-screen-mode #craft-panel,
.play-screen-mode #gallery-panel,
.play-screen-mode #skill-panel,
.play-screen-mode #message-feed,
.play-screen-mode #debug-command-form,
.play-screen-mode #debug-command-status,
.play-screen-mode #debug-runtime-indicators,
.play-screen-mode #xp-popup {
  display: none !important;
}

button,
input,
textarea,
select {
  font: inherit;
  font-family: inherit;
  text-shadow: inherit;
}

#app {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

#game-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: default;
}

#screen-credits {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  pointer-events: none;
  color: rgba(220, 220, 220, 0.58);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

#dev-tools {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 14;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
}

.settings-launch-button {
  position: fixed;
  left: 6px;
  top: 6px;
  z-index: 30;
  background: #b7cf6a;
  border-width: 3.4667px;
  border-radius: 8px;
}

.settings-launch-button .quick-icon {
  inset: 7px;
}

#debug-command-submit {
  height: 34px;
  border: 2px solid rgba(75, 58, 19, 0.34);
  border-radius: 4px;
  background: rgba(243, 230, 190, 0.94);
  color: #1f2414;
  font-weight: 800;
  cursor: pointer;
}

.update-log-panel {
  width: min(438px, calc(100vw - 24px));
  height: min(430px, calc(100vh - 76px));
  --panel-frame-color: rgba(75, 58, 19, 0.34);
  border-width: 4px;
  border-radius: 8px;
  background: rgba(28, 34, 28, 0.97);
  box-shadow: none;
}

.xp-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(520px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 24px));
  border: 4px solid rgba(75, 58, 19, 0.34);
  border-radius: 8px;
  background: rgba(28, 34, 28, 0.98);
  overflow: hidden;
  z-index: 60;
}

.xp-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px;
  background: rgba(46, 57, 43, 0.95);
  color: #fffdf0;
}

.xp-popup-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.xp-popup-body {
  max-height: min(510px, calc(100vh - 140px));
  padding: 10px 12px 12px;
  overflow: auto;
  color: #fffdf0;
}

.xp-popup-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.22;
}

.update-log-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px 8px;
  background: rgba(46, 57, 43, 0.95);
  color: #fffdf0;
}

.update-log-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.update-log-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  padding: 10px 12px 12px;
  overflow: auto;
  color: #fffdf0;
}

.update-log-version {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
}

.update-log-list {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  line-height: 1.22;
}

#debug-command-form {
  display: flex;
  width: 100%;
  gap: 8px;
}

#message-feed {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  pointer-events: none;
}

.message-feed-item {
  align-self: flex-end;
  max-width: 100%;
  padding: 7px 10px 6px;
  border: 3px solid rgba(75, 58, 19, 0.34);
  border-radius: 6px;
  background: rgba(28, 34, 28, 0.94);
  color: #fffdf0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: right;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.message-feed-item.success {
  background: rgba(33, 48, 31, 0.95);
}

.message-feed-item.error {
  background: rgba(70, 34, 34, 0.96);
  color: #ffe0e0;
}

.message-feed-item.ultra {
  background: rgba(58, 39, 50, 0.96);
  color: #ff2b75;
}

.message-feed-item.is-fading {
  opacity: 0;
  transform: translateY(6px);
}

#debug-command-input {
  flex: 1;
  height: 34px;
  border: 3px solid rgba(75, 58, 19, 0.34);
  border-radius: 4px;
  background: rgba(20, 31, 23, 0.92);
  color: #fffdf0;
  padding: 0 10px;
  font-size: 13px;
}

#debug-command-input::placeholder {
  color: rgba(255, 253, 240, 0.66);
}

#debug-command-submit {
  min-width: 66px;
  padding: 0 12px;
}

#debug-command-status {
  min-height: 18px;
  width: 100%;
  color: #fffdf0;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

#debug-runtime-indicators {
  min-height: 14px;
  width: 100%;
  color: #fffdf0;
  font-size: 10px;
  font-weight: 800;
  text-align: right;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#hud {
  position: absolute;
  top: 80px;
  left: 26px;
  z-index: 9;
}

#player-card {
  display: flex;
  align-items: center;
  gap: 0;
  transform: scale(0.9);
  transform-origin: top left;
}

#player-portrait,
#death-player-portrait {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  --portrait-skin: #ffe36c;
  background: var(--portrait-skin);
  border: 5px solid #d1be4b;
  box-sizing: border-box;
  z-index: 2;
  --pupil-x: 0px;
  --pupil-y: 0px;
}

#player-portrait::after,
#death-player-portrait::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 10px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 247, 184, 0.14);
  pointer-events: none;
}

#death-player-portrait {
  transform: rotate(-9deg) scale(1.18);
  transform-origin: center center;
  pointer-events: none;
}

#death-player-portrait .portrait-eye {
  width: 16px;
  height: 16px;
  top: 20px;
  background: transparent;
  clip-path: none !important;
  overflow: visible;
}

#death-player-portrait .portrait-eye.left {
  left: 14px;
}

#death-player-portrait .portrait-eye.right {
  right: 14px;
}

#death-player-portrait .portrait-eye::before,
#death-player-portrait .portrait-eye::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 4px;
  margin-left: -9px;
  margin-top: -2px;
  border-radius: 999px;
  background: #111313;
  display: block;
}

#death-player-portrait .portrait-eye::before {
  transform: rotate(45deg);
}

#death-player-portrait .portrait-eye::after {
  transform: rotate(-45deg);
}

#death-player-portrait .portrait-pupil {
  display: none;
}

#death-player-portrait.death-screen__flower--burst {
  animation: death-player-portrait-burst 800ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

@keyframes death-player-portrait-burst {
  0% {
    opacity: 0.55;
    transform: rotate(-9deg) scale(0.98);
  }

  45% {
    opacity: 1;
    transform: rotate(-9deg) scale(1.28);
  }

  100% {
    opacity: 1;
    transform: rotate(-9deg) scale(1.18);
  }
}

.portrait-eye {
  position: absolute;
  top: 18px;
  width: 9px;
  height: 20px;
  clip-path: none;
  border-radius: 50%;
  background: #111313;
  overflow: hidden;
}

.portrait-eye::after {
  display: none;
}

#player-portrait[data-face="attack"] .portrait-eye::after,
#player-portrait[data-face="defend"] .portrait-eye::after,
#death-player-portrait[data-face="attack"] .portrait-eye::after,
#death-player-portrait[data-face="defend"] .portrait-eye::after,
.skill-flower[data-face="attack"] .portrait-eye::after,
.skill-flower[data-face="defend"] .portrait-eye::after {
  opacity: 1;
}

#player-portrait[data-face="attack"] .portrait-eye.left,
#player-portrait[data-face="defend"] .portrait-eye.left,
#death-player-portrait[data-face="attack"] .portrait-eye.left,
#death-player-portrait[data-face="defend"] .portrait-eye.left,
.skill-flower[data-face="attack"] .portrait-eye.left,
.skill-flower[data-face="defend"] .portrait-eye.left {
  clip-path: polygon(-14% -14%, 114% 28%, 114% 114%, -14% 114%);
}

#player-portrait[data-face="attack"] .portrait-eye.right,
#player-portrait[data-face="defend"] .portrait-eye.right,
#death-player-portrait[data-face="attack"] .portrait-eye.right,
#death-player-portrait[data-face="defend"] .portrait-eye.right,
.skill-flower[data-face="attack"] .portrait-eye.right,
.skill-flower[data-face="defend"] .portrait-eye.right {
  clip-path: polygon(-14% 28%, 114% -14%, 114% 114%, -14% 114%);
}

.portrait-brow {
  position: absolute;
  display: none;
  top: 13px;
  width: 20px;
  height: 5px;
  border-radius: 999px;
  background: transparent;
  transform-origin: center;
}

.portrait-brow.left {
  left: 14px;
}

.portrait-brow.right {
  right: 14px;
}

.portrait-eye.left {
  left: 17px;
}

.portrait-eye.right {
  right: 17px;
}

.portrait-pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(var(--pupil-x), var(--pupil-y));
}

.portrait-mouth {
  position: absolute;
  left: 50%;
  bottom: 9px;
  width: 26px;
  height: 14px;
  margin-left: -13px;
  overflow: visible;
  transform-origin: center center;
}

.portrait-mouth-shape {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.portrait-mouth-smile,
.portrait-mouth-frown {
  fill: none;
  stroke: #111313;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 1;
  transition: opacity 90ms ease;
}

.portrait-mouth-frown {
  opacity: 0;
}

#player-portrait[data-face="attack"] .portrait-mouth-smile,
#player-portrait[data-face="defend"] .portrait-mouth-smile,
#death-player-portrait[data-face="attack"] .portrait-mouth-smile,
#death-player-portrait[data-face="defend"] .portrait-mouth-smile,
.skill-flower[data-face="attack"] .portrait-mouth-smile,
.skill-flower[data-face="defend"] .portrait-mouth-smile {
  opacity: 0;
}

#player-portrait[data-face="attack"] .portrait-mouth-frown,
#player-portrait[data-face="defend"] .portrait-mouth-frown,
#death-player-portrait[data-face="attack"] .portrait-mouth-frown,
#death-player-portrait[data-face="defend"] .portrait-mouth-frown,
.skill-flower[data-face="attack"] .portrait-mouth-frown,
.skill-flower[data-face="defend"] .portrait-mouth-frown {
  opacity: 1;
}
#player-portrait[data-face="attack"] .portrait-brow,
#death-player-portrait[data-face="attack"] .portrait-brow,
.skill-flower[data-face="attack"] .portrait-brow {
  background: #d1c04b;
}

#player-portrait[data-face="attack"] .portrait-brow.left,
#death-player-portrait[data-face="attack"] .portrait-brow.left,
.skill-flower[data-face="attack"] .portrait-brow.left {
  transform: rotate(-16deg);
}

#player-portrait[data-face="attack"] .portrait-brow.right,
#death-player-portrait[data-face="attack"] .portrait-brow.right,
.skill-flower[data-face="attack"] .portrait-brow.right {
  transform: rotate(16deg);
}

.player-card-main {
  min-width: 214px;
  margin-top: -4px;
  margin-left: -20px;
  padding-left: 22px;
}

.player-name-overlay,
.player-info-row,
#world-banner-text,
.group-heading,
.quick-key,
.item-name,
.slot-number,
.craft-button,
.craft-chance,
.craft-result,
.panel-subtitle {
  text-shadow: var(--text-outline-shadow);
}

.item-name {
  text-shadow: var(--petal-name-outline-shadow);
}

.player-name-overlay {
  position: absolute;
  top: 0;
  left: calc(3px + var(--hp-fill-start));
  right: 3px;
  bottom: 0;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.05;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 2;
  pointer-events: none;
  text-shadow: var(--player-name-outline-shadow);
}

.player-health-shell {
  position: relative;
  width: 228px;
  height: 34px;
  overflow: visible;
  border-radius: 999px;
  background: #0b0c0b;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.92);
  --hp-fill-start: 12px;
}

.player-health-shell::before {
  content: "";
  position: absolute;
  left: -58px;
  top: 0;
  width: 88px;
  height: 100%;
  border-radius: 999px;
  background: #0b0c0b;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.92);
}

.player-health-fill {
  position: absolute;
  left: calc(3px + var(--hp-fill-start));
  top: 3px;
  bottom: 3px;
  right: auto;
  border-radius: 999px;
  background-color: var(--hp-fill-color, #9cdf4d);
  width: clamp(22px, calc((100% - 6px - var(--hp-fill-start)) * var(--hp-fill-ratio, 1)), calc(100% - 6px - var(--hp-fill-start)));
  will-change: width, background-color;
  transition: background-color 120ms ease;
  opacity: clamp(0, calc(var(--hp-fill-ratio, 1) * 120), 1);
}

.player-health-fill-lag {
  background-color: rgba(255, 86, 86, 0.92);
}

.player-xp-shell {
  position: relative;
  width: 170px;
  height: 7px;
  margin-top: 4px;
  margin-left: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #0b0c0b;
}

.player-xp-fill {
  position: absolute;
  inset: 2px;
  width: calc(100% - 4px);
  border-radius: 999px;
  background: #9cdf4d;
  transform-origin: left center;
}

.player-info-row {
  display: flex;
  gap: 10px;
  margin-top: 4px;
  padding-left: 22px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
}

#world-banner {
  position: absolute;
  top: 10px;
  right: 12px;
  width: max-content;
  z-index: 8;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

#minimap-shell {
  width: 132px;
  height: 132px;
  border-radius: 10px;
  border: 2.5px solid rgba(25, 28, 23, 0.82);
  background: #040404;
  overflow: hidden;
  transition:
    width 140ms ease,
    height 140ms ease,
    border-radius 140ms ease;
}

#world-banner.expanded #minimap-shell {
  width: min(440px, calc(100vw - 24px));
  height: min(440px, calc(100vh - 92px));
  border-radius: 12px;
}

#minimap-canvas {
  width: 100%;
  height: 100%;
  display: block;
  background: #050505;
  image-rendering: pixelated;
}

#world-banner-text {
  width: 100%;
  color: #f1ffd6;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
}

#quick-actions {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 11;
  display: grid;
  gap: 10px;
}

.quick-button {
  position: relative;
  width: 64px;
  height: 64px;
  border: 4.3333px solid rgba(60, 52, 19, 0.24);
  border-radius: 6px;
  cursor: pointer;
  transition:
    transform 90ms ease,
    filter 90ms ease;
}

.quick-button.settings-launch-button {
  position: fixed;
  left: 8px;
  top: 8px;
  z-index: 30;
  width: 51.5px;
  height: 51.5px;
  border-width: 3.12px;
  border-radius: 9px;
  background: #aaaaaa;
  border-color: #8a8a8a;
}

.quick-button.settings-launch-button .quick-icon {
  inset: 4.7px;
}

.quick-button.update-log-launch-button {
  position: fixed;
  left: 66.5px;
  top: 8px;
  z-index: 30;
  width: 51.5px;
  height: 51.5px;
  border-width: 3.12px;
  border-radius: 9px;
  background: #b7cf6a;
}

.quick-button.update-log-launch-button .quick-icon {
  inset: 7px;
}

.inventory-button {
  background: #6fa9da;
}

.craft-button-ui {
  background: #db9d5a;
  border-color: #b17f49;
}

.gallery-button {
  background: #dbc64d;
}

.skill-button {
  background: #db5a5a;
  border-color: #b14949;
}

.quick-button.active {
  transform: none;
  filter: brightness(0.95);
}

.quick-button:disabled {
  opacity: 0.95;
  cursor: not-allowed;
}

.quick-icon {
  position: absolute;
  inset: 10px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: none;
}

.quick-icon-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: var(--text-outline-shadow);
}

.inventory-icon {
  background-image: url("assets/images/UI/INVENTORY_ICON.svg");
}

.craft-icon {
  background-image: url("assets/images/UI/CRAFTING_ICON.svg");
}

.gallery-icon {
  background-image: url("assets/images/UI/MOBGALLARY_ICON.svg");
}

.settings-icon {
  background-image: url("assets/images/UI/garlic.svg");
}

.update-log-icon {
  background-image: url("assets/images/UI/scroll..svg");
}

.skill-icon {
  background-image: url("assets/images/UI/skill.svg");
}

.quick-key {
  position: absolute;
  right: 6px;
  bottom: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.quick-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  border: 3px solid rgba(83, 69, 18, 0.36);
  border-radius: 999px;
  background: #f2dd8e;
  color: #26200d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 900;
  text-shadow: none;
  z-index: 2;
}

#skill-button .quick-badge {
  display: none !important;
}

#zone-name,
#xp-label,
.player-info-row {
  display: none !important;
}

#panels {
  position: absolute;
  left: 90px;
  right: 12px;
  top: auto;
  bottom: 8px;
  z-index: 41;
  pointer-events: none;
}

.panel {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  border: 5px solid var(--panel-frame-color, var(--panel-border));
  overflow: hidden;
  transform: translate3d(0, calc(100% + 40px), 0);
  pointer-events: none;
  transition:
    transform 200ms cubic-bezier(0.25, 0.85, 0.35, 1);
}

.panel.panel-open {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.panel.panel-fast-exit {
  transition-duration: 100ms;
}

.panel.hidden,
.hidden {
  display: none !important;
}

.inventory-panel {
  width: min(calc(5 * var(--panel-petal-box-size) + 4 * 10px + 56px + 12px + 16px), calc(100vw - 112px));
  height: min(calc(740px - var(--panel-petal-box-size) - 10px), calc(100vh - 72px));
  --panel-frame-color: #4981b1;
  background: #5a9fdb;
}

.craft-panel {
  width: min(612px, calc(100vw - 112px));
  height: min(740px, calc(100vh - 72px));
  --panel-frame-color: #b17f49;
  background: #db9d5a;
}

.craft-panel.absorb-mode {
  --panel-frame-color: #774cb3;
  background: #9262e1;
}

.gallery-panel {
  width: min(calc(7 * var(--gallery-slot-size) + 6 * 6px + 28px + 24px), calc(100vw - 112px));
  height: min(572px, calc(100vh - 118px));
  background: var(--gallery-olive);
}

.skill-panel {
  width: min(612px, calc(100vw - 112px));
  height: min(680px, calc(100vh - 88px));
  --panel-frame-color: #b54b4b;
  background:
    radial-gradient(circle at 50% 90%, rgba(165, 45, 45, 0.56), transparent 35%),
    linear-gradient(180deg, rgba(230, 95, 95, 0.9), rgba(206, 72, 72, 0.96));
}

.settings-panel {
  width: min(438px, calc(100vw - 24px));
  height: min(496px, calc(100vh - 24px));
  background: #b6b6b6;
}

.top-left-panel {
  position: fixed;
  left: 8px;
  top: 66px;
  right: auto;
  bottom: auto;
  z-index: 42;
  transform: translate3d(calc(-100% - 16px), 0, 0);
  transition:
    transform 200ms cubic-bezier(0.25, 0.85, 0.35, 1);
}

.top-left-panel.top-left-fast-exit {
  transition-duration: 100ms;
}

.panel-header {
  display: flex;
  position: relative;
  align-items: center;
  justify-content: center;
  padding: 14px 46px 8px;
  color: #fffdf0;
  z-index: 6;
}

.skill-panel .panel-header {
  background: transparent;
  z-index: 5;
}

.panel-header h2 {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  text-shadow: var(--panel-title-shadow);
}

.panel-subtitle {
  margin: 4px 0 12px;
  color: #fffdf0;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.icon-button {
  position: absolute;
  right: 14px;
  top: 12px;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 2.6px solid #974545;
  border-radius: 8px;
  background: #bb5555;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none;
}

.panel-switch-button {
  position: absolute;
  right: 52px;
  top: 12px;
  height: 30px;
  min-width: 74px;
  padding: 0 10px;
  border: 2px solid #774cb3;
  border-radius: 9px;
  background: #9262e1;
  color: #fffdf0;
  font-size: 12px;
  font-weight: 900;
  text-shadow: var(--text-outline-shadow);
  cursor: pointer;
  user-select: none;
  z-index: 7;
}

.craft-panel.absorb-mode .panel-switch-button {
  border-color: #b17f49;
  background: #db9d5a;
}

.icon-button img {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.update-log-header .icon-button {
  position: static;
  right: auto;
  top: auto;
  flex: 0 0 auto;
}

.xp-popup-header .icon-button {
  position: static;
  right: auto;
  top: auto;
  flex: 0 0 auto;
}

.inventory-toolbar {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 16px 12px;
}

.inventory-toolbar input {
  flex: 1;
  height: 34px;
  border: 2.5px solid #000000;
  border-radius: 2px;
  background: rgba(255, 251, 239, 0.92);
  color: #1a231d;
  padding: 0 10px;
}

.settings-body {
  flex: 1;
  padding: 10px 14px 14px;
  overflow: auto;
  color: #ffffff;
  text-shadow: var(--text-outline-shadow);
}

.skill-panel-body {
  flex: 1;
  position: relative;
  margin-top: -54px;
  overflow: hidden;
  background: transparent;
}

.skill-topbar {
  position: absolute;
  left: 16px;
  top: 66px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-points-display {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff5d6;
  font-size: 20px;
  font-weight: 900;
  text-shadow: var(--text-outline-shadow);
}

.skill-points-count {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(49, 39, 39, 0.86);
  border: 4px solid rgba(106, 83, 83, 0.42);
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-points-label {
  line-height: 1;
  letter-spacing: 0.02em;
}

.skill-tree-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
}

.skill-tree-viewport.dragging {
  cursor: grabbing;
}

.skill-tree-lines,
.skill-tree-stage {
  position: absolute;
  inset: 0;
}

.skill-tree-lines {
  overflow: visible;
  z-index: 1;
}

.skill-tree-stage {
  z-index: 2;
}

.skill-branch-line {
  stroke: rgba(154, 54, 54, 0.9);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  opacity: 0.88;
}

.skill-node {
  --skill-node-fill: #858585;
  --skill-node-border: #676767;
  --skill-node-text: #fff7da;
  position: absolute;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  border-radius: 50%;
  border: 4px solid var(--skill-node-border);
  background: var(--skill-node-fill);
  color: var(--skill-node-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  text-shadow: var(--text-outline-shadow);
  user-select: none;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    opacity 120ms ease;
  cursor: default;
  overflow: hidden;
}

.skill-node.locked {
  opacity: 0.66;
}

.skill-node.available {
  background: var(--skill-node-fill, #8f8f8f);
  border-color: var(--skill-node-border, #5f5f5f);
  cursor: pointer;
}

.skill-node.available:hover {
  transform: scale(1.04);
}

.skill-node.holding {
  animation: skill-node-hold-pulse 300ms ease-in-out infinite;
}

.skill-node.purchased:not([data-rarity-node="true"]) {
  background: #f0e68a;
  border-color: #c9af5a;
  color: #2f2410;
  text-shadow: none;
}

.skill-node[data-rarity-node="true"] {
  color: #fffdf5;
}

.skill-node.locked[data-rarity-node="true"] {
  opacity: 0.8;
  filter: saturate(0.45) brightness(0.82);
}

.skill-node.purchased[data-rarity-node="true"] {
  color: #fffdf5;
}

.skill-node-cost {
  position: absolute;
  top: -12px;
  right: -6px;
  color: #ff6e6e;
  font-size: 15px;
  font-weight: 900;
  text-shadow: var(--text-outline-shadow);
}

.skill-node-label {
  max-width: 52px;
  text-align: center;
  line-height: 0.95;
  font-size: 15px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.skill-node-icon {
  width: 34px;
  height: 34px;
  display: block;
}

.skill-node-icon-image {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.skill-node.purchased .skill-node-cost {
  color: #704823;
}

.skill-node[data-rarity-node="true"] .skill-node-cost {
  color: #fff6d6;
}

.skill-node.locked[data-rarity-node="true"] .skill-node-cost {
  color: rgba(255, 246, 214, 0.88);
}

.skill-flower-wrap {
  position: absolute;
  left: 50%;
  top: 52%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  width: auto;
  max-width: calc(100% - 48px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.skill-flower {
  position: relative;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #ebdf62;
  border: 4px solid #d1c04b;
  box-shadow: none;
  --pupil-x: 0px;
  --pupil-y: 0px;
}

.skill-flower::before {
  display: none;
}

.skill-flower .portrait-eye {
  top: 16px;
  width: 9px;
  height: 20px;
}

.skill-flower .portrait-eye.left {
  left: 17px;
}

.skill-flower .portrait-eye.right {
  right: 17px;
}

.skill-flower .portrait-pupil {
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  margin-top: -3.5px;
}

.skill-tree-stats {
  position: static;
  transform: none;
  min-width: 0;
  max-width: 220px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: #fff4cc;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.22;
  white-space: normal;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.skill-tree-stat.health {
  color: #79ff72;
}

.skill-tree-stat.damage {
  color: #ff8f8f;
}

.skill-tree-stat.utility {
  color: #ffe0c5;
}

.skill-tree-stat small {
  display: block;
  font-size: 13px;
  color: #ffe0c5;
}

.skill-branch-tag {
  position: absolute;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(44, 31, 31, 0.84);
  border: 1px solid rgba(255, 232, 187, 0.2);
  color: #fff4d9;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 2;
}

.skill-reset-button {
  position: absolute;
  left: 16px;
  bottom: 18px;
  z-index: 4;
  min-width: 92px;
  pointer-events: auto;
  border-color: #b22020;
  background: #df3232;
}

@keyframes skill-node-hold-pulse {
  0% {
    transform: scale(1);
    box-shadow: none;
  }
  50% {
    transform: scale(0.92);
    box-shadow: none;
  }
  100% {
    transform: scale(1);
    box-shadow: none;
  }
}

.settings-section {
  margin-bottom: 14px;
  padding: 10px 12px 12px;
  border: 3px solid rgba(77, 77, 77, 0.28);
  border-radius: 6px;
  background: rgba(248, 248, 248, 0.42);
}

.settings-section-title {
  margin-bottom: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: var(--text-outline-shadow);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 15px;
  font-weight: 800;
}

.settings-row:last-child {
  margin-bottom: 0;
}

.checkbox-row input {
  appearance: none;
  width: 26px;
  height: 26px;
  border: 3px solid #333333;
  border-radius: 3px;
  background: #666666;
  cursor: pointer;
  transition: background 90ms ease;
}

.checkbox-row input:checked {
  background: #dddddd;
}

.checkbox-row input:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.slider-row strong {
  min-width: 70px;
  text-align: right;
}

.settings-slider {
  width: 100%;
  margin-bottom: 10px;
}

.settings-slider:last-child {
  margin-bottom: 0;
}

.level-row {
  align-items: center;
}

.settings-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-inline-actions input {
  width: 92px;
  height: 34px;
  border: 3px solid rgba(75, 58, 19, 0.24);
  border-radius: 4px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.9);
  font-weight: 800;
}

.settings-select {
  min-width: 158px;
  height: 34px;
  border: 3px solid rgba(75, 58, 19, 0.24);
  border-radius: 4px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #1b1b1b;
  font-weight: 800;
  box-shadow: none;
}

.settings-inline-actions button,
.settings-action-grid button {
  height: 34px;
  border: 2.6667px solid #9b9b9b;
  border-radius: 6px;
  background: rgba(248, 248, 248, 0.94);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
  padding: 0 12px;
  text-shadow: var(--text-outline-shadow);
}

.settings-inline-actions button:active,
.settings-action-grid button:active,
.settings-reset-button:active {
  background: #7f7f7f;
  transform: translateY(2px);
}

.settings-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.settings-reset-button {
  width: 100%;
  margin-top: 10px;
  height: 36px;
  border: 2.6667px solid #9b9b9b;
  border-radius: 6px;
  background: rgba(248, 248, 248, 0.94);
  color: #ffffff;
  font-weight: 900;
  text-shadow: var(--text-outline-shadow);
  cursor: pointer;
}

#freddy-overlay {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.86);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

#freddy-overlay.visible {
  opacity: 1;
}

#freddy-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inventory-groups,
.craft-list,
.gallery-grid {
  overflow: auto;
  padding: 0 14px 14px;
  flex: 1 1 auto;
  min-height: 0;
}

.inventory-groups {
  max-height: none;
  padding-left: 28px;
  padding-right: 28px;
}

.craft-list {
  max-height: none;
}

.craft-list {
  padding-top: 14px;
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 18px;
  overflow-x: hidden;
}

.inventory-groups::-webkit-scrollbar,
.craft-list::-webkit-scrollbar,
.gallery-grid::-webkit-scrollbar,
.settings-body::-webkit-scrollbar,
.update-log-body::-webkit-scrollbar {
  width: 12px;
}

.inventory-groups::-webkit-scrollbar-track,
.craft-list::-webkit-scrollbar-track,
.gallery-grid::-webkit-scrollbar-track,
.settings-body::-webkit-scrollbar-track,
.update-log-body::-webkit-scrollbar-track {
  background: transparent;
}

.inventory-groups::-webkit-scrollbar-thumb,
.craft-list::-webkit-scrollbar-thumb,
.gallery-grid::-webkit-scrollbar-thumb,
.settings-body::-webkit-scrollbar-thumb,
.update-log-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.inventory-group {
  margin-bottom: 12px;
}

.gallery-row {
  display: grid;
  grid-template-columns: repeat(7, var(--gallery-slot-size));
  gap: 6px;
  justify-content: flex-start;
}

.gallery-slot {
  --petal-tile-size: var(--gallery-slot-size);
  --petal-unit: calc(var(--petal-tile-size) / 16.8);
  --petal-border-size: calc(var(--petal-unit) * 1.4);
  position: relative;
  width: var(--gallery-slot-size);
  height: var(--gallery-slot-size);
  border-radius: var(--petal-tile-radius);
  border: var(--petal-border-size) solid var(--slot-dark-stroke);
  background: var(--slot-dark);
  overflow: visible;
  transition:
    transform 90ms ease,
    background 90ms ease,
    border-color 90ms ease;
}

.gallery-slot.discovered {
  cursor: pointer;
}

.gallery-slot[data-rarity="common"].discovered {
  background: #7eef6d;
  border-color: #66c258;
}

.gallery-slot[data-rarity="uncommon"].discovered {
  background: #ffe65d;
  border-color: #cfba4b;
}

.gallery-slot[data-rarity="rare"].discovered {
  background: #4d52e3;
  border-color: #3e42b8;
}

.gallery-slot[data-rarity="epic"].discovered {
  background: #861fde;
  border-color: #6d19b4;
}

.gallery-slot[data-rarity="legendary"].discovered {
  background: #de1f1f;
  border-color: #b41919;
}

.gallery-slot[data-rarity="mystic"].discovered {
  background: #1fdbde;
  border-color: #19b1b4;
}

.gallery-slot[data-rarity="ultra"].discovered {
  background: #ff2b75;
  border-color: #cf235f;
}

.gallery-slot img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
  margin: 10% auto 0;
}

.group-heading {
  position: relative;
  margin: 0 0 10px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
}

.group-heading::before,
.group-heading::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 58px);
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.14);
}

.group-heading::before {
  left: 0;
}

.group-heading::after {
  right: 0;
}

.inventory-grid,
.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, var(--panel-petal-box-size));
  grid-auto-rows: var(--panel-petal-box-size);
  gap: 10px;
  justify-content: flex-start;
}

.inventory-grid {
  width: 100%;
  grid-template-columns: repeat(5, var(--panel-petal-box-size));
  column-gap: 10px;
  row-gap: 10px;
  justify-content: flex-start;
}

.craft-grid {
  grid-template-columns: repeat(7, var(--panel-petal-box-size));
}

.craft-placeholder {
  --petal-tile-size: var(--panel-petal-box-size);
  --petal-unit: calc(var(--petal-tile-size) / 16.8);
  --petal-border-size: calc(var(--petal-unit) * 1.4);
  --craft-placeholder-color: rgba(0, 0, 0, 0.22);
  width: var(--panel-petal-box-size);
  height: var(--panel-petal-box-size);
  border-radius: var(--petal-tile-radius);
  border: none;
  background: var(--craft-placeholder-color);
  cursor: default;
  box-sizing: border-box;
}

.craft-row {
  margin-bottom: 14px;
}

.item-card-remove-shell {
  position: relative;
  width: var(--panel-petal-box-size);
  height: var(--panel-petal-box-size);
}

.item-card-remove-shell .craft-placeholder,
.item-card-remove-shell .item-card {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.item-card,
.craft-preview-item {
  --rarity-box-fill: #7eef6d;
  --rarity-box-border: #66c258;
  --petal-tile-size: var(--panel-petal-box-size);
  --petal-unit: calc(var(--petal-tile-size) / 16.8);
  --petal-border-size: calc(var(--petal-unit) * 1.4);
  --petal-name-gap: calc(var(--petal-unit) * 0.4);
  --petal-name-band: calc(var(--petal-unit) * 3.2);
  position: relative;
  width: var(--panel-petal-box-size);
  height: var(--panel-petal-box-size);
  min-height: var(--panel-petal-box-size);
  border: var(--petal-border-size) solid var(--rarity-box-border);
  border-radius: var(--petal-tile-radius);
  display: block;
  background: var(--rarity-box-fill) !important;
  cursor: pointer;
  overflow: visible;
  transition: none;
  touch-action: none;
  user-select: none;
  box-shadow: none;
}

.item-card.disabled {
  cursor: default;
}

.petal-icon {
  --icon-scale: 1;
  position: absolute;
  left: var(--petal-border-size);
  right: var(--petal-border-size);
  top: calc(var(--petal-border-size) + var(--petal-unit) * 1.1);
  bottom: calc(var(--petal-border-size) + var(--petal-name-gap) + var(--petal-name-band) - var(--petal-unit) * 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
  overflow: visible;
}

.craft-preview-item .petal-icon[data-particle-count="1"]:not([data-type="light"]) {
  --icon-scale: 1.2;
}

.petal-icon[data-type="heavy"] {
  --icon-scale: 0.9;
}

.craft-preview-item .petal-icon[data-type="heavy"] {
  --icon-scale: 0.9;
}

.petal-icon[data-type="moon"] {
  --icon-scale: 0.78;
}

.petal-icon[data-type="rock"] {
  --icon-scale: 1.1;
}

.petal-icon[data-type="antennae"] {
  --icon-scale: 0.88;
}

.petal-icon[data-type="antegg"] {
  --icon-scale: 0.9;
}

.petal-icon[data-type="thirdeye"] {
  --icon-scale: 0.86;
}

.petal-icon[data-type="royaljelly"] {
  --icon-scale: 0.9;
}

.petal-icon-svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: none;
}

.petal-icon-stack {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
}

.petal-icon > .petal-icon-stack,
.petal-icon > .petal-icon-svg,
.petal-icon > img,
.petal-icon > svg {
  transform: scale(var(--icon-scale));
  transform-origin: center center;
}

.petal-icon img,
.petal-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
}

.petal-icon-piece {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--piece-size) !important;
  height: var(--piece-size) !important;
  max-width: none;
  max-height: none;
  transform: translate(
      calc(-50% + var(--piece-center-offset-x, 0px) + var(--piece-offset-x)),
      calc(-50% + var(--piece-center-offset-y, 0px) + var(--piece-offset-y))
    ) rotate(var(--piece-rotation, 0rad)) scale(var(--piece-scale, 1));
  transform-origin: center;
}

.petal-icon-asset {
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.item-card .petal-icon-asset,
.craft-preview-item .petal-icon-asset {
  width: 100% !important;
  height: 100% !important;
}

.primary-row .hotbar-slot .petal-icon-asset {
  width: 100% !important;
  height: 100% !important;
}

.secondary-row .hotbar-slot .petal-icon-asset {
  width: 100% !important;
  height: 100% !important;
}

.item-name,
.item-count {
  position: absolute;
  color: #fff;
  font-weight: 800;
}

.item-name {
  left: var(--petal-border-size);
  right: var(--petal-border-size);
  bottom: 5px;
  text-shadow: var(--petal-name-outline-shadow);
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.02em;
  text-align: center;
  z-index: 4;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
  padding-top: 2px;
  padding-bottom: 3px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.item-count {
  top: -8px;
  right: -12px;
  z-index: 10;
  text-shadow:
    -1.5px 0 0 rgba(0, 0, 0, 0.82),
    1.5px 0 0 rgba(0, 0, 0, 0.82),
    0 -1.5px 0 rgba(0, 0, 0, 0.82),
    0 1.5px 0 rgba(0, 0, 0, 0.82),
    -1.5px -1.5px 0 rgba(0, 0, 0, 0.72),
    1.5px -1.5px 0 rgba(0, 0, 0, 0.72),
    -1.5px 1.5px 0 rgba(0, 0, 0, 0.72),
    1.5px 1.5px 0 rgba(0, 0, 0, 0.72);
  font-size: 17.4px;
  font-style: normal;
  transform: rotate(18deg);
  transform-origin: top right;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
}

.item-card.disabled {
  filter: grayscale(1);
  opacity: 0.42;
  pointer-events: none;
  cursor: default;
}

.craft-top {
  display: flex;
  position: relative;
  gap: 16px;
  align-items: center;
  padding: 8px 18px 0;
}

.craft-preview {
  flex: 1;
  position: relative;
  min-height: 244px;
  height: 244px;
}

.absorb-preview-base {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(111, 72, 25, 0.24);
  pointer-events: auto;
}

.absorb-preview-base.square {
  border-radius: 2px;
}

.absorb-preview-base.circle {
  border-radius: 999px;
}

.craft-panel.absorb-mode .craft-preview-slot {
  background: transparent;
}

.craft-preview-slot {
  position: absolute;
  width: 69px;
  height: 69px;
  border-radius: 2px;
  border: none;
  background: rgba(111, 72, 25, 0.24);
  overflow: visible;
  pointer-events: none;
  transition: none;
}

.craft-preview-slot.result {
  cursor: pointer;
  pointer-events: auto;
}

.craft-preview-slot.clickable {
  cursor: pointer;
  pointer-events: auto;
}

.craft-preview-slot .craft-preview-item {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.craft-preview-slot .craft-preview-item .petal-icon {
  padding: 0;
}

.craft-preview-particle {
  position: absolute;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.craft-preview.absorb-pulsing .craft-preview-item {
  animation: absorbPulse 520ms ease-in-out infinite;
}

@keyframes absorbPulse {
  0% {
    transform: scale(0.92);
  }
  50% {
    transform: scale(1.14);
  }
  100% {
    transform: scale(0.92);
  }
}

.craft-preview-item.absorb-wheel-zoom {
  animation: absorbWheelZoom 160ms ease-out 1;
}

@keyframes absorbWheelZoom {
  0% {
    transform: scale(0.74);
  }
  60% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.item-card.inv-equip-pop {
  animation: invEquipPop 70ms ease-out 1;
}

@keyframes invEquipPop {
  0% {
    transform: scale(1);
  }
  65% {
    transform: scale(1.02);
  }
  100% {
    transform: scale(1);
  }
}

.item-card.craft-queue-shrink {
  animation: craftQueueShrink 60ms ease-out 1;
}

@keyframes craftQueueShrink {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0.97);
  }
}

.item-card.item-card-remove {
  animation: itemCardRemove 110ms ease-in 1 forwards;
  pointer-events: none;
}

@keyframes itemCardRemove {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.06) rotate(120deg);
    opacity: 0;
  }
}

.craft-preview-item.wheel-zoom {
  animation: wheelZoom 90ms ease-out 1;
}

@keyframes wheelZoom {
  0% {
    transform: scale(0.75);
  }
  70% {
    transform: scale(1.06);
  }
  100% {
    transform: scale(1);
  }
}

.craft-preview-item.wheel-remove {
  animation: wheelRemove 90ms ease-in 1 forwards;
  pointer-events: none;
}

@keyframes wheelRemove {
  0% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(0.06) rotate(160deg);
    opacity: 0;
  }
}

.absorb-confetti {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  transform: translate(-50%, -50%);
  background: var(--confetti-color, #fffdf0);
  animation: absorbConfetti var(--confetti-duration, 700ms) ease-out forwards;
  pointer-events: none;
}

@keyframes absorbConfetti {
  0% {
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--confetti-dx, 0px)), calc(-50% + var(--confetti-dy, 0px))) rotate(var(--confetti-rot, 0deg))
      scale(0.9);
    opacity: 0;
  }
}

.craft-side {
  width: 112px;
  min-height: 244px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.craft-button {
  min-width: 74px;
  height: 30px;
  margin: 2px;
  padding: 0 12px;
  border: 2px solid #606060;
  border-radius: 10px;
  background: #777777;
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-shadow: var(--text-outline-shadow);
  cursor: pointer;
}

.craft-button.ready {
  filter: none;
}

.craft-chance,
.craft-note,
.craft-result {
  margin: 10px 0 0;
  color: #fffdf0;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.craft-chance {
  margin-top: 2px;
  font-size: 12px;
  white-space: nowrap;
}

.craft-note {
  padding: 8px 20px 6px;
  min-height: 54px;
}

.craft-result {
  margin-top: 4px;
  padding: 0 20px 8px;
}

.absorb-xp-wrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  padding: 0 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 5;
}

.absorb-xp-shell {
  position: relative;
  width: min(720px, 100%);
  height: 38px;
  border-radius: 999px;
  background: #0b0c0b;
  overflow: hidden;
}

.absorb-xp-preview-fill {
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  right: auto;
  border-radius: 999px;
  background: rgba(242, 246, 95, 0.35);
  width: clamp(28px, calc((100% - 10px) * var(--absorb-xp-preview-ratio, 0)), calc(100% - 10px));
  will-change: width;
  z-index: 1;
  pointer-events: none;
  filter: brightness(calc(1 - var(--absorb-xp-preview-dim, 0) * 0.45));
  opacity: clamp(0, calc(var(--absorb-xp-preview-ratio, 0) * 120), 1);
}

.absorb-xp-fill {
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  right: auto;
  border-radius: 999px;
  background: #f2f65f;
  width: clamp(28px, calc((100% - 10px) * var(--absorb-xp-ratio, 0)), calc(100% - 10px));
  will-change: width;
  z-index: 2;
  pointer-events: none;
  filter: brightness(calc(1 - var(--absorb-xp-dim, 0) * 0.45));
  opacity: clamp(0, calc(var(--absorb-xp-ratio, 0) * 120), 1);
}

.absorb-xp-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
  max-width: calc(100% - 170px);
  overflow: hidden;
  text-overflow: ellipsis;
  text-shadow: var(--text-outline-shadow);
  pointer-events: none;
  z-index: 3;
}

.absorb-next-sp {
  position: absolute;
  right: 30px;
  top: -18px;
  color: #fffdf0;
  font-size: 12px;
  font-weight: 900;
  text-shadow: var(--text-outline-shadow);
  pointer-events: none;
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 4;
}

.absorb-xp-gain {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(242, 246, 95, 0.95);
  font-size: 12px;
  font-weight: 900;
  text-shadow: var(--text-outline-shadow);
  user-select: none;
  pointer-events: none;
  z-index: 4;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#hotbar-shell {
  position: absolute;
  left: 50%;
  bottom: 2px;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: auto;
}

.hotbar-top-row,
.hotbar-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hotbar-bottom-row {
  margin-top: 8px;
  align-items: center;
}

.hotbar-row {
  display: flex;
  gap: 10px;
}

.hotbar-side-label,
.hotbar-spacer {
  width: 34px;
  text-align: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding-bottom: 0;
}

.hotbar-bottom-row .hotbar-side-label,
.hotbar-bottom-row .hotbar-spacer {
  padding-bottom: 0;
  min-height: 65px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.hotbar-bottom-row .hotbar-side-label {
  line-height: 18px;
  padding-top: 47px;
  transform: none;
}

.hotbar-cell {
  position: relative;
}

.secondary-row .hotbar-cell {
  padding-bottom: 18px;
}

.hotbar-slot {
  --petal-tile-size: var(--panel-petal-box-size);
  --petal-unit: calc(var(--petal-tile-size) / 16.8);
  --petal-border-size: calc(var(--petal-unit) * 1.4);
  --petal-name-gap: calc(var(--petal-unit) * 0.4);
  --petal-name-band: calc(var(--petal-unit) * 3.2);
  position: relative;
  isolation: isolate;
  display: block;
  --rarity-box-fill: var(--hotbar-square);
  --rarity-box-border: var(--hotbar-square-stroke);
  background: transparent;
  border: none;
  border-radius: var(--petal-tile-radius);
  overflow: visible;
  transition: none;
  touch-action: none;
  user-select: none;
}

.hotbar-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--petal-tile-radius);
  background: var(--rarity-box-fill);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}

.hotbar-slot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--petal-tile-radius);
  border: var(--petal-border-size) solid var(--rarity-box-border);
  pointer-events: none;
  z-index: 4;
}

.hotbar-slot .petal-icon {
  z-index: 1;
}

.hotbar-slot .reload-mask {
  z-index: 2;
}


.hotbar-slot.filled {
  opacity: 1;
}

.hotbar-slot.nonstack-disabled {
  filter: grayscale(1);
}

.primary-row .hotbar-slot {
  width: var(--panel-petal-box-size);
  height: var(--panel-petal-box-size);
}

.secondary-row .hotbar-slot {
  --petal-tile-size: 47px;
  width: 47px;
  height: 47px;
}

.hotbar-slot .item-name {
  z-index: 5;
}

.hotbar-slot .petal-icon-asset,
.hotbar-slot .item-name {
  opacity: 0.95;
}

.slot-number {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18px;
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.reload-mask {
  position: absolute;
  inset: 0;
  border-radius: var(--petal-tile-radius);
  overflow: hidden;
  pointer-events: none;
}

.reload-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.reload-sweep {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0.95;
}

.drag-origin {
  opacity: 1;
  transform: none;
}

.hotbar-slot.drag-origin.drag-detached {
  --rarity-box-fill: var(--hotbar-square) !important;
  --rarity-box-border: var(--hotbar-square-stroke) !important;
  opacity: 1 !important;
}

.hotbar-slot.drag-origin.drag-detached > * {
  opacity: 0;
  transition: none;
}

.hotbar-slot.slot-detached {
  --rarity-box-fill: var(--hotbar-square) !important;
  --rarity-box-border: var(--hotbar-square-stroke) !important;
  opacity: 1 !important;
}

.hotbar-slot.slot-detached > * {
  opacity: 0;
  transition: none;
}

.drag-proxy {
  position: fixed !important;
  left: 0;
  top: 0;
  margin: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 1;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.24));
}

.ui-transfer-proxy {
  position: fixed !important;
  margin: 0;
  z-index: 190;
  pointer-events: none;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.22));
  transform-origin: center center;
  will-change: transform, opacity;
}

.drag-proxy .item-count {
  display: none;
}

.drag-proxy .reload-mask,
.ui-transfer-proxy .reload-mask {
  display: none !important;
}

.drag-proxy .petal-icon-asset,
.drag-proxy .item-name {
  opacity: 1 !important;
}

.drag-proxy.settling {
  opacity: 0;
  transition: opacity 60ms linear;
}

.drop-settle {
  animation: drop-settle 150ms ease-out;
}

.hotbar-slot.drag-snap-target {
  box-shadow: none;
}

@keyframes drop-settle {
  0% {
    transform: scale(0.88);
  }

  60% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

#death-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(0, 0, 0, 0.22) 0%, rgba(0, 0, 0, 0.55) 58%, rgba(0, 0, 0, 0.78) 100%);
  opacity: 0;
  pointer-events: auto;
  transition: opacity 200ms ease;
}

#death-overlay.death-overlay--shown {
  opacity: 1;
  pointer-events: auto;
}

#death-overlay.death-overlay--leaving {
  opacity: 0;
  pointer-events: none;
}

.death-screen {
  width: min(720px, calc(100vw - 32px));
  min-height: min(84vh, 760px);
  margin-top: -24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 16px 4px;
  border-radius: 0;
  background: transparent;
  text-align: center;
  color: #ffffff;
  opacity: 0;
  transform: translate3d(0, -120px, 0);
  transition:
    transform 260ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 260ms cubic-bezier(0.2, 0.9, 0.2, 1);
  transition-delay: 90ms;
  text-shadow:
    -2px 0 0 rgba(0, 0, 0, 0.94),
    2px 0 0 rgba(0, 0, 0, 0.94),
    0 -2px 0 rgba(0, 0, 0, 0.94),
    0 2px 0 rgba(0, 0, 0, 0.94),
    -2px -2px 0 rgba(0, 0, 0, 0.94),
    2px -2px 0 rgba(0, 0, 0, 0.94),
    -2px 2px 0 rgba(0, 0, 0, 0.94),
    2px 2px 0 rgba(0, 0, 0, 0.94);
}

#death-overlay.death-overlay--shown .death-screen {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.death-screen__lead {
  margin-top: 76px;
  font-size: clamp(17px, 2.46vw, 23px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.92;
  color: #fff;
}

.death-screen__mob {
  margin-top: 4px;
  font-size: clamp(20px, 3.28vw, 31px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.92;
  color: #fff;
}

.death-screen__stack {
  position: relative;
  width: min(272px, calc(100vw - 56px));
  height: min(272px, calc(100vw - 56px));
  display: grid;
  place-items: center;
  perspective: 900px;
  overflow: hidden;
  margin-top: -74px;
}

.death-screen__petal-ring {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateZ(0deg);
  display: none;
}

.death-screen__petal {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--petal-size, 34px);
  height: var(--petal-size, 34px);
  transform:
    translate(-50%, -50%)
    translateY(var(--petal-rise, 0px))
    rotate(var(--petal-angle, 0rad))
    translateX(var(--petal-dist, 118px))
    rotate(var(--petal-rot, 0deg))
    translateZ(calc(var(--petal-depth, 0) * 52px));
  filter: none;
  user-select: none;
  pointer-events: none;
}

.death-screen__petal > .petal-icon-stack,
.death-screen__petal > .petal-icon-svg,
.death-screen__petal > img,
.death-screen__petal > svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.death-screen__flower {
  position: relative;
  z-index: 160;
  width: 72px;
  height: 72px;
}

.death-screen__continue {
  margin-top: -84px;
  color: #fff;
  position: relative;
  z-index: 8;
}

.death-drops-panel {
  position: absolute;
  top: 12px;
  right: 12px;
  width: min(364px, calc(100vw - 24px));
  max-height: none;
  padding: 14px 14px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.78);
  z-index: 9;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.death-drops__title {
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: center;
}

.death-drops__body {
  --panel-petal-box-size: 69px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--panel-petal-box-size), var(--panel-petal-box-size)));
  gap: 10px;
  justify-content: flex-start;
  align-content: start;
  overflow: visible;
  padding: 8px;
}

.death-drops__body .item-card {
  width: var(--panel-petal-box-size);
  height: var(--panel-petal-box-size);
  filter: none !important;
  opacity: 1 !important;
}

.death-drops__item {
  cursor: default !important;
  pointer-events: none !important;
}

.death-drops__empty {
  grid-column: 1 / -1;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  padding: 8px 4px;
}

.tooltip {
  position: fixed;
  z-index: 80;
  min-width: 258px;
  max-width: 372px;
  padding: 12px 14px 13px;
  border-radius: 7px;
  border: none;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 4px, 0);
  transition:
    opacity 100ms linear,
    transform 100ms ease,
    visibility 0s linear 100ms;
}

.tooltip,
.tooltip * {
  box-shadow: none !important;
}

.tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 100ms linear,
    transform 100ms ease;
}

.tooltip.upgrade-tooltip {
  border: none;
  background: rgba(0, 0, 0, 0.4);
}

.tooltip-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.tooltip-title-block {
  min-width: 0;
  flex: 1;
}

.tooltip-title {
  margin: 0;
  color: #eff7ff;
  font-size: 17px;
  line-height: 1.02;
  font-weight: 800;
}

.tooltip.upgrade-tooltip .tooltip-title {
  color: #fff;
}

.tooltip .rarity-line {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1;
  font-weight: 800;
}

.tooltip-body {
  margin-top: 11px;
}

.tooltip p {
  margin: 0;
  color: #eff7ff;
  font-size: 13px;
  line-height: 1.18;
}

.tooltip-corner {
  color: rgba(228, 238, 255, 0.92);
  font-size: 14px;
  line-height: 1;
  padding-top: 2px;
  white-space: nowrap;
}

.tooltip-corner .inline-reload {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tooltip-corner .inline-reload-icon {
  width: 16px;
  height: 16px;
  display: block;
  filter: none;
}

.tooltip.upgrade-tooltip .tooltip-corner {
  color: rgba(255, 255, 255, 0.92);
}

.tooltip-corner:empty {
  display: none;
}

.tooltip-description {
  color: rgba(239, 247, 255, 0.94);
  line-height: 1.2;
}

.tooltip.upgrade-tooltip .tooltip-description {
  color: rgba(255, 255, 255, 0.94);
}

.tooltip-stats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.tooltip-stat {
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
}

.tooltip-stat span {
  font-weight: 800;
}

.tooltip-stat.health {
  color: #7ef090;
}

.tooltip-stat.damage {
  color: #ff7272;
}

.tooltip-stat.heal {
  color: #98ffb4;
}

.tooltip-stat.vision,
.tooltip-stat.summon {
  color: #8fd7ff;
}

.tooltip.upgrade-tooltip .tooltip-stat.vision,
.tooltip.upgrade-tooltip .tooltip-stat.summon {
  color: #efd870;
}

.tooltip-section-label {
  margin-top: 8px;
  color: #f4ffd6;
  font-size: 11px;
  font-weight: 800;
}

.mob-drop-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 12px;
}

.mob-drop-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}

.mob-drop-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: calc(var(--panel-petal-box-size) * 0.8);
  padding: 0;
}

.item-card.mob-drop-card {
  --petal-tile-size: calc(var(--panel-petal-box-size) * 0.8);
  --petal-unit: calc(var(--petal-tile-size) / 16.8);
  --petal-border-size: calc(var(--petal-unit) * 1.4);
  --petal-name-gap: calc(var(--petal-unit) * 0.4);
  --petal-name-band: calc(var(--petal-unit) * 3.2);
  width: var(--petal-tile-size);
  height: var(--petal-tile-size);
  min-height: var(--petal-tile-size);
  cursor: default;
  touch-action: auto;
}

.item-card.mob-drop-card .item-name {
  font-size: 11px;
  bottom: 2px;
  padding-bottom: 2px;
}

.mob-drop-chance {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.empty-state {
  padding: 12px;
  color: #fffef5;
  text-align: center;
  font-weight: 800;
}

@media (max-width: 900px) {
  :root {
    --panel-petal-box-size: 69px;
    --gallery-slot-size: var(--panel-petal-box-size);
  }

  #world-banner.expanded #minimap-shell {
    width: min(320px, calc(100vw - 20px));
    height: min(320px, calc(100vw - 20px));
  }

  #panels {
    left: 74px;
    bottom: 74px;
  }

  .inventory-panel {
    width: min(calc(5 * var(--panel-petal-box-size) + 4 * 10px + 56px + 12px + 16px), calc(100vw - 90px));
  }

  .craft-panel {
    width: min(500px, calc(100vw - 90px));
  }

  .gallery-panel {
    width: min(calc(7 * var(--gallery-slot-size) + 6 * 6px + 28px + 24px), calc(100vw - 90px));
    height: min(520px, calc(100vh - 120px));
  }

  #dev-tools {
    width: min(300px, calc(100vw - 20px));
    right: 10px;
    bottom: 10px;
  }

  .player-card-main {
    min-width: 186px;
  }

  .player-health-shell {
    min-width: 160px;
    width: 160px;
  }

  .player-xp-shell {
    width: 142px;
  }
}
