:root {
  color-scheme: dark;
  --gold: #f7c84b;
  --neon: #00d9ff;
  --moss: #536f3f;
  --moss-dark: #172114;
  --ink: #061116;
  --panel: rgba(6, 17, 22, 0.82);
  --line: rgba(0, 217, 255, 0.34);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #071116;
  color: #eef9ee;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  border: 2px solid rgba(6, 17, 22, 0.88);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--moss));
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.game-root {
  position: fixed;
  inset: 0;
  background: #071116;
  opacity: 0;
  pointer-events: none;
  transition: opacity 360ms ease;
}

body.game-active .game-root {
  opacity: 1;
  pointer-events: auto;
}

#game {
  display: block;
  width: 100vw;
  height: 100dvh;
}

.player-hud {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  width: min(260px, calc(100vw - 24px));
  padding: 10px;
  border: 1px solid rgba(247, 200, 75, 0.32);
  border-radius: 8px;
  background: rgba(6, 17, 22, 0.78);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(10px);
}

.player-hud strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.95rem;
}

.class-hud {
  margin: -3px 0 8px;
  color: rgba(238, 249, 238, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.character-window {
  display: none;
  position: fixed;
  z-index: 30;
  top: 12%;
  left: 50%;
  width: min(420px, calc(100vw - 28px));
  max-height: 74vh;
  overflow: auto;
  transform: translateX(-50%);
  color: #f4ead0;
  background: rgba(15, 20, 28, .97);
  border: 1px solid #b79a55;
  border-radius: 10px;
  box-shadow: 0 18px 55px #000b;
}

.character-window.open { display: block; }
.character-window header { display:flex; justify-content:space-between; align-items:center; padding:12px 14px; border-bottom:1px solid #765d32; }
.character-window header button { color:inherit; background:transparent; border:0; font-size:20px; cursor:pointer; }
.stat-list { padding: 12px 14px; display:grid; gap:7px; }
.stat-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.stat-row button { min-width:28px; border:1px solid #9d8246; border-radius:4px; color:#f5e5b4; background:#342817; cursor:pointer; }
.mastery-list { border-top:1px solid #765d32; padding:12px 14px; }
.mastery-list progress { width:100%; height:8px; }
.equipment-window #equipmentStats, .full-map-window #fullMapContent { padding: 16px; }
.full-map-window { width:min(900px, calc(100vw - 28px)); }

.bar {
  position: relative;
  height: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.bar + .bar {
  margin-top: 6px;
}

.bar span {
  display: block;
  width: 100%;
  height: 100%;
  transition: width 140ms linear;
}

.bar.hp span {
  background: linear-gradient(90deg, #c83232, #ff6262);
}

.bar.mp span {
  background: linear-gradient(90deg, #036b94, var(--neon));
}

.bar em {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.bag-button,
.settings-button {
  position: absolute;
  top: calc(100% + 8px);
  width: 48px;
  height: 48px;
  border: 1px solid rgba(247, 200, 75, 0.62);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(19, 52, 45, 0.92), rgba(13, 27, 18, 0.92)),
    radial-gradient(circle at 50% 28%, rgba(247, 200, 75, 0.24), transparent 62%);
  box-shadow: inset 0 0 14px rgba(0, 217, 255, 0.14), 0 10px 24px rgba(0, 0, 0, 0.3);
}

.bag-button {
  left: 0;
}

.settings-button {
  left: 56px;
}

.bag-button span,
.bag-button span::before,
.bag-button span::after {
  position: absolute;
  display: block;
  content: "";
}

.bag-button span {
  left: 13px;
  top: 17px;
  width: 22px;
  height: 20px;
  border: 2px solid var(--gold);
  border-radius: 5px 5px 7px 7px;
  background: rgba(83, 111, 63, 0.7);
}

.bag-button span::before {
  left: 4px;
  top: -9px;
  width: 10px;
  height: 9px;
  border: 2px solid var(--gold);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.bag-button span::after {
  left: 4px;
  top: 8px;
  width: 10px;
  height: 2px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.settings-button span,
.settings-button span::before,
.settings-button span::after {
  position: absolute;
  display: block;
  content: "";
}

.settings-button span {
  left: 14px;
  top: 14px;
  width: 20px;
  height: 20px;
  border: 3px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(247, 200, 75, 0.42);
}

.settings-button span::before {
  left: 6px;
  top: 6px;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  background: var(--neon);
  box-shadow: 0 0 8px var(--neon);
}

.settings-button span::after {
  left: 7px;
  top: -9px;
  width: 3px;
  height: 34px;
  background: var(--gold);
  box-shadow:
    -11px 9px 0 var(--gold),
    11px 9px 0 var(--gold);
  transform: rotate(45deg);
}

.coord-hud {
  position: fixed;
  left: 50%;
  top: max(12px, env(safe-area-inset-top));
  z-index: 5;
  min-width: 190px;
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(0, 217, 255, 0.32);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(6, 17, 22, 0.72);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
  font-size: 0.84rem;
  font-weight: 900;
  backdrop-filter: blur(10px);
}

.inventory-window,
.settings-window {
  position: fixed;
  left: 82px;
  top: 132px;
  z-index: 8;
  display: none;
  width: min(286px, calc(100vw - 24px));
  max-height: min(620px, calc(100dvh - 48px));
  overflow: hidden;
  border: 1px solid rgba(247, 200, 75, 0.42);
  border-radius: 8px;
  background: rgba(6, 17, 22, 0.88);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.48), 0 0 26px rgba(0, 217, 255, 0.16);
  backdrop-filter: blur(12px);
}

.inventory-window.open,
.settings-window.open {
  display: block;
}

.inventory-header,
.settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(0, 217, 255, 0.24);
  color: var(--gold);
  cursor: move;
  user-select: none;
}

.inventory-header button,
.settings-header button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 217, 255, 0.34);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(0, 0, 0, 0.28);
}

.settings-window {
  left: 140px;
  top: 132px;
  width: min(310px, calc(100vw - 24px));
}

.settings-content {
  display: grid;
  gap: 12px;
  padding: 12px;
}

.zoom-control {
  display: grid;
  gap: 8px;
  color: #dffbea;
  font-size: 0.82rem;
  font-weight: 900;
}

.zoom-control input {
  width: 100%;
  accent-color: var(--gold);
}

.settings-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.settings-stat span {
  color: #b8d8c0;
  font-size: 0.78rem;
  font-weight: 800;
}

.settings-stat strong {
  color: var(--gold);
  font-size: 0.88rem;
}

#supportButton,
#logoutButton {
  min-height: 40px;
  border: 1px solid rgba(0, 217, 255, 0.32);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(9, 33, 34, 0.78);
  font-weight: 900;
}

#logoutButton {
  border-color: rgba(247, 200, 75, 0.58);
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
}

.inventory-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 8px;
}

.inventory-tabs button {
  min-height: 30px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: #dffbea;
  background: rgba(9, 33, 34, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.inventory-tabs button.active {
  border-color: rgba(247, 200, 75, 0.72);
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
}

.inventory-grid {
  display: grid;
  grid-template-columns: repeat(5, 44px);
  grid-auto-rows: 44px;
  gap: 6px;
  max-height: 444px;
  overflow-y: auto;
  padding: 0 8px 10px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.inventory-slot {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(0, 217, 255, 0.24);
  border-radius: 8px;
  color: #eef9ee;
  background: linear-gradient(180deg, rgba(10, 31, 33, 0.86), rgba(8, 21, 14, 0.86));
  box-shadow: inset 0 0 12px rgba(0, 217, 255, 0.08);
  font-size: 0.62rem;
  font-weight: 800;
}

.inventory-slot.filled {
  border-color: rgba(247, 200, 75, 0.5);
  background:
    radial-gradient(circle at 50% 35%, rgba(247, 200, 75, 0.24), transparent 56%),
    linear-gradient(180deg, rgba(20, 46, 36, 0.92), rgba(8, 21, 14, 0.92));
}

.inventory-slot.equipped {
  border-color: rgba(0, 217, 255, 0.9);
  box-shadow:
    inset 0 0 14px rgba(0, 217, 255, 0.24),
    0 0 0 2px rgba(0, 217, 255, 0.2);
}

.action-wheel {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  width: 260px;
  height: 260px;
}

.wheel-slot,
.action-slot,
.auto-attack-button {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 255, 0.48);
  color: #ecfff4;
  font-weight: 900;
  background:
    linear-gradient(180deg, rgba(13, 38, 40, 0.9), rgba(12, 24, 16, 0.9)),
    radial-gradient(circle at 50% 22%, rgba(247, 200, 75, 0.22), transparent 70%);
  box-shadow: inset 0 0 16px rgba(0, 217, 255, 0.12), 0 10px 22px rgba(0, 0, 0, 0.28);
}

.wheel-slot {
  width: 62px;
  height: 62px;
  font-size: 1.05rem;
}

.action-slot {
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  border-color: rgba(247, 200, 75, 0.72);
  color: #061116;
  font-size: 1.18rem;
  background: linear-gradient(135deg, var(--gold), #8fbf66 46%, var(--neon));
  transform: translate(-50%, -50%);
}

.auto-attack-button {
  left: 4px;
  top: -10px;
  width: 72px;
  height: 72px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-color: rgba(248, 113, 113, 0.86);
  color: #fff7f7;
  font-size: 0.82rem;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 230, 230, 0.24), transparent 42%),
    linear-gradient(145deg, #ef4444 0%, #991b1b 62%, #450a0a 100%);
  box-shadow: inset 0 0 18px rgba(254, 202, 202, 0.22), 0 10px 24px rgba(127, 29, 29, 0.4);
}

.auto-attack-button::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 3px solid currentColor;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.16);
}

.auto-attack-button[data-mode="auto"],
.auto-attack-button[data-mode="semi"] {
  border-color: rgba(247, 200, 75, 0.95);
  box-shadow: 0 0 28px rgba(239, 68, 68, 0.46), inset 0 0 22px rgba(247, 200, 75, 0.24);
}

.auto-attack-button[data-mode="semi"] {
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 230, 230, 0.22), transparent 42%),
    linear-gradient(145deg, #f97316 0%, #b45309 58%, #451a03 100%);
}

.wheel-1 {
  left: 99px;
  top: 0;
}

.wheel-2 {
  left: 194px;
  top: 68px;
}

.wheel-3 {
  left: 158px;
  top: 178px;
}

.wheel-4 {
  left: 40px;
  top: 178px;
}

.wheel-5 {
  left: 4px;
  top: 68px;
}

.wheel-slot.active,
.wheel-slot:active,
.action-slot:active,
.auto-attack-button:active {
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(247, 200, 75, 0.38), inset 0 0 18px rgba(247, 200, 75, 0.22);
}

.map-editor {
  position: fixed;
  z-index: 12;
  display: none;
  border: 1px solid rgba(247, 200, 75, 0.42);
  border-radius: 8px;
  background: rgba(6, 17, 22, 0.9);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.48), 0 0 26px rgba(0, 217, 255, 0.16);
  backdrop-filter: blur(12px);
}

.map-editor.open,
.tile-picker.open {
  display: block;
}

.monster-spawn-palette {
  position: fixed;
  z-index: 14;
  right: 18px;
  top: 86px;
  display: none;
  width: min(292px, calc(100vw - 36px));
  max-height: min(520px, calc(100dvh - 120px));
  padding: 10px;
  border: 1px solid rgba(247, 200, 75, 0.5);
  border-radius: 8px;
  background: rgba(6, 17, 22, 0.88);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.46), 0 0 22px rgba(0, 217, 255, 0.12);
  backdrop-filter: blur(10px);
}

.monster-spawn-palette.open {
  display: flex;
  flex-direction: column;
}

.monster-spawn-palette header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 900;
}

.monster-spawn-palette header button {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(9, 33, 34, 0.78);
  font-weight: 900;
}

.monster-spawn-palette input {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(3, 10, 14, 0.72);
  padding: 0 10px;
  font-weight: 800;
}

.monster-spawn-options {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
  margin-top: 8px;
}

.monster-spawn-options label {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  background: rgba(9, 33, 34, 0.58);
  color: #dffbea;
  font-size: 0.68rem;
  font-weight: 900;
}

.monster-spawn-options label > span {
  color: var(--gold);
}

.monster-spawn-options input[type="range"] {
  min-height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--gold);
}

.monster-spawn-options strong {
  color: #eef9ee;
  font-size: 0.72rem;
}

.monster-spawn-options .monster-spawn-boss {
  min-width: 74px;
  align-items: center;
  justify-items: center;
}

.monster-spawn-options .monster-spawn-boss input {
  width: 18px;
  min-height: 18px;
  margin: 0;
  accent-color: var(--gold);
}

.monster-spawn-list {
  display: grid;
  flex: 1 1 auto;
  gap: 6px;
  min-height: 0;
  margin-top: 8px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.monster-spawn-choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 42px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  color: #dffbea;
  background: rgba(9, 33, 34, 0.76);
  padding: 4px 8px;
  text-align: left;
}

.monster-spawn-choice.active {
  border-color: rgba(247, 200, 75, 0.9);
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
}

.monster-spawn-choice img {
  justify-self: center;
  max-width: 30px;
  max-height: 30px;
  object-fit: contain;
  image-rendering: pixelated;
}

.monster-spawn-choice span,
.monster-spawn-empty {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  font-weight: 900;
}

.monster-spawn-empty,
.monster-spawn-palette p {
  color: #b9d8c1;
  font-size: 0.7rem;
  font-weight: 800;
}

.monster-spawn-palette p {
  margin: 8px 0 0;
}

.map-editor {
  left: 50%;
  bottom: 18px;
  width: min(430px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - 36px));
  overflow: auto;
  padding: 10px;
  transform: translateX(-50%);
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.map-editor header,
.tile-picker header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 32px;
  color: var(--gold);
  font-size: 0.86rem;
  font-weight: 900;
}

.map-editor header {
  cursor: move;
  user-select: none;
}

.map-editor header span,
.editor-help {
  color: #b9d8c1;
  font-size: 0.72rem;
  font-weight: 800;
}

.editor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.editor-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 10px;
}

.editor-tabs button {
  min-height: 34px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(9, 33, 34, 0.78);
  font-size: 0.78rem;
  font-weight: 900;
}

.editor-tabs button.active {
  border-color: rgba(247, 200, 75, 0.72);
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
}

.editor-tab-panel {
  display: none;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid rgba(0, 217, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.14);
}

.editor-tab-panel.active {
  display: block;
}

.editor-tab-panel > strong {
  display: block;
  color: #dffbea;
  font-size: 0.78rem;
  margin: 8px 0 0;
}

.editor-tab-panel > strong:first-child {
  margin-top: 0;
}

.editor-map-tabs {
  display: grid;
  gap: 6px;
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.editor-map-tabs button {
  min-height: 34px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(9, 33, 34, 0.78);
  font-size: 0.74rem;
  font-weight: 900;
  padding: 0 10px;
  text-align: left;
}

.editor-map-tabs button.active {
  border-color: rgba(247, 200, 75, 0.72);
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
}

.editor-row button,
.tile-picker header button {
  min-height: 34px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(9, 33, 34, 0.78);
  font-weight: 900;
}

.editor-row button {
  padding: 0 12px;
}

.layer-row button {
  width: 38px;
  padding: 0;
}

.editor-row button.active,
.layer-row button.active {
  border-color: rgba(247, 200, 75, 0.72);
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
}

.editor-help {
  margin-top: 8px;
}

.map-editor.items-mode,
.map-editor.monsters-mode {
  width: min(1180px, calc(100vw - 24px));
  height: min(760px, calc(100dvh - 36px));
  max-height: calc(100dvh - 36px);
  overflow: hidden;
}

.map-editor.open.items-mode,
.map-editor.open.monsters-mode {
  display: flex;
  flex-direction: column;
}

.map-editor.items-mode .editor-tabs,
.map-editor.items-mode .item-editor-heading,
.map-editor.items-mode .item-editor-toolbar,
.map-editor.monsters-mode .editor-tabs,
.map-editor.monsters-mode .monster-editor-heading {
  flex: 0 0 auto;
}

.item-editor-panel.active,
.monster-editor-panel.active {
  min-height: 0;
}

.map-editor.items-mode .item-editor-panel.active,
.map-editor.monsters-mode .monster-editor-panel.active {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.item-editor-heading,
.monster-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: default !important;
  min-height: 24px !important;
}

.item-editor-heading span,
.monster-editor-heading span {
  color: #9edbd0;
  font-size: 0.72rem;
  font-weight: 900;
}

.item-editor-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 8px;
  margin-top: 8px;
}

.item-editor-toolbar input,
.item-editor-toolbar select,
.item-detail select,
.item-detail textarea,
.item-detail input[type="number"],
.monster-list-panel input,
.monster-detail input[type="text"],
.monster-detail input[type="number"] {
  width: 100%;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(6, 17, 22, 0.88);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.item-editor-toolbar input,
.item-editor-toolbar select,
.item-detail select,
.item-detail input[type="number"],
.monster-list-panel input,
.monster-detail input[type="text"],
.monster-detail input[type="number"] {
  min-height: 34px;
  padding: 0 10px;
}

.item-editor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 286px;
  gap: 10px;
  margin-top: 10px;
  align-items: start;
  min-height: 0;
}

.map-editor.items-mode .item-editor-layout {
  flex: 1 1 auto;
  align-items: stretch;
  overflow: hidden;
}

.item-list-panel,
.selected-items-panel {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(0, 217, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.13);
  padding: 9px;
}

.map-editor.items-mode .item-list-panel,
.map-editor.items-mode .selected-items-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.item-list-panel header,
.selected-items-panel header {
  cursor: default;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 22px;
  margin-bottom: 8px;
  color: #eef9ee;
  font-size: 0.76rem;
  font-weight: 950;
}

.item-list-panel header span,
.selected-items-panel header span {
  color: #9edbd0;
  font-size: 0.7rem;
  font-weight: 900;
}

.item-icon-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  min-height: 0;
  max-height: 500px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.map-editor.items-mode .item-icon-grid {
  flex: 1 1 auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.item-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 70px;
  grid-template-rows: 18px 18px;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  min-height: 48px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  color: #dffbea;
  background: rgba(9, 33, 34, 0.7);
  padding: 5px 7px;
  text-align: left;
}

.item-card.active {
  border-color: rgba(247, 200, 75, 0.9);
  box-shadow: 0 0 0 1px rgba(247, 200, 75, 0.18), inset 0 0 18px rgba(247, 200, 75, 0.08);
}

.item-card.enabled {
  background: rgba(25, 48, 31, 0.88);
}

.item-card img {
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  max-width: 34px;
  max-height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.item-card span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #eef9ee;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1.12;
}

.item-card em {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  color: #9edbd0;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.item-card.enabled em {
  color: var(--gold);
}

.item-grid-empty,
.item-detail-empty,
.selected-items-empty {
  color: #b9d8c1;
  font-size: 0.76rem;
  font-weight: 800;
}

.item-detail {
  min-height: 300px;
  overflow: auto;
  border: 1px solid rgba(0, 217, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 10px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.map-editor.items-mode .item-detail {
  min-height: 0;
}

.item-detail-form {
  display: none;
}

.item-detail-form.active {
  display: grid;
  gap: 9px;
}

.item-preview {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
}

.item-preview img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border: 1px solid rgba(247, 200, 75, 0.34);
  border-radius: 8px;
  background: rgba(6, 17, 22, 0.72);
  image-rendering: pixelated;
  padding: 6px;
}

.item-preview strong {
  color: #eef9ee;
  font-size: 0.82rem;
  line-height: 1.16;
  overflow-wrap: anywhere;
}

.item-name-editor {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.item-name-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px;
  gap: 6px;
  align-items: center;
}

.item-name-line button {
  width: 30px;
  min-height: 30px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(9, 33, 34, 0.78);
  font-size: 1rem;
  font-weight: 950;
  line-height: 1;
}

.item-name-editor input {
  width: 100%;
  min-height: 32px;
  border: 1px solid rgba(247, 200, 75, 0.55);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(6, 17, 22, 0.88);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 0 9px;
}

.item-detail label {
  display: grid;
  gap: 5px;
  color: #b9d8c1;
  font-size: 0.72rem;
  font-weight: 900;
}

.item-enabled-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.item-enabled-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.item-stats-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
  border: 1px solid rgba(247, 200, 75, 0.18);
  border-radius: 8px;
  padding: 9px;
}

.item-stats-editor legend {
  padding: 0 6px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
}

.item-stats-editor label {
  gap: 4px;
  min-width: 0;
  font-size: 0.66rem;
}

.item-detail textarea {
  min-height: 112px;
  resize: vertical;
  padding: 9px;
  line-height: 1.35;
}

.item-detail-form button {
  min-height: 36px;
  border: 1px solid rgba(247, 200, 75, 0.72);
  border-radius: 8px;
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
  font-weight: 950;
}

.item-editor-status {
  min-height: 16px;
  margin: 0;
  color: #9edbd0;
  font-size: 0.7rem;
  font-weight: 800;
}

.selected-items-list {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  min-height: 42px;
  max-height: 500px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.map-editor.items-mode .selected-items-list {
  flex: 1 1 auto;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
}

.selected-items-list button {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 70px;
  grid-template-rows: 18px 18px;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  border: 1px solid rgba(0, 217, 255, 0.22);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(25, 48, 31, 0.88);
  padding: 5px 7px;
  text-align: left;
}

.selected-items-list button.active {
  border-color: rgba(247, 200, 75, 0.82);
}

.selected-items-list img {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  object-fit: contain;
  image-rendering: pixelated;
}

.selected-items-list span,
.selected-items-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.selected-items-list span {
  font-size: 0.7rem;
  font-weight: 900;
}

.selected-items-list em {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  color: #9edbd0;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
}

.monster-editor-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 360px;
  gap: 10px;
  margin-top: 10px;
  min-height: 0;
}

.map-editor.monsters-mode .monster-editor-layout {
  flex: 1 1 auto;
  overflow: hidden;
}

.monster-list-panel,
.monster-detail {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(0, 217, 255, 0.14);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  padding: 10px;
}

.map-editor.monsters-mode .monster-list-panel,
.map-editor.monsters-mode .monster-detail {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.monster-list {
  display: grid;
  grid-template-columns: 1fr;
  align-content: start;
  gap: 6px;
  min-height: 0;
  margin-top: 8px;
  overflow: auto;
  padding-right: 3px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.map-editor.monsters-mode .monster-list {
  flex: 1 1 auto;
}

.monster-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 92px;
  grid-template-rows: 20px 20px;
  column-gap: 8px;
  row-gap: 2px;
  align-items: center;
  min-height: 54px;
  border: 1px solid rgba(0, 217, 255, 0.2);
  border-radius: 8px;
  color: #dffbea;
  background: rgba(9, 33, 34, 0.72);
  padding: 5px 7px;
  text-align: left;
}

.monster-card.active {
  border-color: rgba(247, 200, 75, 0.9);
  box-shadow: 0 0 0 1px rgba(247, 200, 75, 0.18), inset 0 0 18px rgba(247, 200, 75, 0.08);
}

.monster-card.enabled {
  background: rgba(25, 48, 31, 0.88);
}

.monster-card img {
  grid-row: 1 / 3;
  align-self: center;
  justify-self: center;
  max-width: 40px;
  max-height: 40px;
  object-fit: contain;
  image-rendering: pixelated;
}

.monster-card span,
.monster-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monster-card span {
  color: #eef9ee;
  font-size: 0.72rem;
  font-weight: 900;
}

.monster-card em {
  grid-column: 3;
  grid-row: 1 / 3;
  justify-self: end;
  color: #9edbd0;
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.monster-card.enabled em {
  color: var(--gold);
}

.monster-detail {
  overflow: auto;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.monster-detail-form {
  display: none;
}

.monster-detail-form.active {
  display: grid;
  gap: 9px;
  overflow: auto;
  padding-right: 3px;
}

.monster-preview {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.monster-preview img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border: 1px solid rgba(247, 200, 75, 0.34);
  border-radius: 8px;
  background: rgba(6, 17, 22, 0.72);
  image-rendering: pixelated;
  padding: 6px;
}

.monster-detail label {
  display: grid;
  gap: 5px;
  color: #b9d8c1;
  font-size: 0.72rem;
  font-weight: 900;
}

.monster-enabled-row {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 8px;
}

.monster-enabled-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.monster-sprite-editor,
.monster-stats-editor {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 0;
  border: 1px solid rgba(247, 200, 75, 0.18);
  border-radius: 8px;
  padding: 9px;
}

.monster-sprite-editor legend,
.monster-stats-editor legend {
  padding: 0 6px;
  color: var(--gold);
  font-size: 0.7rem;
  font-weight: 950;
}

.monster-sprite-editor small {
  grid-column: 1 / -1;
  color: #9edbd0;
  font-size: 0.66rem;
  font-weight: 800;
}

.monster-detail-form button {
  min-height: 36px;
  border: 1px solid rgba(247, 200, 75, 0.72);
  border-radius: 8px;
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
  font-weight: 950;
}

.monster-editor-status,
.monster-list-empty,
.monster-detail-empty {
  min-height: 16px;
  margin: 0;
  color: #9edbd0;
  font-size: 0.7rem;
  font-weight: 800;
}

.tile-picker {
  display: none;
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(247, 200, 75, 0.28);
  border-radius: 8px;
  background: rgba(5, 16, 18, 0.72);
}

.tileset-list {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.tileset-list button {
  flex: 0 0 auto;
  max-width: 150px;
  min-height: 32px;
  border: 1px solid rgba(0, 217, 255, 0.26);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(9, 33, 34, 0.78);
  font-size: 0.72rem;
  font-weight: 800;
}

.tileset-list button.active {
  border-color: rgba(247, 200, 75, 0.72);
  color: #061116;
  background: linear-gradient(135deg, var(--gold), #8fbf66);
}

.tile-grid {
  display: grid;
  grid-auto-rows: 32px;
  gap: 0;
  max-width: 100%;
  max-height: 238px;
  overflow: auto;
  padding: 8px 0 4px;
  scrollbar-color: var(--gold) rgba(255, 255, 255, 0.08);
}

.tile-choice {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 0;
  background-repeat: no-repeat;
  background-size: auto;
  image-rendering: pixelated;
  padding: 0;
  margin: 0;
}

.tile-choice.active {
  outline: 2px solid rgba(247, 200, 75, 0.96);
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px rgba(6, 17, 22, 0.8);
}

.tile-choice.selecting {
  outline: 2px solid rgba(0, 217, 255, 0.88);
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px rgba(6, 17, 22, 0.8);
}

.joystick {
  position: fixed;
  left: max(22px, env(safe-area-inset-left));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 132px;
  height: 132px;
  border: 1px solid rgba(0, 217, 255, 0.34);
  border-radius: 999px;
  background: rgba(6, 17, 22, 0.48);
  box-shadow: inset 0 0 24px rgba(0, 217, 255, 0.14), 0 14px 28px rgba(0, 0, 0, 0.3);
  touch-action: none;
}

.joystick-stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(247, 200, 75, 0.78);
  border-radius: 999px;
  background: radial-gradient(circle, var(--gold), #8fbf66);
  box-shadow: 0 0 22px rgba(247, 200, 75, 0.42);
  transform: translate(-50%, -50%);
}

.start-panel {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: end center;
  min-height: 100dvh;
  padding: 0 18px clamp(34px, 8dvh, 82px);
  isolation: isolate;
  overflow: hidden;
  transition: opacity 460ms ease, transform 460ms ease;
}

body.booting .start-panel {
  pointer-events: none;
  opacity: 0;
}

.start-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("./interface/fundo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100vw 100dvh;
}

.start-panel.hidden {
  pointer-events: none;
  opacity: 0;
  transform: translateY(-3vh) scale(1.02);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 217, 255, 0.2), transparent 22rem),
    linear-gradient(135deg, #061116 0%, #10231c 54%, #10140b 100%);
  color: #eef9ee;
  transition: opacity 420ms ease, transform 420ms ease;
}

.loading-screen.hidden {
  pointer-events: none;
  opacity: 0;
  transform: scale(1.03);
}

.game-loading {
  z-index: 35;
  pointer-events: none;
  opacity: 0;
  transform: scale(1.03);
}

.game-loading.active {
  pointer-events: auto;
  opacity: 1;
  transform: scale(1);
}

.loading-logo {
  color: var(--gold);
  font-size: clamp(2.5rem, 9vw, 6.5rem);
  font-weight: 950;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow:
    0 0 18px rgba(247, 200, 75, 0.62),
    0 0 44px rgba(0, 217, 255, 0.36),
    0 10px 24px rgba(0, 0, 0, 0.58);
}

.loading-screen p {
  margin: 0;
  color: #dffbea;
  font-size: 0.94rem;
  font-weight: 900;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

.loading-ring {
  width: 64px;
  height: 64px;
  border: 3px solid rgba(0, 217, 255, 0.22);
  border-top-color: var(--gold);
  border-right-color: var(--neon);
  border-radius: 999px;
  box-shadow: 0 0 28px rgba(0, 217, 255, 0.22);
  animation: loadingSpin 900ms linear infinite;
}

.loading-ring.large {
  width: 84px;
  height: 84px;
  border-width: 4px;
}

.start-button {
  position: relative;
  min-width: min(300px, 82vw);
  min-height: 68px;
  border: 1px solid rgba(0, 217, 255, 0.72);
  border-radius: 8px;
  overflow: hidden;
  color: #051015;
  font-size: clamp(1.05rem, 3vw, 1.45rem);
  font-weight: 900;
  text-transform: uppercase;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent) -130% 0 / 58% 100% no-repeat,
    linear-gradient(135deg, #f7c84b 0%, #8fbf66 44%, #00d9ff 100%);
  box-shadow:
    0 0 28px rgba(247, 200, 75, 0.55),
    0 0 48px rgba(0, 217, 255, 0.34),
    inset 0 0 18px rgba(255, 255, 255, 0.28);
  animation: startButtonPulse 1.65s ease-in-out infinite, startButtonShine 2.7s linear infinite;
}

.start-panel.auth-open .start-button {
  pointer-events: none;
  animation: startExit 560ms ease forwards;
}

.auth-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(430px, calc(100vw - 28px));
  max-height: min(720px, calc(100dvh - 28px));
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(247, 200, 75, 0.42);
  border-radius: 8px;
  background: rgba(6, 17, 22, 0.82);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5), 0 0 34px rgba(0, 217, 255, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 28vh);
  backdrop-filter: blur(14px);
}

.start-panel.auth-open .auth-card {
  pointer-events: auto;
  animation: authRise 620ms 210ms cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.auth-tabs button,
.auth-form button {
  min-height: 42px;
  border: 1px solid rgba(0, 217, 255, 0.35);
  border-radius: 8px;
  color: #eef9ee;
  background: rgba(9, 33, 34, 0.88);
}

.auth-tabs button.active,
.auth-form button {
  border-color: rgba(247, 200, 75, 0.72);
  color: #061116;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gold), #7bd0aa);
}

.auth-form {
  display: none;
  gap: 10px;
}

.auth-form.active {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 5px;
  color: #cfe6d4;
  font-size: 0.78rem;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 8px;
  outline: none;
  padding: 0 11px;
  color: #f5fff8;
  background: rgba(0, 0, 0, 0.32);
}

.auth-form input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 2px rgba(0, 217, 255, 0.16);
}

.auth-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: #ffdb8a;
  font-size: 0.82rem;
  font-weight: 800;
  text-align: center;
}

.start-particles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.start-particle {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  background: var(--color);
  box-shadow: 0 0 16px var(--color), 0 0 34px var(--color);
  opacity: 0.78;
  animation: particleDrift var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@media (max-width: 760px) {
  .action-wheel {
    width: 166px;
    height: 166px;
  }

  .wheel-slot {
    width: 40px;
    height: 40px;
  }

  .action-slot {
    width: 64px;
    height: 64px;
  }

  .auto-attack-button {
    left: 4px;
    top: 12px;
    width: 48px;
    height: 48px;
    font-size: 0.62rem;
  }

  .auto-attack-button::before {
    width: 16px;
    height: 16px;
    border-width: 2px;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, 0.16);
  }

  .joystick {
    width: 116px;
    height: 116px;
  }

  .inventory-window {
    left: 10px;
    top: 106px;
    width: min(274px, calc(100vw - 20px));
  }

  .inventory-grid {
    grid-template-columns: repeat(5, 42px);
    grid-auto-rows: 42px;
  }

  .inventory-slot {
    width: 42px;
    height: 42px;
  }

  .settings-window {
    left: 66px;
    top: 106px;
    width: min(286px, calc(100vw - 20px));
  }

  .map-editor.items-mode {
    width: min(430px, calc(100vw - 24px));
    height: calc(100dvh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .item-editor-toolbar,
  .item-editor-layout {
    grid-template-columns: 1fr;
    overflow: auto;
  }

  .item-icon-grid {
    grid-template-columns: 1fr;
    max-height: 270px;
  }

  .selected-items-list {
    max-height: 270px;
  }

  .item-card {
    min-height: 48px;
  }

  .item-detail {
    min-height: 0;
  }
}

@keyframes startButtonPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-2px) scale(1.03);
  }
}

@keyframes startButtonShine {
  0% {
    background-position: -130% 0, 0 0;
  }

  100% {
    background-position: 230% 0, 0 0;
  }
}

@keyframes startExit {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(-22vh) scale(0.72);
  }
}

@keyframes authRise {
  0% {
    opacity: 0;
    transform: translate(-50%, 28vh) scale(0.96);
  }

  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes particleDrift {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.55);
  }

  12%,
  86% {
    opacity: 0.78;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--dx), -118vh, 0) scale(1.28);
  }
}

@keyframes loadingSpin {
  to {
    transform: rotate(360deg);
  }
}
