.world-arc-hud {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 140px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  z-index: 3;
}

.world-canvas {
  width: 100%;
  height: calc(100vh - 80px);
  background: rgba(10, 14, 24, 0.65);
  border: 1px solid #334155;
  border-radius: 16px;
  display: block;
}

.world-hud {
  position: absolute;
  left: 12px;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 2;
}

.world-minimap {
  position: absolute;
  right: 12px;
  top: 12px;
  width: 160px;
  height: 160px;
  background: rgba(2,6,23,0.6);
  border: 1px solid #334155;
  border-radius: 10px;
  overflow: hidden;
  z-index: 3;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.world-minimap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.map-overlay {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  width: min(70vh, 70vw);
  height: min(70vh, 70vw);
  background: rgba(2,6,23,0.75);
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 10020;
  display: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.map-overlay canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
}

#mobileControls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 5;
  display: none;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#mc-dpad {
  position: absolute;
  left: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 48px 48px 48px;
  grid-template-rows: 48px 48px 48px;
  gap: 6px;
}

#mc-dpad button {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #083;
  color: #0f0;
  border: 2px solid #0f0;
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#mc-actions {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 10px;
}

#btn-dash {
  min-width: 86px;
  height: 48px;
  border-radius: 10px;
  background: #024;
  color: #0ff;
  border: 2px solid #0ff;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#btn-interact {
  min-width: 86px;
  height: 48px;
  border-radius: 10px;
  background: #240;
  color: #fa0;
  border: 2px solid #fa0;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#hideUiBtn { display: none; }

#mc-joy {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(0, 32, 32, 0.35);
  border: 2px solid #0ff;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

#mc-joy-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  border-radius: 50%;
  background: #066;
  border: 2px solid #0ff;
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

.world-bar {
  position: relative;
  width: 210px;
  height: 10px;
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 999px;
  overflow: hidden;
}

.world-bar-fill {
  height: 100%;
  width: 0%;
}

.world-bar-fill.hp { background: linear-gradient(180deg, #ff7a7c, #ff4d4f); }

.world-bar-fill.shield {
  background: linear-gradient(180deg, #f8fafc, #e2e8f0);
  box-shadow:
    inset 0 0 10px rgba(255, 255, 255, 0.65),
    0 0 10px rgba(226, 232, 240, 0.35);
}

.world-bar-fill.sta { background: linear-gradient(180deg, #93c5fd, #60a5fa); }

.world-bar-text {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: #e2e8f0;
  pointer-events: none;
}
